diff options
| author | Darrick J. Wong <[email protected]> | 2018-06-04 13:58:34 -0700 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2018-06-04 18:25:05 -0700 |
| commit | e63a1008ee08334ea6a9c9edb59b1d2763f5b231 (patch) | |
| tree | e831aa46e58916f523a26409f42a1cc8feaf8f23 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
| parent | 4cbae4b816fd61e63abbe8330741e257fa95d4c5 (diff) | |
xfs: strengthen btree pointer checks before use
Instead of ASSERTing on null btree pointers in xfs_btree_ptr_to_daddr,
use the new block number verifiers to ensure that the btree pointer
doesn't point to any sensitive areas (AG headers, past-EOFS) and return
-EFSCORRUPTED if this is the case. Remove the ASSERT because on-disk
corruptions shouldn't trigger ASSERTs.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions