diff options
author | Davidlohr Bueso <[email protected]> | 2014-06-06 14:38:10 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-06-06 16:08:16 -0700 |
commit | b951242a4f633462b9766171bc5be8a8dc3f3e12 (patch) | |
tree | 3e8dc9383920eb2c92c1820bfcebe1823cd8899e /include/linux/fpga/fpga-mgr.h | |
parent | cccad5b983d2b0aa453879591ac4ab1c54ff9db6 (diff) |
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 <[email protected]>
Cc: Steven Miao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions