summaryrefslogtreecommitdiff
path: root/drivers/tc
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-04-23 08:27:59 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-04-23 14:16:05 +1000
commit2f09ee2a6cb1018f4b3a66f68c41a7f803eb3876 (patch)
tree2b389193d7fd248efd37b154da29c28516e494a6 /drivers/tc
parentc0b09758965d7946fdc6762525f072bf229de5e9 (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 <davidlohr@hp.com> Cc: Steven Miao <realmz6@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions