Re: [PATCH] pid: document that do_each_pid_task() needs tasklist_lock

From: Christian Brauner

Date: Mon Oct 12 2026 - 04:40:25 EST


On Sun, 11 Oct 2026 16:16:51 +0200, Oleg Nesterov wrote:
> do_each_pid_task() looks "obviously rcu-safe". This confuses people
> and we already have 2 buggy users: send_sigio() and send_sigurg().
>
> The reasons why it is not are not obvious at all, add the comment.

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: document that do_each_pid_task() needs tasklist_lock
https://git.kernel.org/vfs/vfs/c/41e24dc80739