Revert "[PATCH] namespaces: fix exit race by splitting exit"

This reverts commit 7a238fcba0 in
preparation for a better and simpler fix proposed by Eric Biederman
(and fixed up by Serge Hallyn)

Acked-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2007-01-30 13:35:18 -08:00
parent 8c8c4bafc3
commit 444f378b23
4 changed files with 16 additions and 40 deletions

View file

@ -1265,7 +1265,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
return p;
bad_fork_cleanup_namespaces:
put_and_finalize_nsproxy(p->nsproxy);
exit_task_namespaces(p);
bad_fork_cleanup_keys:
exit_keys(p);
bad_fork_cleanup_mm:
@ -1711,7 +1711,7 @@ asmlinkage long sys_unshare(unsigned long unshare_flags)
}
if (new_nsproxy)
put_and_finalize_nsproxy(new_nsproxy);
put_nsproxy(new_nsproxy);
bad_unshare_cleanup_ipc:
if (new_ipc)