]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fail out of xfs_attr3_leaf_lookup_int if it looks corrupt
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:17 +0000 (22:43 -0600)
commite9998c63dc86706bee6fd61d2dd5d01530f8d1cc
tree45f203e984656d9d5594ba54faa29b9c84c53155
parent20e882d4fe6a7fdd0efbb61b3f10fb5b8ee8316a
xfs: fail out of xfs_attr3_leaf_lookup_int if it looks corrupt

Source kernel commit: 8ba92d43d499f4920af983a7c16e02304dd36932

If the xattr leaf block looks corrupt, return -EFSCORRUPTED to userspace
instead of ASSERTing on debug kernels or running off the end of the
buffer on regular kernels.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr_leaf.c