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

Contents of /genpatches-2.6/trunk/2.6.14/1442_15.5_sys32_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, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 889 byte(s)
2.6.14-11, rebase against local tree
1 From: Tony Luck <tony.luck@intel.com>
2 Date: Thu, 9 Feb 2006 22:41:41 +0000 (-0800)
3 Subject: [PATCH] sys32_signal() forgets to 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=2e54d30f0f8ef437723c975b76fccf649536e96e
5
6 [PATCH] sys32_signal() forgets to initialize ->sa_mask
7
8 Pointed out by Oleg Nesterov <oleg@tv-sign.ru>, who in turn
9 got the hint from Linus.
10
11 Signed-off-by: Tony Luck <tony.luck@intel.com>
12 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 ---
15
16 --- a/arch/ia64/ia32/ia32_signal.c
17 +++ b/arch/ia64/ia32/ia32_signal.c
18 @@ -515,6 +515,7 @@ sys32_signal (int sig, unsigned int hand
19
20 sigact_set_handler(&new_sa, handler, 0);
21 new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK;
22 + sigemptyset(&new_sa.sa.sa_mask);
23
24 ret = do_sigaction(sig, &new_sa, &old_sa);
25

  ViewVC Help
Powered by ViewVC 1.1.20