Re: [PATCH] signal: Use list_del_init_careful() in flush_sigqueue()

From: Oleg Nesterov

Date: Wed Aug 26 2026 - 15:32:39 EST


Thomas,

I am already sleeping, but let me ask anyway

On 08/26, Thomas Gleixner wrote:
>
> On Wed, Aug 26 2026 at 11:36, Oleg Nesterov wrote:
> >
> > So. With this change release_task()->flush_sigqueue(&old_leader->pending)
> > can still race with posixtimer_send_sigqueue(), but it will do nothing.
> >
> > But it also does "nothing" if tmr->sigq is already pending (!list_empty)
> > so I am starting to think about the change below again...
>
> Sure, but that's an orthogonal optimization once we fixed the exec()
> mess :)

I am almost sure I missed something again. But I thought that this "optimization"
can also fix the exec() mess we discuss in this thread?

No?

Oleg.