Skip to content
Commit 4946d54c authored by Rik van Riel's avatar Rik van Riel Committed by Linus Torvalds
Browse files

rmap: fix anon_vma_fork() memory leak



Fix a memory leak in anon_vma_fork(), where we fail to tear down the
anon_vmas attached to the new VMA in case setting up the new anon_vma
fails.

This bug also has the potential to leave behind anon_vma_chain structs
with pointers to invalid memory.

Reported-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Signed-off-by: default avatarRik van Riel <riel@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent db217dec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment