Re: [PATCH] signal: Use list_del_init_careful() in flush_sigqueue()
From: Thomas Gleixner
Date: Mon Aug 31 2026 - 05:58:10 EST
On Sun, Aug 30 2026 at 17:04, Eric W. Biederman wrote:
> Thomas Gleixner <tglx@xxxxxxxxxx> writes:
>> Something like the below?
>
> Yes.
>
> It all comes after
> ptrace_event(PTRACE_EVENT_EXIT, code) and
> coredump_task_exit(tsk, core_state)
> so should be completely invisible to userspace.
>
> I don't see any problems with your proposed patch.
Let me write a change log then.
> I am pondering what it would take to move
> "flush_sigqueue(&p->signal->shared_pending);"
> into do_exit in the group_dead case.
>
> Perhaps exit_signals could perform the decrement of signal->live
> and return group_dead. If so all of the work could be performed
> in exit_signals(). As a follow-on change of cource.
I thought about that too, but that was looked too scary to me :)