Files
android_kernel_xiaomi_sm8450/arch/arm/kernel
Dima Zavin 435a7ef52d ARM: 7409/1: Do not call flush_cache_user_range with mmap_sem held
We can't be holding the mmap_sem while calling flush_cache_user_range
because the flush can fault. If we fault on a user address, the
page fault handler will try to take mmap_sem again. Since both places
acquire the read lock, most of the time it succeeds. However, if another
thread tries to acquire the write lock on the mmap_sem (e.g. mmap) in
between the call to flush_cache_user_range and the fault, the down_read
in do_page_fault will deadlock.

[will: removed drop of vma parameter as already queued by rmk (7365/1)]

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-05-02 11:12:27 +01:00
..
2008-08-12 19:54:09 +01:00
2012-03-28 18:30:01 +01:00
2008-05-30 10:33:49 +02:00
2012-03-30 21:03:54 +01:00
2012-03-28 18:30:01 +01:00
2012-03-24 09:38:56 +00:00
2010-10-29 13:14:40 -05:00
2012-04-25 19:49:28 +01:00
2012-04-25 19:49:28 +01:00
2012-03-28 18:30:01 +01:00
2012-03-28 18:30:01 +01:00