]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: add more bounds checking to sb sanity checks
authorBill O'Donnell <billodo@redhat.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
commit5a5276224333719a422e8b6e54c455d9ccebeca9
treec7ce98eeab1f952cc45609d6d4753535ef0b855d
parente228770792fa3e34a4f34e6cdaac7409baa2c6ec
libxfs: add more bounds checking to sb sanity checks

Source kernel commit: 8756a5af18191a471e670cc577aea60b652fea4c

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_sb.c