diff options
author | Michel Lespinasse <walken@google.com> | 2012-10-08 16:31:48 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 16:22:42 +0900 |
commit | 523d4e2008fd4a68b1a164e63e8c75b7b20f07e0 (patch) | |
tree | c51d7fe7c6c614cf4cf8ef09f923a502cc18d279 /fs | |
parent | ed8ea8150182f8d715fceb3b175ef0a9ebacd872 (diff) | |
download | op-kernel-dev-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.zip op-kernel-dev-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.tar.gz |
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 'fs')
0 files changed, 0 insertions, 0 deletions