Re: [PATCH] fork/pid: Fix use-after-free in __task_pid_nr_ns

From: Qing Wang

Date: Wed Jan 07 2026 - 22:55:36 EST


On Thu, 08 Jan 2026 at 04:39, Kees Cook <kees@xxxxxxxxxx> wrote:
> It seems like there is synchronization missing between the task->signal
> assignment and its check in task_pid_ptr? Aren't there other ways of
> checking if a task is dead? This change doesn't look right to me...
>
> -Kees

Thanks for your reply. Oleg and I discussed this and concluded that this
issue no longer exists.

Discussion: https://lore.kernel.org/all/aV5zkjzLTwKQOn9D@xxxxxxxxxx/#R

Qing.