Re: [RFC] coredump: Do not interrupt dump for TIF_NOTIFY_SIGNAL

From: Olivier Langlois
Date: Wed Jun 09 2021 - 17:26:40 EST


On Wed, 2021-06-09 at 16:05 -0500, Eric W. Biederman wrote:
> >
> > So the TIF_NOTIFY_SIGNAL does get set WHILE the core dump is
> > written.
>
> Did you mean?
>
> So the TIF_NOTIFY_SIGNAL does _not_ get set WHILE the core dump is
> written.
>
>
Absolutely not. I did really mean what I have said. Bear with me that,
I am not qualifying myself as an expert kernel dev yet so feel free to
correct me if I say some heresy...

io_uring is placing my task in my TCP socket wait queue because it
wants to read data from it.

The task returns to user space and core dump with a SEGV.

now my understanding is that the code that is waking up tasks, it is
the NIC driver interrupt handler which can occur while the core dump is
written.

does that make sense?

my testing is telling me that this is exactly what happens...