aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2014-06-04 16:07:29 -0700
committerLinus Torvalds <[email protected]>2014-06-04 16:54:00 -0700
commit5040573e49cc8f0e016a83544a0e552f2f44c897 (patch)
tree5c7db141f650f8d427d9e8984d2b4ead9e266635 /tools/perf/scripts/python/bin
parent2ee06468702e0742114823a537510cd6f038cacc (diff)
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. [[email protected]: CSE current->active_mm, per Vineet] Signed-off-by: Davidlohr Bueso <[email protected]> Acked-by: Vineet Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions