]> git.baikalelectronics.ru Git - kernel.git/commit
signal: Always ignore SIGKILL and SIGSTOP sent to the global init
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 20 Jul 2018 00:47:27 +0000 (19:47 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 11 Sep 2018 19:18:15 +0000 (21:18 +0200)
commit4aa6443922439046101981e5fe5da3e9fc9e4a99
treea98b4d6f24db7094b39d9f19d4d67b2446bcf483
parent0ff97265403d59a684be8666710156706ccfd8fa
signal: Always ignore SIGKILL and SIGSTOP sent to the global init

If the first process started (aka /sbin/init) receives a SIGKILL it
will panic the system if it is delivered.  Making the system unusable
and undebugable.  It isn't much better if the first process started
receives SIGSTOP.

So always ignore SIGSTOP and SIGKILL sent to init.

This is done in a separate clause in sig_task_ignored as force_sig_info
can clear SIG_UNKILLABLE and this protection should work even then.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/signal.c