]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: return from xfs_symlink_verify early on V4 filesystems
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:43 +0000 (10:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:08 +0000 (18:13 +0100)
commit181cb9643633b80f40fa2fe80b9fda89f8776d62
treec5c039e447e579f877d8dec6dc361878b10aa688
parent3b6616ffc99b82af387f144e5b6d7afd5fa26780
xfs: return from xfs_symlink_verify early on V4 filesystems

commit 7f8b718c58783f3ff0810b39e2f62f50ba2549f6 upstream.

V4 symlink blocks didn't have headers, so return early if this is a V4
filesystem.

Cc: <stable@vger.kernel.org> # v5.1
Fixes: 39708c20ab5133 ("xfs: miscellaneous verifier magic value fixups")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_symlink_remote.c