Re: [PATCH] fixup! proc: protect ptrace_may_access() with exec_update_lock (part 1)
From: Christian Brauner
Date: Fri Jun 05 2026 - 04:05:26 EST
On Thu, 04 Jun 2026 17:58:06 +0200, Jann Horn wrote:
> fix two test breakages in tools/testing/selftests/proc/read.c:
>
> - The test requires that readdir() on directories in procfs does not fail
> when running as root.
> Restore the previous behavior where /proc/$pid/map_files/ simply returns
> an empty directory if the process has no MM.
> - The test requires that any directory in procfs has "." and ".." entries.
> Restore the previous behavior where, even if a task has no MM,
> /proc/$pid/map_files/ still has "." and ".." entries.
> (This now differs from previous behavior in that even if the caller does
> not have permission, they still see "." and ".." entries; recreating
> the old behavior exactly would make this code unnecessarily complex.)
>
> [...]
Applied to the vfs-7.2.procfs branch of the vfs/vfs.git tree.
Patches in the vfs-7.2.procfs 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: vfs-7.2.procfs
[1/1] fixup! proc: protect ptrace_may_access() with exec_update_lock (part 1)
https://git.kernel.org/vfs/vfs/c/883d2f3ec72d