Skip to content

Commit 7f8b718

Browse files
author
Darrick J. Wong
committed
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: <[email protected]> # v5.1 Fixes: 39708c2 ("xfs: miscellaneous verifier magic value fixups") Signed-off-by: "Darrick J. Wong" <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent c004a79 commit 7f8b718

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/xfs/libxfs/xfs_symlink_remote.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ xfs_symlink_verify(
9292
struct xfs_mount *mp = bp->b_mount;
9393
struct xfs_dsymlink_hdr *dsl = bp->b_addr;
9494

95+
/* no verification of non-crc buffers */
9596
if (!xfs_has_crc(mp))
96-
return __this_address;
97+
return NULL;
98+
9799
if (!xfs_verify_magic(bp, dsl->sl_magic))
98100
return __this_address;
99101
if (!uuid_equal(&dsl->sl_uuid, &mp->m_sb.sb_meta_uuid))

0 commit comments

Comments
 (0)