Home
last modified time | relevance | path

Searched hist:"2 aeadc30de45a72648f271603203ab392b80f607" (Results 1 – 1 of 1) sorted by relevance

/linux/mm/
H A Dmmap.cdiff 2aeadc30de45a72648f271603203ab392b80f607 Wed Sep 22 22:05:12 CEST 2010 Andrea Arcangeli <aarcange@redhat.com> 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 <aarcange@redhat.com>
Acked-by: Johannes Weiner <jweiner@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>