]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: readahead of dir3 data blocks should use the read verifier
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 23 Aug 2015 23:21:01 +0000 (09:21 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 23 Aug 2015 23:21:01 +0000 (09:21 +1000)
commit06e61d624a793a0b9eaf60153410b8c0a63159a8
treedd422f190abc99e68413ae6a33757c1384119630
parent621b5ffff91aade1c0998c685378bff15e869a94
libxfs: readahead of dir3 data blocks should use the read verifier

In the dir3 data block readahead function, use the regular read
verifier to check the block's CRC and spot-check the block contents
instead of calling the spot-checking routine directly.  This prevents
corrupted directory data blocks from being read into the kernel, which
can lead to garbage ls output and directory loops (if say one of the
entries contains invalid characters).

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_dir2_data.c