fs: fix incorrect lflags value in the move_mount syscall
authorYuntao Wang <yuntao.wang@linux.dev>
Mon, 11 Aug 2025 05:24:26 +0000 (13:24 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 11 Aug 2025 14:05:53 +0000 (16:05 +0200)
commit593d9e4c3d634c370f226f55453c376bf43b3684
treef2bd4e5e444d854208a4a70869cafd93993a58fc
parent2319f9d0aa644eb9666c7be903078f50ecc2eb5b
fs: fix incorrect lflags value in the move_mount syscall

The lflags value used to look up from_path was overwritten by the one used
to look up to_path.

In other words, from_path was looked up with the wrong lflags value. Fix it.

Fixes: f9fde814de37 ("fs: support getname_maybe_null() in move_mount()")
Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
Link: https://lore.kernel.org/20250811052426.129188-1-yuntao.wang@linux.dev
[Christian Brauner <brauner@kernel.org>: massage patch]
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c