From patchwork Tue Jan 15 22:22:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3.5.y.z, extended, stable] Patch "signals: sys_ssetmask() uses uninitialized newmask" has been added to staging queue Date: Tue, 15 Jan 2013 12:22:04 -0000 From: Herton Ronaldo Krzesinski X-Patchwork-Id: 212344 Message-Id: <1358288524-31636-1-git-send-email-herton.krzesinski@canonical.com> To: Oleg Nesterov Cc: kernel-team@lists.ubuntu.com, Linus Torvalds This is a note to let you know that I have just added a patch titled signals: sys_ssetmask() uses uninitialized newmask to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree which can be found at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue If you, or anyone else, feels it should not be added to this tree, please reply to this email. For more information about the 3.5.y.z tree, see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable Thanks. -Herton ------ >From de4aca941949d8d2728b47c736ea80db6c69738e Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Sat, 5 Jan 2013 19:13:13 +0100 Subject: [PATCH] signals: sys_ssetmask() uses uninitialized newmask commit 5ba53ff648e785445a32ba39112ed07e4cf588d0 upstream. 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 Signed-off-by: Oleg Nesterov Signed-off-by: Linus Torvalds Signed-off-by: Herton Ronaldo Krzesinski --- kernel/signal.c | 1 + 1 file changed, 1 insertion(+) -- 1.7.9.5 diff --git a/kernel/signal.c b/kernel/signal.c index 6771027..e9d3270 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -3215,6 +3215,7 @@ SYSCALL_DEFINE1(ssetmask, int, newmask) int old = current->blocked.sig[0]; sigset_t newset; + siginitset(&newset, newmask); set_current_blocked(&newset); return old;