From: Michel Lespinasse Date: Mon, 8 Oct 2012 23:31:48 +0000 (-0700) Subject: mm anon rmap: in mremap, set the new vma's position before anon_vma_clone() X-Git-Tag: v3.7-rc1~74^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523d4e2008fd4a68b1a164e63e8c75b7b20f07e0;p=pandora-kernel.git mm anon rmap: in mremap, set the new vma's position before anon_vma_clone() anon_vma_clone() expects new_vma->vm_{start,end,pgoff} to be correctly set so that the new vma can be indexed on the anon interval tree. copy_vma() was failing to do that, which broke mremap(). Signed-off-by: Michel Lespinasse Cc: Jiri Slaby Cc: Hugh Dickins Tested-by: Sasha Levin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed