summaryrefslogtreecommitdiffstats
path: root/mm/mremap.c
diff options
context:
space:
mode:
authorMichel Lespinasse2012-10-09 01:31:48 +0200
committerLinus Torvalds2012-10-09 09:22:42 +0200
commit523d4e2008fd4a68b1a164e63e8c75b7b20f07e0 (patch)
treec51d7fe7c6c614cf4cf8ef09f923a502cc18d279 /mm/mremap.c
parentmm: add CONFIG_DEBUG_VM_RB build option (diff)
downloadkernel-qcow2-linux-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.tar.gz
kernel-qcow2-linux-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.tar.xz
kernel-qcow2-linux-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.zip
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 <walken@google.com> Cc: Jiri Slaby <jslaby@suse.cz> Cc: Hugh Dickins <hughd@google.com> Tested-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions