]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2eb84c740de8928810f56b283dd4baad89394b29
tree8af4e4655ce8932c8fddd44154aa2c9f5deda828
parent5785995ad3a7d399745acc0dba981b81efd12cb9
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