]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: regression test for writeback corruption bug
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 Dec 2022 00:21:50 +0000 (16:21 -0800)
committerZorro Lang <zlang@kernel.org>
Sun, 25 Dec 2022 13:24:08 +0000 (21:24 +0800)
commit884daafcd9cc26bd1badfef8dee02e772ae2bee9
tree4469f29f3f5a544a49007f5ecf94207067a9d590
parentdaa1c02369c869bfa85c0ad149020c52b4480b09
xfs: regression test for writeback corruption bug

This is a regression test for a data corruption bug that existed in XFS'
copy on write code between 4.9 and 4.19.  The root cause is a
concurrency bug wherein we would drop ILOCK_SHARED after querying the
CoW fork in xfs_map_cow and retake it before querying the data fork in
xfs_map_blocks.  See the test description for a lot more details.

Cc: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
common/tracing [new file with mode: 0644]
tests/xfs/558 [new file with mode: 0755]
tests/xfs/558.out [new file with mode: 0644]