mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix signal->live leak in copy_process()
@ 2005-10-29 15:37 Oleg Nesterov
  2005-10-29 22:34 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2005-10-29 15:37 UTC (permalink / raw)
  To: linux-kernel
  Cc: Roland McGrath, Ingo Molnar, Chris Wright, Linus Torvalds, Andrew Morton

[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: Oleg Nesterov <oleg@tv-sign.ru>

--- 2.6.14/kernel/signal.c~	2005-10-29 01:14:57.000000000 +0400
+++ 2.6.14/kernel/signal.c	2005-10-29 22:40:37.000000000 +0400
@@ -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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-29 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-29 15:37 [PATCH] fix signal->live leak in copy_process() Oleg Nesterov
2005-10-29 22:34 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®