mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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:
parent
8c8c4bafc3
commit
444f378b23
4 changed files with 16 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue