libxfs: add more bounds checking to sb sanity checks
authorBill O'Donnell <billodo@redhat.com>
Thu, 26 Jul 2018 17:10:34 +0000 (10:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:09 +0000 (13:18 -0700)
commit8756a5af18191a471e670cc577aea60b652fea4c
tree8af4e4655ce8932c8fddd44154aa2c9f5deda828
parenteca383fcd63b452cf533505154135da2a1f70227
libxfs: add more bounds checking to sb sanity checks

Current sb verifier doesn't check bounds on sb_fdblocks and sb_ifree.
Add sanity checks for these parameters.

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
[darrick: port to refactored sb validation predicates]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_sb.c