]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: test for NULL xattr buffer problem during unlink
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Oct 2017 11:36:27 +0000 (07:36 -0400)
committerEryu Guan <eguan@redhat.com>
Sun, 15 Oct 2017 07:16:55 +0000 (15:16 +0800)
commit954d9953c5450e277c8cddb210c420a81914382d
tree0d11e05d3b7d452e1828b8f25c0d6cdd85dfca6b
parent2acbc4f07ab2667f98d189cea258cf63a79a866d
xfs: test for NULL xattr buffer problem during unlink

XFS had a bug that resulted in an unexpected NULL buffer during
unlink of an inode with a multi-level attr fork tree. This occurred
due to a stale reference to content in a released/reclaimed buffer.

Use the XFS buffer LRU reference count error injection tag to
recreate the conditions for the bug. Create a file with a
multi-level attr fork tree and then unlink it with buffer caching
disabled.

Commit f35c5e10c6ed ("xfs: reinit btree pointer on attr tree
inactivation walk") fixed the bug.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/433 [new file with mode: 0755]
tests/xfs/433.out [new file with mode: 0644]
tests/xfs/group