OSDN Git Service

signal: Make coredump handling explicit in complete_signal
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 17:01:12 +0000 (11:01 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 18:43:12 +0000 (12:43 -0600)
commit7ba03471ac4ad2432e5ccf67d9d4ab03c177578a
tree08726dd4a9c9a1790f46e3c71be88ea9e1b2fdcc
parenta0287db0f1d6918919203ba31fd7cda59bf889e8
signal: Make coredump handling explicit in complete_signal

Ever since commit 6cd8f0acae34 ("coredump: ensure that SIGKILL always
kills the dumping thread") it has been possible for a SIGKILL received
during a coredump to set SIGNAL_GROUP_EXIT and trigger a process
shutdown (for a second time).

Update the logic to explicitly allow coredumps so that coredumps can
set SIGNAL_GROUP_EXIT and shutdown like an ordinary process.

Link: https://lkml.kernel.org/r/87zgo6ytyf.fsf_-_@email.froward.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/signal.c