Skip to content
Commit 8ba92d43 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: fail out of xfs_attr3_leaf_lookup_int if it looks corrupt



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: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent 9cfb9b47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment