linux/arch/m68k
Davidlohr Bueso cd2567b685 m68k: call find_vma with the mmap_sem held in sys_cacheflush()
Performing vma lookups without taking the mm->mmap_sem is asking for
trouble.  While doing the search, the vma in question can be modified or
even removed before returning to the caller.  Take the lock (shared) in
order to avoid races while iterating through the vmacache and/or rbtree.
In addition, this guarantees that the address space will remain intact
during the CPU flushing.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-10-09 22:26:02 -04:00
..
amiga
apollo
atari m68k/atari - stram: Add missing #include <linux/ioport.h> 2014-09-14 11:51:35 +02:00
bvme6000
configs tgt: defconfig cleanup 2014-07-17 22:07:44 +02:00
emu
fpsp040
hp300
ifpsp060
include Merge branch 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-10-09 06:30:57 -04:00
kernel m68k: call find_vma with the mmap_sem held in sys_cacheflush() 2014-10-09 22:26:02 -04:00
lib
mac
math-emu
mm m68k: Reformat arch/m68k/mm/hwtest.c 2014-10-03 10:50:56 +02:00
mvme16x
mvme147
platform
q40
sun3
sun3x
tools/amiga
install.sh
Kconfig kexec: remove CONFIG_KEXEC dependency on crypto 2014-08-29 16:28:16 -07:00
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k 2014-10-08 05:40:17 -04:00
Kconfig.machine
Makefile