summaryrefslogtreecommitdiffstats
path: root/mm/zsmalloc.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-10-10 00:29:45 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-10 04:26:02 +0200
commitcd2567b6850b1648236a4aab0513a04ebaea6aa8 (patch)
tree7321c0818a0d6af6ef2aa07dcc6e6f65757370cf /mm/zsmalloc.c
parentvmstat: on-demand vmstat workers V8 (diff)
downloadlinux-cd2567b6850b1648236a4aab0513a04ebaea6aa8.tar.xz
linux-cd2567b6850b1648236a4aab0513a04ebaea6aa8.zip
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>
Diffstat (limited to 'mm/zsmalloc.c')
0 files changed, 0 insertions, 0 deletions