Commit d212503f authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Greg Kroah-Hartman

[PATCH] - fix signal->live leak in copy_process()

exit_signal() (called from copy_process's error path) should decrement
->signal->live, otherwise forking process will miss 'group_dead' in
do_exit().
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2feb75c7
...@@ -406,6 +406,8 @@ void __exit_signal(struct task_struct *tsk) ...@@ -406,6 +406,8 @@ void __exit_signal(struct task_struct *tsk)
void exit_signal(struct task_struct *tsk) void exit_signal(struct task_struct *tsk)
{ {
atomic_dec(&tsk->signal->live);
write_lock_irq(&tasklist_lock); write_lock_irq(&tasklist_lock);
__exit_signal(tsk); __exit_signal(tsk);
write_unlock_irq(&tasklist_lock); write_unlock_irq(&tasklist_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment