summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2013-09-03 00:06:58 (GMT)
committerBen Myers <bpm@sgi.com>2013-09-09 22:43:58 (GMT)
commit0f295a214bb7658ca37bd61a8a1f0cd4a9d86c1f (patch)
treea5909bdca6ea1a287717d6b88dc76b4fd72f3688 /fs/xfs/xfs_bmap_util.c
parenta30b0367978f75a2659c71b33739e5e445a363c8 (diff)
downloadlinux-0f295a214bb7658ca37bd61a8a1f0cd4a9d86c1f.tar.xz
xfs: check magic numbers in dir3 leaf verifier first
Calling xfs_dir3_leaf_hdr_from_disk() in a verifier before validating the magic numbers in the buffer results in ASSERT failures due to mismatching magic numbers when a corruption occurs. Seeing as the verifier is supposed to catch the corruption and pass it back to the caller, having the verifier assert fail on error defeats the purpose of detecting the errors in the first place. Check the magic numbers direct from the buffer before decoding the header. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions