WSL2-Linux-Kernel/arch/m68k/kernel
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
..
.gitignore
Makefile m68k: Multi-platform EARLY_PRINTK 2014-05-28 10:10:04 +02:00
asm-offsets.c m68k: Add kexec support 2013-12-08 11:01:47 +01:00
bootinfo_proc.c m68k: Add support to export bootinfo in procfs 2013-12-08 11:01:48 +01:00
dma.c
early_printk.c m68k/mvme16x: Adopt common boot console 2014-05-28 10:11:53 +02:00
entry.S m68k: Simplify low level interrupt handling code 2013-11-13 20:21:46 +01:00
head.S m68k: Fix boot regression on machines with RAM at non-zero 2014-07-10 09:58:26 +02:00
ints.c m68k: Do not rely on magic indirect includes 2014-03-05 13:28:32 +01:00
irq.c
m68k_ksyms.c
machine_kexec.c m68k: Add kexec support 2013-12-08 11:01:47 +01:00
module.c
module.lds
pcibios.c ARCH: drivers remove __dev* attributes. 2013-01-03 15:57:13 -08:00
process.c m68k: Use generic idle loop 2013-04-08 17:39:26 +02:00
ptrace.c
relocate_kernel.S m68k: Add kexec support 2013-12-08 11:01:47 +01:00
setup.c
setup_mm.c m68k: Add support to export bootinfo in procfs 2013-12-08 11:01:48 +01:00
setup_no.c m68k: fix a compiler warning when building for DragonBall 2014-05-26 13:28:36 +10:00
signal.c m68k: Use sigsp() 2014-08-06 13:04:09 +02:00
sun3-head.S
sys_m68k.c m68k: call find_vma with the mmap_sem held in sys_cacheflush() 2014-10-09 22:26:02 -04:00
syscalltable.S m68k: Wire up memfd_create 2014-09-01 10:28:00 +02:00
time.c m68k: Export mach_random_get_entropy to modules 2014-07-11 10:37:53 +02:00
traps.c m68k: Convert arch/m68k/kernel/traps.c to pr_*() 2013-12-30 21:01:11 +01:00
vectors.c
vmlinux-nommu.lds
vmlinux-std.lds
vmlinux-sun3.lds
vmlinux.lds.S