summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorMike Rapoport2017-03-10 01:17:09 +0100
committerLinus Torvalds2017-03-10 02:01:10 +0100
commit7eb76d457fd758d396bc2e65cb0ace5aae614149 (patch)
tree65cef25c2ccabe3574891256e13292939270bdce /mm/madvise.c
parentmm/cgroup: avoid panic when init with low memory (diff)
downloadkernel-qcow2-linux-7eb76d457fd758d396bc2e65cb0ace5aae614149.tar.gz
kernel-qcow2-linux-7eb76d457fd758d396bc2e65cb0ace5aae614149.tar.xz
kernel-qcow2-linux-7eb76d457fd758d396bc2e65cb0ace5aae614149.zip
userfaultfd: non-cooperative: fix fork fctx->new memleak
We have a memleak in the ->new ctx if the uffd of the parent is closed before the fork event is read, nothing frees the new context. Link: http://lkml.kernel.org/r/20170302173738.18994-2-aarcange@redhat.com Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Reported-by: Andrea Arcangeli <aarcange@redhat.com> Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions