summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorMike Galbraith2012-05-10 22:01:45 +0200
committerLinus Torvalds2012-05-11 00:06:44 +0200
commit5e2bf0142231194d36fdc9596b36a261ed2b9fe7 (patch)
treee5b411ddefaa96b29a73706f7fe407f238632573 /mm/memcontrol.c
parenthugetlb: prevent BUG_ON in hugetlb_fault() -> hugetlb_cow() (diff)
downloadkernel-qcow2-linux-5e2bf0142231194d36fdc9596b36a261ed2b9fe7.tar.gz
kernel-qcow2-linux-5e2bf0142231194d36fdc9596b36a261ed2b9fe7.tar.xz
kernel-qcow2-linux-5e2bf0142231194d36fdc9596b36a261ed2b9fe7.zip
namespaces, pid_ns: fix leakage on fork() failure
Fork() failure post namespace creation for a child cloned with CLONE_NEWPID leaks pid_namespace/mnt_cache due to proc being mounted during creation, but not unmounted during cleanup. Call pid_ns_release_proc() during cleanup. Signed-off-by: Mike Galbraith <efault@gmx.de> Acked-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Louis Rilling <louis.rilling@kerlabs.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions