Re: [PATCH] pid: use READ_ONCE() in pid_alive()

From: Christian Brauner

Date: Mon Oct 12 2026 - 05:15:38 EST


On Fri, 02 Oct 2026 01:21:41 +0000, Babanpreet Singh wrote:
> KCSAN reports pid_alive() reading task->thread_pid while it gets cleared
> under tasklist_lock. The check only cares about NULL, so READ_ONCE() and
> WRITE_ONCE() are enough.

Applied to the kernel-7.4.signal branch of the vfs/vfs.git tree.
Patches in the kernel-7.4.signal branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: kernel-7.4.signal

[1/1] pid: use READ_ONCE() in pid_alive()
https://git.kernel.org/vfs/vfs/c/12e19bba68ba