projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47e627c
)
[PATCH] fix ->signal->live leak in copy_process()
author
Oleg Nesterov
<oleg@tv-sign.ru>
Sat, 29 Oct 2005 15:37:40 +0000
(19:37 +0400)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 29 Oct 2005 17:28:13 +0000
(10:28 -0700)
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>
kernel/signal.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index f2b96b08fb44726d5673bf65750d4c1d9951ccd9..6904bbbfe116985d1710f04fcfd5792a536d382f 100644
(file)
--- 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);