/[linux-patches]/genpatches-2.6/trunk/2.6.14/1440_15.5_sys_signal-init-sa_mask.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1440_15.5_sys_signal-init-sa_mask.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 952 byte(s)
2.6.14-11, rebase against local tree
1 From: Oleg Nesterov <oleg@tv-sign.ru>
2 Date: Thu, 9 Feb 2006 19:41:41 +0000 (+0300)
3 Subject: [PATCH] sys_signal: initialize ->sa_mask
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/chrisw/linux-2.6.15.y.git;a=commitdiff;h=5e617b803260b4890a345f21d01790203e9dbde6
5
6 [PATCH] sys_signal: initialize ->sa_mask
7
8 Pointed out by Linus Torvalds.
9
10 sys_signal() forgets to initialize ->sa_mask.
11
12 ( I suspect arch/ia64/ia32/ia32_signal.c:sys32_signal()
13 also needs this fix )
14
15 Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
16 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 ---
20
21 --- a/kernel/signal.c
22 +++ b/kernel/signal.c
23 @@ -2604,6 +2604,7 @@ sys_signal(int sig, __sighandler_t handl
24
25 new_sa.sa.sa_handler = handler;
26 new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK;
27 + sigemptyset(&new_sa.sa.sa_mask);
28
29 ret = do_sigaction(sig, &new_sa, &old_sa);
30

  ViewVC Help
Powered by ViewVC 1.1.20