From: Davidlohr Bueso Date: Fri, 6 Jun 2014 21:38:10 +0000 (-0700) Subject: blackfin/ptrace: call find_vma with the mmap_sem held X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~4^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b951242a4f633462b9766171bc5be8a8dc3f3e12;p=pandora-kernel.git 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 Cc: Steven Miao Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed