commit | 8210f4dda2d7642cb7c882db55e53d899cced401 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Wed Oct 25 16:59:43 2017 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Fri Oct 27 09:20:31 2017 -0700 |
tree | bcc197df6ce3248726b89fe63fb0aa7ae204e1a8 | |
parent | bdaac93f80b84aad2dd9316a3ffb6626b86c13e0 [diff] |
xfs: abort dir/attr btree operation if btree is obviously weird Abort an dir/attr btree operation if the attr btree has obvious problems like loops back to the root or pointers don't point down the tree. Found by fuzzing btree[0].before to zero in xfs/402, which livelocks on the cycle in the attr btree. Apply the same checks to xfs_da3_node_lookup_int. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>