For at least the last two days, I've been noticing xfstest failures for generic/467 and generic/477 for all file systems. It can be reproduced by "install-kconfig; kbuild ; kvm-xfstests -c ext4/4k,xfs/4k generic/467 generic/477". I tried doing a bisection, which fingered commit 3660c5fd9482 ("exportfs: add permission method"). When I tried reverting this commit, and then fixing up a compile failure in fs/pidfs.c by the most obvious way, the test stopped failing. Christian, could you take a look? Many thanks!! Attached please find my most-recent fs-next testing, plus the patches which seems to resolve the problem. (The second in particular is a hack; and they aren't meant for you to apply, but rather to hopefully point out what might be the root cause.) - Ted generic/467 2s ... [00:46:15][ 13.994623] run fstests generic/467 at 2024-12-17 00:46:15 [ 14.336137] XFS (vdd): EXPERIMENTAL online scrub feature enabled. Use at your own risk! [00:46:16]- output mismatch (see /results/xfs/results-4k/generic/467.out.bad) --- tests/generic/467.out 2024-12-14 18:52:20.000000000 -0500 +++ /results/xfs/results-4k/generic/467.out.bad 2024-12-17 00:46:16.792323065 -0500 @@ -1,9 +1,16 @@ QA output created by 467 test_file_handles TEST_DIR/467-dir -dp test_file_handles TEST_DIR/467-dir -rp +/vdd/467-dir/file000009: read: Bad file descriptor test_file_handles TEST_DIR/467-dir -dkr +/vdd/467-dir/file000009: read: Bad file descriptor test_file_handles TEST_DIR/467-dir -lr ... (Run 'diff -u /root/xfstests/tests/generic/467.out /results/xfs/results-4k/generic/467.out.bad') generic/467 aggregate results across 5 runs: fail=5 (100.0%) generic/477 2s ... [00:46:17][ 15.758732] run fstests generic/477 at 2024-12-17 00:46:17 [ 16.171967] XFS (vdd): EXPERIMENTAL online scrub feature enabled. Use at your own risk! [00:46:18]- output mismatch (see /results/xfs/results-4k/generic/477.out.bad) --- tests/generic/477.out 2024-12-14 18:52:20.000000000 -0500 +++ /results/xfs/results-4k/generic/477.out.bad 2024-12-17 00:46:18.638016154 -0500 @@ -1,5 +1,9 @@ QA output created by 477 test_file_handles after cycle mount +/vdd/file000009: read: Bad file descriptor test_file_handles after rename parent +/vdd/file000009: read: Bad file descriptor test_file_handles after rename grandparent +/vdd/file000009: read: Bad file descriptor ... (Run 'diff -u /root/xfstests/tests/generic/477.out /results/xfs/results-4k/generic/477.out.bad')
TESTRUNID: ltm-20241215091253-0003 KERNEL: kernel 6.13.0-rc3-xfstests-g19e80e45a880 #1 SMP PREEMPT_DYNAMIC Mon Dec 16 18:59:31 EST 2024 x86_64 CMDLINE: -c ext4/all,xfs/all,btrfs/all,f2fs/all -g auto --repo https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next --watch fs-next CPUS: 2 MEM: 7680 ext4/4k: 578 tests, 2 failures, 53 skipped, 4716 seconds Failures: generic/467 generic/477 ext4/1k: 572 tests, 3 failures, 57 skipped, 5916 seconds Failures: generic/467 generic/477 generic/750 ext4/ext3: 570 tests, 3 failures, 146 skipped, 4681 seconds Failures: generic/467 generic/477 Flaky: generic/234: 20% (1/5) ext4/encrypt: 553 tests, 2 failures, 172 skipped, 3170 seconds Failures: generic/467 generic/477 ext4/nojournal: 570 tests, 2 failures, 124 skipped, 4125 seconds Failures: generic/467 generic/477 ext4/ext3conv: 575 tests, 2 failures, 55 skipped, 4827 seconds Failures: generic/467 generic/477 ext4/adv: 571 tests, 2 failures, 61 skipped, 4766 seconds Failures: generic/467 generic/757 ext4/dioread_nolock: 576 tests, 2 failures, 53 skipped, 6037 seconds Failures: generic/467 generic/477 ext4/data_journal: 571 tests, 3 failures, 132 skipped, 5690 seconds Failures: generic/127 generic/467 generic/477 ext4/bigalloc_4k: 549 tests, 3 failures, 56 skipped, 5339 seconds Failures: generic/467 generic/477 generic/590 ext4/bigalloc_1k: 550 tests, 2 failures, 67 skipped, 4651 seconds Failures: generic/467 generic/477 ext4/dax: 564 tests, 3 failures, 159 skipped, 2633 seconds Failures: generic/467 generic/477 generic/590 xfs/4k: 1161 tests, 3 failures, 183 skipped, 12584 seconds Failures: generic/467 generic/477 xfs/273 xfs/1k: 1161 tests, 4 failures, 169 skipped, 19271 seconds Failures: generic/467 generic/477 xfs/273 xfs/629 xfs/v4: 1160 tests, 7 failures, 478 skipped, 9498 seconds Failures: generic/467 generic/477 xfs/273 xfs/348 xfs/803 xfs/804 Flaky: generic/753: 20% (1/5) xfs/adv: 1161 tests, 3 failures, 169 skipped, 13511 seconds Failures: generic/467 generic/477 xfs/273 xfs/quota: 1161 tests, 4 failures, 168 skipped, 10502 seconds Failures: generic/050 generic/467 generic/477 xfs/273 xfs/quota_1k: 1161 tests, 6 failures, 170 skipped, 13697 seconds Failures: generic/050 generic/467 generic/477 xfs/273 xfs/629 Flaky: xfs/609: 20% (1/5) xfs/dirblock_8k: 1161 tests, 4 failures, 168 skipped, 14240 seconds Failures: generic/050 generic/467 generic/477 xfs/273 xfs/realtime: 1160 tests, 6 failures, 519 skipped, 10026 seconds Failures: generic/455 generic/467 generic/477 generic/590 xfs/273 Flaky: xfs/609: 20% (1/5) xfs/realtime_28k_logdev: 1160 tests, 11 failures, 600 skipped, 13489 seconds Failures: generic/467 generic/477 generic/590 generic/757 xfs/273 xfs/598 xfs/609 xfs/629 xfs/630 xfs/631 xfs/632 xfs/realtime_logdev: 1160 tests, 7 failures, 573 skipped, 13471 seconds Failures: generic/467 generic/477 generic/590 generic/757 xfs/273 xfs/598 Flaky: xfs/609: 80% (4/5) xfs/logdev: 1161 tests, 6 failures, 238 skipped, 15061 seconds Failures: generic/050 generic/467 generic/477 generic/757 xfs/273 xfs/598 xfs/dax: 1171 tests, 4 failures, 554 skipped, 6323 seconds Failures: generic/467 generic/477 xfs/629 xfs/632 btrfs/default: 1053 tests, 5 failures, 281 skipped, 10882 seconds Failures: btrfs/007 btrfs/012 btrfs/284 generic/467 generic/477 f2fs/default: 730 tests, 8 failures, 252 skipped, 7612 seconds Failures: f2fs/007 generic/050 generic/064 generic/467 generic/477 generic/563 generic/735 Flaky: f2fs/004: 40% (2/5) f2fs/encrypt: 712 tests, 7 failures, 358 skipped, 5671 seconds Failures: f2fs/007 generic/050 generic/467 generic/477 generic/563 generic/635 Flaky: generic/455: 40% (2/5) Totals: 23688 tests, 6015 skipped, 547 failures, 0 errors, 217710s FSTESTIMG: gce-xfstests/xfstests-amd64-202412152243 FSTESTPRJ: gce-xfstests FSTESTVER: blktests 92bc31c (Wed, 11 Dec 2024 20:58:23 +0900) FSTESTVER: fio fio-3.38 (Wed, 2 Oct 2024 12:53:13 -0600) FSTESTVER: fsverity v1.6 (Wed, 20 Mar 2024 21:21:46 -0700) FSTESTVER: ima-evm-utils v1.5 (Mon, 6 Mar 2023 07:40:07 -0500) FSTESTVER: libaio libaio-0.3.108-82-gb8eadc9 (Thu, 2 Jun 2022 13:33:11 +0200) FSTESTVER: ltp 20240930-123-g91cbe7e1f (Fri, 13 Dec 2024 08:24:47 +0100) FSTESTVER: quota v4.05-69-g68952f1 (Mon, 7 Oct 2024 15:45:56 -0400) FSTESTVER: util-linux v2.40.2 (Thu, 4 Jul 2024 09:59:17 +0200) FSTESTVER: xfsprogs v6.12.0 (Mon, 2 Dec 2024 22:40:29 +0100) FSTESTVER: xfstests-bld 2639bff5 (Sun, 15 Dec 2024 22:41:37 -0500) FSTESTVER: xfstests v2024.12.08-13-gb09c6267c (Sat, 14 Dec 2024 21:43:47 -0500) FSTESTVER: zz_build-distro bookworm FSTESTSET: -g auto FSTESTOPT: aex