]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs: corrupted xattr should not block removexattr
authorZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 08:24:57 +0000 (16:24 +0800)
committerZorro Lang <zlang@kernel.org>
Mon, 6 Jun 2022 04:09:39 +0000 (12:09 +0800)
commit085faee2742cba049e6def9ee137c39accfd61de
tree7990f62054dce643626607082582d8fb970c5461
parent568ac9fffeb6afec03e5d6c9936617232fd7fc6d
xfs: corrupted xattr should not block removexattr

After we corrupted an attr leaf block (under node block), getxattr
might hit EFSCORRUPTED in xfs_attr_node_get when it does
xfs_attr_node_hasname. A known bug cause xfs_attr_node_get won't do
xfs_buf_trans release job, then a subsequent removexattr will hang.

This case covers a1de97fe296c ("xfs: Fix the free logic of state in
xfs_attr_node_hasname")

Signed-off-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
tests/xfs/081 [new file with mode: 0755]
tests/xfs/081.out [new file with mode: 0644]