/[linux-patches]/genpatches-2.6/trunk/2.6.14/1106_2_signal-live-leak.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1106_2_signal-live-leak.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 9 months ago) by johnm
File MIME type: text/x-diff
File size: 1053 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From oleg@tv-sign.ru Sat Oct 29 08:24:41 2005
2 Date: Sat, 29 Oct 2005 19:37:40 +0400
3 From: Oleg Nesterov <oleg@tv-sign.ru>
4 To: linux-kernel@vger.kernel.org
5 Cc: Roland McGrath <roland@redhat.com>, Ingo Molnar <mingo@elte.hu>, Chris Wright <chrisw@osdl.org>, Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
6 Subject: [PATCH] fix signal->live leak in copy_process()
7
8 exit_signal() (called from copy_process's error path) should decrement
9 ->signal->live, otherwise forking process will miss 'group_dead' in
10 do_exit().
11
12 Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
13 Signed-off-by: Chris Wright <chrisw@osdl.org>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 ---
16 kernel/signal.c | 2 ++
17 1 file changed, 2 insertions(+)
18
19 --- linux-2.6.14.1.orig/kernel/signal.c
20 +++ linux-2.6.14.1/kernel/signal.c
21 @@ -406,6 +406,8 @@ void __exit_signal(struct task_struct *t
22
23 void exit_signal(struct task_struct *tsk)
24 {
25 + atomic_dec(&tsk->signal->live);
26 +
27 write_lock_irq(&tasklist_lock);
28 __exit_signal(tsk);
29 write_unlock_irq(&tasklist_lock);

  ViewVC Help
Powered by ViewVC 1.1.20