]> 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:07:18 +0000 (18:07 +0100)
commit58d71a547717fb1342db2d019e7eb39ff143bb92
tree5b0ba9bef4532afec2fbb55620842fca707bd08d
parent5ff4d29a675f670bd31be870ba900757a7f822af
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