From: Davidlohr Bueso Date: Wed, 4 Jun 2014 23:07:29 +0000 (-0700) Subject: arc: call find_vma with the mmap_sem held X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5040573e49cc8f0e016a83544a0e552f2f44c897;p=pandora-kernel.git 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. [akpm@linux-foundation.org: CSE current->active_mm, per Vineet] Signed-off-by: Davidlohr Bueso Acked-by: Vineet Gupta Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed