b951242a4f
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. Signed-off-by: Davidlohr Bueso <davidlohr@hp.com> Cc: Steven Miao <realmz6@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
cplb-mpu | ||
cplb-nompu | ||
.gitignore | ||
asm-offsets.c | ||
bfin_dma.c | ||
bfin_gpio.c | ||
bfin_ksyms.c | ||
cplbinfo.c | ||
debug-mmrs.c | ||
dma-mapping.c | ||
dumpstack.c | ||
early_printk.c | ||
entry.S | ||
exception.c | ||
fixed_code.S | ||
flat.c | ||
ftrace-entry.S | ||
ftrace.c | ||
gptimers.c | ||
ipipe.c | ||
irqchip.c | ||
kgdb_test.c | ||
kgdb.c | ||
Makefile | ||
module.c | ||
nmi.c | ||
perf_event.c | ||
process.c | ||
pseudodbg.c | ||
ptrace.c | ||
reboot.c | ||
setup.c | ||
shadow_console.c | ||
signal.c | ||
stacktrace.c | ||
sys_bfin.c | ||
time-ts.c | ||
time.c | ||
trace.c | ||
traps.c | ||
vmlinux.lds.S |