diff options
author | Davidlohr Bueso <davidlohr@hp.com> | 2014-06-06 23:38:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-07 01:08:16 +0200 |
commit | b951242a4f633462b9766171bc5be8a8dc3f3e12 (patch) | |
tree | 3e8dc9383920eb2c92c1820bfcebe1823cd8899e /fs | |
parent | mm: convert use of typedef ctl_table to struct ctl_table (diff) | |
download | linux-b951242a4f633462b9766171bc5be8a8dc3f3e12.tar.xz linux-b951242a4f633462b9766171bc5be8a8dc3f3e12.zip |
blackfin/ptrace: 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.
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions