Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm anon rmap: in mremap, set the new vma's position before anon_vma_c…
…lone() 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 <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Hugh Dickins <[email protected]> Tested-by: Sasha Levin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information