On Thu, 01 Oct 2026 08:24:11 +0000, Bjoern Doebel wrote:
> The recent idmapped_tmpfile selftest creates a new directory in tmpfs
> owned by user ID 0. It then idmaps the mount as caller [0,10000) to disk
> [10000,20000). The original uid 0 owner does not exist in the mapped
> range. As a result, mapped_caller_creates_and_links fails at the
> O_TMPFILE open because inode_permission() rejects MAY_WRITE access:
> 
>   idmapped_tmpfile.c:145:mapped_caller_creates_and_links:
>   Expected fd (-1) >= 0 (0)
> 
> [...]

Applied to the vfs-7.4.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.misc 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.4.misc

[1/1] selftests/filesystems: Fix idmapped_tmpfile layer dir ownership
      https://git.kernel.org/vfs/vfs/c/9ba6627ef6b1


Reply via email to