summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2016-05-24 01:24:02 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-24 02:04:14 +0200
commit5c8ccefdf46c5f87d87b694c7fbc04941c2c99a5 (patch)
treed2115adcef5c635ba4698c25a89934f7ff15e8e4 /ipc
parentkernel/signal.c: convert printk(KERN_<LEVEL> ...) to pr_<level>(...) (diff)
downloadlinux-5c8ccefdf46c5f87d87b694c7fbc04941c2c99a5.tar.xz
linux-5c8ccefdf46c5f87d87b694c7fbc04941c2c99a5.zip
signal: move the "sig < SIGRTMIN" check into siginmask(sig)
All the users of siginmask() must ensure that sig < SIGRTMIN. sig_fatal() doesn't and this is wrong: UBSAN: Undefined behaviour in kernel/signal.c:911:6 shift exponent 32 is too large for 32-bit type 'long unsigned int' the patch doesn't add the neccesary check to sig_fatal(), it moves the check into siginmask() and updates other callers. Link: http://lkml.kernel.org/r/20160517195052.GA15187@redhat.com Reported-by: Meelis Roos <mroos@linux.ee> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions