------------[ cut here ]------------ CPU 1 old state 2 new state 1 WARNING: CPU: 0 PID: 6261 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: 6261 Comm: syz.0.44 Not tainted 6.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 00 e2 2b 8c 89 ea 44 89 f9 e8 0a d6 da 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:ffffc900058defd0 EFLAGS: 00010246 RAX: fec3c127cd6c7400 RBX: ffffe8ffffd55ea0 RCX: 0000000000080000 RDX: ffffc9000e647000 RSI: 000000000006b4b5 RDI: 000000000006b4b6 RBP: 0000000000000002 R08: ffffffff81817d42 R09: 1ffff92000b1bd94 R10: dffffc0000000000 R11: fffff52000b1bd95 R12: dffffc0000000000 R13: 0000607f47655e80 R14: ffffe8ffffd56048 R15: 0000000000000001 FS: 00007eff9cf7d6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000020000 CR3: 000000003599c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: srcu_check_read_flavor include/linux/srcutree.h:265 [inline] srcu_read_lock include/linux/srcu.h:254 [inline] __bch2_trans_get+0x7cc/0xd30 fs/bcachefs/btree_iter.c:3408 bch2_dev_freespace_init+0x106/0x1c00 fs/bcachefs/alloc_background.c:2213 bch2_fs_freespace_init+0xdc/0x320 fs/bcachefs/alloc_background.c:2329 bch2_fs_initialize+0xbd7/0x1610 fs/bcachefs/recovery.c:1154 bch2_fs_start+0x36d/0x610 fs/bcachefs/super.c:1042 bch2_fs_get_tree+0xdb7/0x17a0 fs/bcachefs/fs.c:2203 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 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:0x7eff9c18e90a 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:00007eff9cf7ce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007eff9cf7cef0 RCX: 00007eff9c18e90a RDX: 00004000000000c0 RSI: 0000400000000180 RDI: 00007eff9cf7ceb0 RBP: 00004000000000c0 R08: 00007eff9cf7cef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000400000000180 R13: 00007eff9cf7ceb0 R14: 0000000000005a18 R15: 0000400000000480