diff options
author | Michel Lespinasse <walken@google.com> | 2012-10-09 03:31:48 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-09 11:22:42 +0400 |
commit | 523d4e2008fd4a68b1a164e63e8c75b7b20f07e0 (patch) | |
tree | c51d7fe7c6c614cf4cf8ef09f923a502cc18d279 /fs/exec.c | |
parent | ed8ea8150182f8d715fceb3b175ef0a9ebacd872 (diff) | |
download | linux-523d4e2008fd4a68b1a164e63e8c75b7b20f07e0.tar.xz |
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/exec.c')
0 files changed, 0 insertions, 0 deletions