diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2005-10-29 17:37:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-29 19:28:13 +0200 |
commit | 8d027de54c77d38eedc9b331c7a2a39807d34691 (patch) | |
tree | cfa290c7ca6b63f33b2b4624695596f38bcda2fd /kernel | |
parent | [PATCH] blk: fix merge bug in as-iosched (diff) | |
download | linux-8d027de54c77d38eedc9b331c7a2a39807d34691.tar.xz linux-8d027de54c77d38eedc9b331c7a2a39807d34691.zip |
[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>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index f2b96b08fb44..6904bbbfe116 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -406,6 +406,8 @@ void __exit_signal(struct task_struct *tsk) 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); |