* [syzbot] [bcachefs?] WARNING in bch2_trans_put
@ 2024-05-17 3:31 syzbot
2024-12-21 10:19 ` syzbot
2024-12-22 2:31 ` syzbot
0 siblings, 2 replies; 3+ messages in thread
From: syzbot @ 2024-05-17 3:31 UTC (permalink / raw)
To: bfoster, kent.overstreet, linux-bcachefs, linux-kernel,
syzkaller-bugs
Hello,
syzbot found the following issue on:
HEAD commit: ba16c1cf11c9 Merge tag 'edac_urgent_for_v6.9' of git://git..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13791cf4980000
kernel config: https://syzkaller.appspot.com/x/.config?x=9d7ea7de0cb32587
dashboard link: https://syzkaller.appspot.com/bug?extid=291aef749c5cbb9ca2fd
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bf33b57f5750/disk-ba16c1cf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5656c2dd228d/vmlinux-ba16c1cf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8807d572a9fd/bzImage-ba16c1cf.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+291aef749c5cbb9ca2fd@syzkaller.appspotmail.com
------------[ cut here ]------------
btree trans held srcu lock (delaying memory reclaim) for 14 seconds
WARNING: CPU: 0 PID: 29792 at fs/bcachefs/btree_iter.c:2873 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2871 [inline]
WARNING: CPU: 0 PID: 29792 at fs/bcachefs/btree_iter.c:2873 bch2_trans_put+0xd8c/0xf90 fs/bcachefs/btree_iter.c:3113
Modules linked in:
CPU: 0 PID: 29792 Comm: syz-executor.3 Not tainted 6.9.0-rc7-syzkaller-00188-gba16c1cf11c9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2871 [inline]
RIP: 0010:bch2_trans_put+0xd8c/0xf90 fs/bcachefs/btree_iter.c:3113
Code: 2b 1e 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 40 28 11 8c 48 89 d6 e8 c5 71 49 fd 90 <0f> 0b 90 90 e9 2d f8 ff ff e8 86 ff 86 fd 90 0f 0b 90 e9 70 f8 ff
RSP: 0018:ffffc9000504ef78 EFLAGS: 00010246
RAX: 25f7e0a65c980f00 RBX: 000000000000015e RCX: 0000000000040000
RDX: ffffc9000b21b000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: dffffc0000000000 R08: ffffffff81587c52 R09: fffffbfff1c39b5c
R10: dffffc0000000000 R11: fffffbfff1c39b5c R12: 1ffff11003daf808
R13: 1ffff11003daf80d R14: ffff88801ed7c068 R15: ffff88801ed7c041
FS: 00007f0b753806c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd53b17db38 CR3: 000000007c3e4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bch2_btree_root_read+0x8b2/0x970 fs/bcachefs/btree_io.c:1772
read_btree_roots+0x22d/0x7b0 fs/bcachefs/recovery.c:457
bch2_fs_recovery+0x4334/0x63b0 fs/bcachefs/recovery.c:785
bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1043
bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2105
bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1903
legacy_get_tree+0xee/0x190 fs/fs_context.c:662
vfs_get_tree+0x90/0x2a0 fs/super.c:1779
do_new_mount+0x2be/0xb40 fs/namespace.c:3352
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f0b7467f46a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0b7537fef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0b7537ff80 RCX: 00007f0b7467f46a
RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007f0b7537ff40
RBP: 0000000020011a00 R08: 00007f0b7537ff80 R09: 0000000001200014
R10: 0000000001200014 R11: 0000000000000202 R12: 0000000020011a40
R13: 00007f0b7537ff40 R14: 00000000000119fc R15: 0000000020000100
</TASK>
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [syzbot] [bcachefs?] WARNING in bch2_trans_put
2024-05-17 3:31 [syzbot] [bcachefs?] WARNING in bch2_trans_put syzbot
@ 2024-12-21 10:19 ` syzbot
2024-12-22 2:31 ` syzbot
1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2024-12-21 10:19 UTC (permalink / raw)
To: bfoster, kent.overstreet, linux-bcachefs, linux-kernel,
syzkaller-bugs
syzbot has found a reproducer for the following issue on:
HEAD commit: e9b8ffafd20a Merge tag 'usb-6.13-rc4' of git://git.kernel...
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=10b47e0f980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1234f097ee657d8b
dashboard link: https://syzkaller.appspot.com/bug?extid=291aef749c5cbb9ca2fd
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10246f30580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=176540c4580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d0a298a7e2d5/disk-e9b8ffaf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/361b2225724c/vmlinux-e9b8ffaf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/033556a82b6e/bzImage-e9b8ffaf.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/6fe2d0cb8e91/mount_0.gz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+291aef749c5cbb9ca2fd@syzkaller.appspotmail.com
bcachefs (loop0): btree_node_read_work: rewriting btree node at btree=extents level=0 SPOS_MAX due to error
------------[ cut here ]------------
btree trans held srcu lock (delaying memory reclaim) for 11 seconds
WARNING: CPU: 1 PID: 5823 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline]
WARNING: CPU: 1 PID: 5823 at fs/bcachefs/btree_iter.c:3030 bch2_trans_put+0xd45/0xf00 fs/bcachefs/btree_iter.c:3274
Modules linked in:
CPU: 1 UID: 0 PID: 5823 Comm: syz-executor422 Not tainted 6.13.0-rc3-syzkaller-00193-ge9b8ffafd20a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline]
RIP: 0010:bch2_trans_put+0xd45/0xf00 fs/bcachefs/btree_iter.c:3274
Code: 1c 24 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 40 28 51 8c 48 89 d6 e8 5c 4e 42 fd 90 <0f> 0b 90 90 e9 af f8 ff ff e8 1d ab 81 fd 90 0f 0b 90 e9 f2 f8 ff
RSP: 0018:ffffc90003f3f300 EFLAGS: 00010246
RAX: daf39d7b7a91ab00 RBX: 0000000000000113 RCX: ffff88802414bc00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff81601962 R09: 1ffff920007e7dfc
R10: dffffc0000000000 R11: fffff520007e7dfd R12: ffff888029d10070
R13: 1ffff110053a200e R14: ffff888029d10042 R15: 1ffff110053a2008
FS: 0000555580eef380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f95f5c24990 CR3: 0000000076fc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bch2_btree_root_read+0x6d6/0x7a0 fs/bcachefs/btree_io.c:1771
read_btree_roots+0x296/0x840 fs/bcachefs/recovery.c:523
bch2_fs_recovery+0x2585/0x39d0 fs/bcachefs/recovery.c:853
bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1037
bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170
vfs_get_tree+0x90/0x2b0 fs/super.c:1814
do_new_mount+0x2be/0xb40 fs/namespace.c:3507
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4057 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f95f5bf2eda
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd6fea95b8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd6fea95c0 RCX: 00007f95f5bf2eda
RDX: 00000000200058c0 RSI: 0000000020005900 RDI: 00007ffd6fea95c0
RBP: 0000000000000004 R08: 00007ffd6fea9600 R09: 00000000000058fe
R10: 0000000000000001 R11: 0000000000000282 R12: 00007ffd6fea9600
R13: 0000000000000003 R14: 0000000001000000 R15: 00007f95f5c3a03b
</TASK>
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [syzbot] [bcachefs?] WARNING in bch2_trans_put
2024-05-17 3:31 [syzbot] [bcachefs?] WARNING in bch2_trans_put syzbot
2024-12-21 10:19 ` syzbot
@ 2024-12-22 2:31 ` syzbot
1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2024-12-22 2:31 UTC (permalink / raw)
To: bfoster, kent.overstreet, linux-bcachefs, linux-kernel,
syzkaller-bugs
syzbot has bisected this issue to:
commit bcf77a05fb3d6210026483703bcacb22ed961c99
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Fri Nov 8 05:25:18 2024 +0000
bcachefs: Fix hidden btree errors when reading roots
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=175672df980000
start commit: e9b8ffafd20a Merge tag 'usb-6.13-rc4' of git://git.kernel...
git tree: upstream
final oops: https://syzkaller.appspot.com/x/report.txt?x=14d672df980000
console output: https://syzkaller.appspot.com/x/log.txt?x=10d672df980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1234f097ee657d8b
dashboard link: https://syzkaller.appspot.com/bug?extid=291aef749c5cbb9ca2fd
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10246f30580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=176540c4580000
Reported-by: syzbot+291aef749c5cbb9ca2fd@syzkaller.appspotmail.com
Fixes: bcf77a05fb3d ("bcachefs: Fix hidden btree errors when reading roots")
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-22 2:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17 3:31 [syzbot] [bcachefs?] WARNING in bch2_trans_put syzbot
2024-12-21 10:19 ` syzbot
2024-12-22 2:31 ` syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox