bcachefs (loop2): invalid bkey in btree_node btree=subvolumes level=0: u64s 10 type subvolume 0:1970324836974593:0 len 0 ver 0: root 4096 snapshot id 4294967295 creation_parent 0 fs_parent 0 invalid pos, deleting bcachefs (loop2): accounting_read... done bcachefs (loop2): alloc_read... done bcachefs (loop2): snapshots_read... done bcachefs (loop2): check_allocations... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:619! Oops: invalid opcode: 0000 [#1] SMP PTI CPU: 0 UID: 0 PID: 3309 Comm: syz.2.16 Not tainted 6.15.0-rc4-syzkaller #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:bch2_btree_path_level_init+0x113/0x120 fs/bcachefs/btree_iter.c:619 Code: 78 02 00 75 17 4c 89 f7 48 89 de e8 27 73 fe ff 41 0f b7 47 08 66 41 3b 47 0a 75 d0 5b 41 5c 41 5e 41 5f c3 cc cc cc cc cc 90 <0f> 0b 90 0f 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900034334d0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810839c268 RCX: 0000000000000000 RDX: ffff88810abcd800 RSI: 0000000000000000 RDI: ffff88810df78000 RBP: ffff88810839c288 R08: 0000000000000003 R09: 0000000000000001 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88810839c000 R14: 0000000000000000 R15: ffff88810abcd800 FS: 00007f40f2c1e6c0(0000) GS:ffff8882b31d9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40ead0b000 CR3: 0000000104ffe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_path_lock_root fs/bcachefs/btree_iter.c:773 [inline] bch2_btree_path_traverse_one+0x690/0xc10 fs/bcachefs/btree_iter.c:1189 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:248 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2243 [inline] bch2_btree_iter_peek_max+0x289/0xe20 fs/bcachefs/btree_iter.c:2347 bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:702 [inline] bch2_gc_btree fs/bcachefs/btree_gc.c:677 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:740 [inline] bch2_check_allocations+0x1a2f/0x2050 fs/bcachefs/btree_gc.c:1042 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:227 [inline] bch2_run_recovery_passes+0x1d9/0x360 fs/bcachefs/recovery_passes.c:280 bch2_fs_recovery+0x9de/0x1390 fs/bcachefs/recovery.c:937 bch2_fs_start+0x2eb/0x440 fs/bcachefs/super.c:1091 bch2_fs_get_tree+0x4f8/0x6c0 fs/bcachefs/fs.c:2570 vfs_get_tree+0x26/0xf0 fs/super.c:1759 do_new_mount+0x13f/0x390 fs/namespace.c:3884 do_mount fs/namespace.c:4224 [inline] __do_sys_mount fs/namespace.c:4435 [inline] __se_sys_mount+0x147/0x1b0 fs/namespace.c:4412 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f40f39b014a 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:00007f40f2c1de68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f40f2c1def0 RCX: 00007f40f39b014a RDX: 0000200000001000 RSI: 0000200000001040 RDI: 00007f40f2c1deb0 RBP: 0000200000001000 R08: 00007f40f2c1def0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000001040 R13: 00007f40f2c1deb0 R14: 0000000000004914 R15: 0000200000001080 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_level_init+0x113/0x120 fs/bcachefs/btree_iter.c:619 Code: 78 02 00 75 17 4c 89 f7 48 89 de e8 27 73 fe ff 41 0f b7 47 08 66 41 3b 47 0a 75 d0 5b 41 5c 41 5e 41 5f c3 cc cc cc cc cc 90 <0f> 0b 90 0f 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900034334d0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810839c268 RCX: 0000000000000000 RDX: ffff88810abcd800 RSI: 0000000000000000 RDI: ffff88810df78000 RBP: ffff88810839c288 R08: 0000000000000003 R09: 0000000000000001 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88810839c000 R14: 0000000000000000 R15: ffff88810abcd800 FS: 00007f40f2c1e6c0(0000) GS:ffff8882b31d9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40ead0b000 CR3: 0000000104ffe000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400