]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: refuse mnt id requests with invalid ids early
authorChristian Brauner <brauner@kernel.org>
Thu, 4 Jul 2024 08:58:34 +0000 (10:58 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 8 Jul 2024 04:32:14 +0000 (06:32 +0200)
commit80744d0e7a81c35795a2754049eafff76abbe371
treef7e7662b28ca7ffe05e85d7320f483f3c39c1325
parent5e8a9cebc5580ca7c01d6c151017187785dc0dfe
fs: refuse mnt id requests with invalid ids early

Unique mount ids start past the last valid old mount id value to not
confuse the two so reject invalid values early in copy_mnt_id_req().

Link: https://lore.kernel.org/r/20240704-work-mount-fixes-v1-1-d007c990de5f@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c