Staging
v0.5.1
https://github.com/torvalds/linux
Revision 1c5ad84516ae7ea4ec868436a910a6bd8d20215a authored by Hugh Dickins on 04 August 2005, 20:07:09 UTC, committed by Linus Torvalds on 04 August 2005, 20:11:15 UTC
mremap's move_vma is applying __vm_stat_account to the old vma which may
have already been freed: move it to just before the do_munmap.

mremapping to and fro with CONFIG_DEBUG_SLAB=y showed /proc/<pid>/status
VmSize and VmData wrapping just like in kernel bugzilla #4842, and fixed by
this patch - worth including in 2.6.13, though not yet confirmed that it
fixes that specific report from Frank van Maarseveen.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent e234f35
History
Tip revision: 1c5ad84516ae7ea4ec868436a910a6bd8d20215a authored by Hugh Dickins on 04 August 2005, 20:07:09 UTC
[PATCH] fix VmSize and VmData after mremap
Tip revision: 1c5ad84

README

back to top