]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
kernel/signal.c: protect the SIGNAL_UNKILLABLE tasks from !sig_kernel_only() signals
authorOleg Nesterov <oleg@redhat.com>
Fri, 17 Nov 2017 23:30:04 +0000 (15:30 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:47:09 +0000 (11:47 +0100)
commit0141d5415aee37612d54c100186de084263f3d28
tree9448bffd9c54f0be10bdb4ba0f6198ce1ffa7f6f
parentb7569c4f29de47ee38643630c4275d3d218cc693
kernel/signal.c: protect the SIGNAL_UNKILLABLE tasks from !sig_kernel_only() signals

BugLink: http://bugs.launchpad.net/bugs/1745263
commit ac25385089f673560867eb5179228a44ade0cfc1 upstream.

Change sig_task_ignored() to drop the SIG_DFL && !sig_kernel_only()
signals even if force == T.  This simplifies the next change and this
matches the same check in get_signal() which will drop these signals
anyway.

Link: http://lkml.kernel.org/r/20171103184227.GC21036@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Tested-by: Kyle Huey <me@kylehuey.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/signal.c