diff options
author | Dima Zavin <dima@android.com> | 2012-04-30 11:26:14 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-02 12:12:27 +0200 |
commit | 435a7ef52db7d86e67a009b36cac1457f8972391 (patch) | |
tree | 6d6bad75b3faf12e96e628e8ea90efa8c262bc1f /arch/arm/mach-omap2/mux44xx.c | |
parent | ARM: 7404/1: cmpxchg64: use atomic64 and local64 routines for cmpxchg64 (diff) | |
download | linux-435a7ef52db7d86e67a009b36cac1457f8972391.tar.xz linux-435a7ef52db7d86e67a009b36cac1457f8972391.zip |
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>
Diffstat (limited to 'arch/arm/mach-omap2/mux44xx.c')
0 files changed, 0 insertions, 0 deletions