diff --git a/kernel/signal.c b/kernel/signal.c index 845d4912b83a..fb5473724f5d 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2754,6 +2754,14 @@ relock: do_coredump(&ksig->info); } + /* + * PF_IO_WORKER threads will catch and exit on fatal signals + * themselves. They have cleanup that must be performed, so + * we cannot call do_exit() on their behalf. + */ + if (current->flags & PF_IO_WORKER) + goto out; + /* * Death signals, no core dump. */ @@ -2761,7 +2769,7 @@ relock: /* NOTREACHED */ } spin_unlock_irq(&sighand->siglock); - +out: ksig->sig = signr; return ksig->sig > 0; }