mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
signals: sys_ssetmask() uses uninitialized newmask
Commit 77097ae503 ("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 <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: [email protected] # v3.5+
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5f243b9b46
commit
5ba53ff648
1 changed files with 1 additions and 0 deletions
|
|
@ -3286,6 +3286,7 @@ SYSCALL_DEFINE1(ssetmask, int, newmask)
|
|||
int old = current->blocked.sig[0];
|
||||
sigset_t newset;
|
||||
|
||||
siginitset(&newset, newmask);
|
||||
set_current_blocked(&newset);
|
||||
|
||||
return old;
|
||||
|
|
|
|||
Loading…
Reference in a new issue