From: Michel Lespinasse Date: Mon, 8 Oct 2012 23:30:01 +0000 (-0700) Subject: mm: fix potential anon_vma locking issue in mprotect() X-Git-Tag: v3.7-rc1~74^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca42b26ab285edc5ee3f9faa48379d258db53c35;p=pandora-kernel.git mm: fix potential anon_vma locking issue in mprotect() Fix an anon_vma locking issue in the following situation: - vma has no anon_vma - next has an anon_vma - vma is being shrunk / next is being expanded, due to an mprotect call We need to take next's anon_vma lock to avoid races with rmap users (such as page migration) while next is being expanded. Signed-off-by: Michel Lespinasse Reviewed-by: Andrea Arcangeli Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed