]> www.infradead.org Git - users/hch/misc.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)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:13 +0000 (17:45 -0800)
commit7f8b718c58783f3ff0810b39e2f62f50ba2549f6
tree4332e1de5c21cc08b30b32d4d2a1c18dee911a15
parentc004a793e0ec34047c3bd423bcd8966f5fac88dc
xfs: return from xfs_symlink_verify early on V4 filesystems

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>
fs/xfs/libxfs/xfs_symlink_remote.c