ipcns: fix use after free in free_ipc_ns()
authorXiaotian Feng <dfeng@redhat.com>
Fri, 25 Mar 2011 08:57:01 +0000 (01:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Mar 2011 00:45:16 +0000 (17:45 -0700)
commitbe4d250ab41e13f8f945be6896695e870b38ba31
treea4c47d13bbd91ba05870f457b8063829ca81134f
parentc03e3126e4f9535f4983d727f036440255c43c82
ipcns: fix use after free in free_ipc_ns()

commit b515498 ("userns: add a user namespace owner of ipc ns") added a
user namespace owner of ipc ns, but it also introduced a use after free in
free_ipc_ns().

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Acked-by: "Serge E. Hallyn" <serge.hallyn@canonical.com>
Acked-by: David Howells <dhowells@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
ipc/namespace.c