Messages in this thread Patch in this message |  | | | Date | Wed, 9 Nov 2005 10:37:05 -0800 | | From | Greg KH <> | | Subject | [patch 08/11] - fix signal->live leak in copy_process() |
| |
From: Oleg Nesterov <oleg@tv-sign.ru>
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: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- kernel/signal.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.14.1.orig/kernel/signal.c +++ linux-2.6.14.1/kernel/signal.c @@ -406,6 +406,8 @@ void __exit_signal(struct task_struct *t void exit_signal(struct task_struct *tsk) { + atomic_dec(&tsk->signal->live); + write_lock_irq(&tasklist_lock); __exit_signal(tsk); write_unlock_irq(&tasklist_lock); -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |