From: Oleg Nesterov Date: Thu, 9 Feb 2006 19:41:41 +0000 (+0300) Subject: [PATCH] sys_signal: initialize ->sa_mask X-Git-Tag: v2.6.16-rc3~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c70d3d703ad94727dab2a3664aeee33d71e00715;p=linux-2.6-omap-h63xx.git [PATCH] sys_signal: initialize ->sa_mask Pointed out by Linus Torvalds. sys_signal() forgets to initialize ->sa_mask. ( I suspect arch/ia64/ia32/ia32_signal.c:sys32_signal() also needs this fix ) Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index b373fc2420d..01a1e7f7acf 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2702,6 +2702,7 @@ sys_signal(int sig, __sighandler_t handler) new_sa.sa.sa_handler = handler; new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK; + sigemptyset(&new_sa.sa.sa_mask); ret = do_sigaction(sig, &new_sa, &old_sa);