summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-06-05 03:07:29 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-05 03:54:00 +0400
commit5040573e49cc8f0e016a83544a0e552f2f44c897 (patch)
tree5c7db141f650f8d427d9e8984d2b4ead9e266635 /include/linux/stacktrace.h
parent2ee06468702e0742114823a537510cd6f038cacc (diff)
downloadlinux-5040573e49cc8f0e016a83544a0e552f2f44c897.tar.xz
arc: call find_vma with the mmap_sem held
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. [akpm@linux-foundation.org: CSE current->active_mm, per Vineet] Signed-off-by: Davidlohr Bueso <davidlohr@hp.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions