]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/signal.c
cpufreq: Avoid leaving stale IRQ work items during CPU offline
[mirror_ubuntu-bionic-kernel.git] / kernel / signal.c
index b0c4932aec35b63008fc79a25aa1dd85e628a045..0d887c0dad2e8a455ac0bfce677d7fd3283e7bb4 100644 (file)
@@ -77,6 +77,10 @@ static int sig_task_ignored(struct task_struct *t, int sig, bool force)
 
        handler = sig_handler(t, sig);
 
+       /* SIGKILL and SIGSTOP may not be sent to the global init */
+       if (unlikely(is_global_init(t) && sig_kernel_only(sig)))
+               return true;
+
        if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) &&
            handler == SIG_DFL && !(force && sig_kernel_only(sig)))
                return 1;