Skip to contentSkip to conversation

fstests/btrfs/080 fails

BUG report Glass Su 3 participants 5 messages Feb 14, 2025 – Feb 28, 2025 Btrfs file system

lore
Share & tools
lore

Glass Su

author
#0 lore raw

Hi

Recently I found btrfs/080 fails like:

btrfs/080 124s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//btrfs/080.out.bad)

    --- tests/btrfs/080.out     2024-08-29 09:10:14.933333334 +0800
    +++ /root/xfstests-dev/results//btrfs/080.out.bad   2025-02-14 12:53:24.667572260 +0800
    @@ -1,2 +1,3 @@
     QA output created by 080
    -Silence is golden
    +Unexpected digest for file /mnt/scratch/12_52_59_984815662_snap/foobar_39
    +(see /root/xfstests-dev/results//btrfs/080.full for details)
    ...
    (Run 'diff -u /root/xfstests-dev/tests/btrfs/080.out /root/xfstests-dev/results//btrfs/080.out.bad'  to see the entire diff)

Ran: btrfs/080
Failures: btrfs/080
Failed 1 of 1 tests

It can be reproduced once in about 20 times on v6.13, misc-next(HEAD: 1c08f86eeadab89e8f6ad8559df54633afb7a3ba) in my VM with 32 cores.

Configs and log are attached.

—
Su

author
#1 lore raw
Quoted 23 lines · Glass Su

Hi

Recently I found btrfs/080 fails like:

btrfs/080 124s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//btrfs/080.out.bad)
--- tests/btrfs/080.out 2024-08-29 09:10:14.933333334 +0800
+++ /root/xfstests-dev/results//btrfs/080.out.bad 2025-02-14 12:53:24.667572260 +0800
@@ -1,2 +1,3 @@
QA output created by 080
-Silence is golden
+Unexpected digest for file /mnt/scratch/12_52_59_984815662_snap/foobar_39
+(see /root/xfstests-dev/results//btrfs/080.full for details)
...
(Run 'diff -u /root/xfstests-dev/tests/btrfs/080.out /root/xfstests-dev/results//btrfs/080.out.bad' to see the entire diff)
Ran: btrfs/080
Failures: btrfs/080
Failed 1 of 1 tests

Quoted 1 line

It can be reproduced once in about 20 times on v6.13, misc-next(HEAD: 1c08f86eeadab89e8f6ad8559df54633afb7a3ba)

'misc-next' should be 'for-next'.

Quoted 10 lines

in my VM with 32 cores.

Configs and log are attached.

—
Su

<btrfs_080.zip>

#2 lore raw
In reply to Glass Su
Quoted 15 lines · Glass Su

Hi

Recently I found btrfs/080 fails like:

btrfs/080 124s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//btrfs/080.out.bad)

     --- tests/btrfs/080.out     2024-08-29 09:10:14.933333334 +0800
     +++ /root/xfstests-dev/results//btrfs/080.out.bad   2025-02-14 12:53:24.667572260 +0800
     @@ -1,2 +1,3 @@
      QA output created by 080
     -Silence is golden
     +Unexpected digest for file /mnt/scratch/12_52_59_984815662_snap/foobar_39
     +(see /root/xfstests-dev/results//btrfs/080.full for details)
     ...
     (Run 'diff -u /root/xfstests-dev/tests/btrfs/080.out /root/xfstests-dev/results//btrfs/080.out.bad'  to see the entire diff)
Quoted 8 lines

Ran: btrfs/080
Failures: btrfs/080
Failed 1 of 1 tests

It can be reproduced once in about 20 times on v6.13, misc-next(HEAD: 1c08f86eeadab89e8f6ad8559df54633afb7a3ba) in my VM with 32 cores.

Configs and log are attached.

I checked your kernel config, it looks like it has a config that is known to cause problems:

- CONFIG_PT_RECLAIM=y

I'm unable to reproduce the bug locally, with 64 runs.
But that's with CONFIG_PT_RECLAIM=n, as I use that config to workaround the bug.

Mind to test with either that config disabled, or apply this hotfix and retry?

https://lore.kernel.org/linux-mm/[email protected]/

Thanks,
Qu

Quoted 8 lines

—
Su

author
#3 lore raw
Quoted 29 lines · Qu Wenruo
Quoted 22 lines · Glass Su

Hi

Recently I found btrfs/080 fails like:

btrfs/080 124s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//btrfs/080.out.bad)

    --- tests/btrfs/080.out     2024-08-29 09:10:14.933333334 +0800
    +++ /root/xfstests-dev/results//btrfs/080.out.bad   2025-02-14 12:53:24.667572260 +0800
    @@ -1,2 +1,3 @@
     QA output created by 080
    -Silence is golden
    +Unexpected digest for file /mnt/scratch/12_52_59_984815662_snap/foobar_39
    +(see /root/xfstests-dev/results//btrfs/080.full for details)
    ...
    (Run 'diff -u /root/xfstests-dev/tests/btrfs/080.out /root/xfstests-dev/results//btrfs/080.out.bad'  to see the entire diff)

Ran: btrfs/080
Failures: btrfs/080
Failed 1 of 1 tests

It can be reproduced once in about 20 times on v6.13, misc-next(HEAD: 1c08f86eeadab89e8f6ad8559df54633afb7a3ba) in my VM with 32 cores.

Quoted 8 lines
Quoted 1 line

Configs and log are attached.

I checked your kernel config, it looks like it has a config that is known to cause problems:

- CONFIG_PT_RECLAIM=y

I'm unable to reproduce the bug locally, with 64 runs.

The test stresses CPU I guess reproduce possibility is CPU cores sensitive.

Quoted 9 lines

But that's with CONFIG_PT_RECLAIM=n, as I use that config to workaround the bug.

Mind to test with either that config disabled, or apply this hotfix and retry?

https://lore.kernel.org/linux-mm/[email protected]/

Unfortunately it still fails after patching this.

—
Su

Quoted 6 lines

Thanks,
Qu

Quoted 4 lines

—
Su

#4 lore raw
In reply to Qu Wenruo
Quoted 33 lines · Qu Wenruo
Quoted 15 lines · Glass Su

Hi

Recently I found btrfs/080 fails like:

btrfs/080 124s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//btrfs/080.out.bad)

     --- tests/btrfs/080.out     2024-08-29 09:10:14.933333334 +0800
     +++ /root/xfstests-dev/results//btrfs/080.out.bad   2025-02-14 12:53:24.667572260 +0800
     @@ -1,2 +1,3 @@
      QA output created by 080
     -Silence is golden
     +Unexpected digest for file /mnt/scratch/12_52_59_984815662_snap/foobar_39
     +(see /root/xfstests-dev/results//btrfs/080.full for details)
     ...
     (Run 'diff -u /root/xfstests-dev/tests/btrfs/080.out /root/xfstests-dev/results//btrfs/080.out.bad'  to see the entire diff)
Quoted 8 lines

Ran: btrfs/080
Failures: btrfs/080
Failed 1 of 1 tests

It can be reproduced once in about 20 times on v6.13, misc-next(HEAD: 1c08f86eeadab89e8f6ad8559df54633afb7a3ba) in my VM with 32 cores.

Configs and log are attached.

I checked your kernel config, it looks like it has a config that is known to cause problems:

- CONFIG_PT_RECLAIM=y

Quoted 8 lines

I'm unable to reproduce the bug locally, with 64 runs.
But that's with CONFIG_PT_RECLAIM=n, as I use that config to workaround the bug.

Mind to test with either that config disabled, or apply this hotfix and retry?

https://lore.kernel.org/linux-mm/[email protected]/

Nop, that's totally unrelated.

I've been getting the failure too, very sporadically, even before for-next was based on 6.14-rc1/2.
The problem is due to a behaviour that changed in the buffered write path (you did that change).

I've just sent an update to the test to make it work on 6.13+:

https://lore.kernel.org/linux-btrfs/d48dd538e99048e73973c6b32a75a6ff340e8c47.1740759907.git.fdmanana@suse.com/

Thanks.

Quoted 13 lines

Thanks,
Qu

Quoted 8 lines

—
Su