aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-01-05 13:13:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-05 22:34:54 -0500
commit5ba53ff648e785445a32ba39112ed07e4cf588d0 (patch)
treece8657276d09d639a4c069b9d39f8459542c29f3 /kernel
parent5f243b9b46a22e5790dbbc36f574c2417af49a41 (diff)
signals: sys_ssetmask() uses uninitialized newmask
Commit 77097ae503b1 ("most of set_current_blocked() callers want SIGKILL/SIGSTOP removed from set") removed the initialization of newmask by accident, causing ltp to complain like this: ssetmask01 1 TFAIL : sgetmask() failed: TEST_ERRNO=???(0): Success Restore the proper initialization. Reported-and-tested-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: stable@kernel.org # v3.5+ Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 7aaa51d8e5b8..9692499c77cf 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -3286,6 +3286,7 @@ SYSCALL_DEFINE1(ssetmask, int, newmask)
3286 int old = current->blocked.sig[0]; 3286 int old = current->blocked.sig[0];
3287 sigset_t newset; 3287 sigset_t newset;
3288 3288
3289 siginitset(&newset, newmask);
3289 set_current_blocked(&newset); 3290 set_current_blocked(&newset);
3290 3291
3291 return old; 3292 return old;