]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:35:03 +0000 (09:35 +0200)
commit1dc0e72c13e72ec0c28eec837132002c3ddb981f
treee56aef566954444f2ed056c364e6856b8a8745be
parent58565508b2b3fe1f12c738d9f98ba6112aaabca3
xfs: verify free block header fields

commit de14c5f541e78c59006bee56f6c5c2ef1ca07272 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_dir2_node.c