diff options
author | Andrea Arcangeli <[email protected]> | 2010-09-22 13:05:12 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-09-22 17:22:40 -0700 |
commit | 2aeadc30de45a72648f271603203ab392b80f607 (patch) | |
tree | f3368916a4b1efdfa205ae0891733995a456957f /net/unix/sysctl_net_unix.c | |
parent | a247c3a97a0216b18a46243eda26081f1928ec37 (diff) |
mmap: call unlink_anon_vmas() in __split_vma() in case of error
If __split_vma fails because of an out of memory condition the
anon_vma_chain isn't teardown and freed potentially leading to rmap walks
accessing freed vma information plus there's a memleak.
Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions