diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-16 18:54:12 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-17 21:00:46 -0800 |
commit | ce92d29ddf9908d397895c46b7c78e9db8df414d (patch) | |
tree | e05535b52a47a975f80995bca5e1260fd3248fa7 /fs/xfs/xfs_message.c | |
parent | 638a7174894c8f2195430990b614615ef16e3912 (diff) |
xfs: directory scrubber must walk through data block to offset
In xfs_scrub_dir_rec, we must walk through the directory block entries
to arrive at the offset given by the hash structure. If we blindly
trust the hash address, we can end up midway into a directory entry and
stray outside the block. Found by lastbit fuzzing lents[3].address in
xfs/390 with KASAN enabled.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_message.c')
0 files changed, 0 insertions, 0 deletions