mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
io-wq: ensure we exit if thread group is exiting
Dave reports that a coredumping workload gets stuck in 5.15-rc2, and
identified the culprit in the Fixes line below. The problem is that
relying solely on fatal_signal_pending() to gate whether to exit or not
fails miserably if a process gets eg SIGILL sent. Don't exclusively
rely on fatal signals, also check if the thread group is exiting.
Fixes: 15e20db2e0
("io-wq: only exit on fatal signals")
Reported-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
e4e737bb5c
commit
87c1696655
@ -584,7 +584,8 @@ loop:
|
||||
|
||||
if (!get_signal(&ksig))
|
||||
continue;
|
||||
if (fatal_signal_pending(current))
|
||||
if (fatal_signal_pending(current) ||
|
||||
signal_group_exit(current->signal))
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user