[PATCH] libxfs: readahead of dir3 data blocks should use the read verifier
Christoph Hellwig
hch at infradead.org
Wed Aug 12 02:28:34 CDT 2015
On Tue, Aug 11, 2015 at 04:50:38PM -0700, Darrick J. Wong wrote:
> 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 directly calling only the spot-checking routine. 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 slashes and other junk).
>
> Signed-off-by: Darrick J. Wong <darrick.wong at oracle.com>
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs
mailing list