]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: mark extended attr corrupt when lookup-by-hash fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:38:09 +0000 (10:38 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:13 +0000 (07:58 -0700)
commitfa65b00be6dfe80fb6eff8d22043eb984fea8842
tree5b8cc35c67e4e424c1050e3bf967e247d327d3ce
parent2761a7a0db8a826197cefd3179a799748fe5250b
xfs: mark extended attr corrupt when lookup-by-hash fails

In xchk_xattr_listent, we attempt to validate the extended attribute
hash structures by performing a attr lookup by (hashed) name.  If the
lookup returns ENODATA, that means that the hash information is corrupt.
The _process_error functions don't catch this, so we have to add that
explicitly.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/attr.c