summaryrefslogtreecommitdiffstats
path: root/kernel/kcov.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-06-04 22:58:34 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-05 03:25:05 +0200
commite63a1008ee08334ea6a9c9edb59b1d2763f5b231 (patch)
treee831aa46e58916f523a26409f42a1cc8feaf8f23 /kernel/kcov.c
parentxfs: introduce xfs_btree_debug_check_ptr (diff)
downloadlinux-e63a1008ee08334ea6a9c9edb59b1d2763f5b231.tar.xz
linux-e63a1008ee08334ea6a9c9edb59b1d2763f5b231.zip
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 <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'kernel/kcov.c')
0 files changed, 0 insertions, 0 deletions