From: Hugh Dickins Date: Thu, 4 Aug 2005 20:07:09 +0000 (-0700) Subject: [PATCH] fix VmSize and VmData after mremap X-Git-Tag: v2.6.13-rc6~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5ad84516ae7ea4ec868436a910a6bd8d20215a;p=pandora-kernel.git [PATCH] fix VmSize and VmData after mremap 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//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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed