syzbot


WARNING in __srcu_check_read_flavor

Status: upstream: reported syz repro on 2024/12/11 17:23
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+4a606091891fbc6811cf@syzkaller.appspotmail.com
First crash: 11d, last: 2d00h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kvm?] WARNING in __srcu_check_read_flavor 0 (2) 2024/12/19 13:30

Sample crash report:
bcachefs (loop0): dropping and reconstructing all alloc info
------------[ cut here ]------------
CPU 0 old state 7 new state 1
WARNING: CPU: 0 PID: 11600 at kernel/rcu/srcutree.c:734 __srcu_check_read_flavor+0x107/0x150 kernel/rcu/srcutree.c:734
Modules linked in:
CPU: 0 UID: 0 PID: 11600 Comm: syz.0.588 Not tainted 6.13.0-rc3-syzkaller-00073-geabcdba3ad40 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:__srcu_check_read_flavor+0x107/0x150 kernel/rcu/srcutree.c:734
Code: c6 c8 01 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 20 84 c0 75 38 41 8b 36 48 c7 c7 80 d1 0b 8c 89 ea 44 89 f9 e8 9a 7f db ff 90 <0f> 0b 90 90 eb a2 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 64 ff ff ff
RSP: 0018:ffffc90003c37310 EFLAGS: 00010246
RAX: ccec42c23dd3cf00 RBX: ffffe8ffffc330a0 RCX: ffff88802fceda00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000007 R08: ffffffff81601962 R09: 1ffffffff2030a26
R10: dffffc0000000000 R11: fffffbfff2030a27 R12: dffffc0000000000
R13: 0000607f47633080 R14: ffffe8ffffc33248 R15: 0000000000000001
FS:  00007f51f1dfe6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d34769160 CR3: 000000005dcee000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 srcu_check_read_flavor include/linux/srcutree.h:269 [inline]
 srcu_read_lock include/linux/srcu.h:247 [inline]
 __bch2_trans_get+0x7c9/0xd30 fs/bcachefs/btree_iter.c:3228
 bch2_btree_root_read+0xb9/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:0x7f51f2b874ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f51f1dfde68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f51f1dfdef0 RCX: 00007f51f2b874ca
RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007f51f1dfdeb0
RBP: 00000000200000c0 R08: 00007f51f1dfdef0 R09: 0000000000808040
R10: 0000000000808040 R11: 0000000000000246 R12: 0000000020000000
R13: 00007f51f1dfdeb0 R14: 0000000000005911 R15: 0000000020000200
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/19 13:30 upstream eabcdba3ad40 1432fc84 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in __srcu_check_read_flavor
2024/12/11 19:47 upstream f92f4749861b ff949d25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __srcu_check_read_flavor
2024/12/09 22:36 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __srcu_check_read_flavor
* Struck through repros no longer work on HEAD.