]> err.no Git - linux-2.6/commit
[PATCH] namespaces: exit_task_namespaces() invalidates nsproxy
authorCedric Le Goater <clg@fr.ibm.com>
Mon, 2 Oct 2006 09:18:09 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:21 +0000 (07:57 -0700)
commitfab413a334a7b3dd2688c5cd5d4718476e430ea4
tree2ffc4f9e97545bbd3608636abc0b4d9d4c09847c
parent1651e14e28a2d9f446018ef522882e0709a2ce4f
[PATCH] namespaces: exit_task_namespaces() invalidates nsproxy

exit_task_namespaces() has replaced the former exit_namespace().  It
invalidates task->nsproxy and associated namespaces.  This is an issue for
the (futur) pid namespace which is required to be valid in exit_notify().

This patch moves exit_task_namespaces() after exit_notify() to keep nsproxy
valid.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Serge E. Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/exit.c