]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: ensure that internal tmpfs mount gets mount id zero
authorChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 15:47:08 +0000 (16:47 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 12 Jan 2026 15:52:08 +0000 (16:52 +0100)
commita2062463e894039a6fdc2334b96afd91d44b64a8
tree743b1e6ce1480a1f20258fdc26aea00e3ffb9082
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
fs: ensure that internal tmpfs mount gets mount id zero

and the rootfs get mount id one as it always has. Before we actually
mount the rootfs we create an internal tmpfs mount which has mount id
zero but is never exposed anywhere. Continue that "tradition".

Link: https://patch.msgid.link/20260112-work-immutable-rootfs-v2-1-88dd1c34a204@kernel.org
Fixes: 7f9bfafc5f49 ("fs: use xarray for old mount id")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c