]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: verify free block header fields
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Feb 2017 23:14:00 +0000 (15:14 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Feb 2017 23:14:00 +0000 (15:14 -0800)
commit01c2e7a7a05fcb29766a91cab75d75380740f08c
treebb3cbd2ae2bf61bbe5c56098587bb01a36407da4
parentea9da32d29449bb5204ce8326c721a446f421b43
xfs: verify free block header fields

Perform basic sanity checking of the directory free block header
fields so that we avoid hanging the system on invalid data.

(Granted that just means that now we shutdown on directory write,
but that seems better than hanging...)

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_dir2_node.c