]> git.hungrycats.org Git - linux/commit
[PATCH] mprotect propagate anon_vma
authorHugh Dickins <hugh@veritas.com>
Sun, 20 Jun 2004 11:57:26 +0000 (04:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 20 Jun 2004 11:57:26 +0000 (04:57 -0700)
commit6eb47fb76ba4754a7442c8ac059924556210e39c
tree41747f66dd4be6d69965b5f8abe9029c6457b4e6
parent46bb3931355ca4c8107455a6c937d02108f68b09
[PATCH] mprotect propagate anon_vma

When mprotect shifts the boundary between vmas (merging the reprotected
area into the vma before or the vma after), make sure that the expanding
vma has anon_vma if the shrinking vma had, to cover anon pages imported.
Thanks to Andrea for alerting us to this oversight.

Cc: <andrea@suse.de>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mmap.c