Re: [PATCH] mount: fix statmount() and listmount() on empty mount namespaces

From: Christian Brauner

Date: Thu Nov 19 2026 - 16:46:06 EST


On Thu, 05 Nov 2026 22:10:32 +0800, shao.mingyin@xxxxxxxxxx wrote:
> statmount() and listmount() on a foreign mount namespace fail with
> -ENOENT when nothing is mounted on top of the namespace root. That is
> the case for an empty mount namespace created by
> unshare(UNSHARE_EMPTY_MNTNS) or clone3(CLONE_EMPTY_MNTNS): its only
> mount is the namespace root, a nullfs mount, and no rootfs is mounted
> on it.
>
> [...]

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

[1/1] mount: fix statmount() and listmount() on empty mount namespaces
https://git.kernel.org/vfs/vfs/c/dab56031dece