bcachefs (loop2): accounting_read... done bcachefs (loop2): alloc_read... done bcachefs (loop2): stripes_read... done bcachefs (loop2): snapshots_read... done ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:633! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 3333 Comm: syz.2.17 Not tainted syzkaller #0 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:633 Code: 78 02 00 75 17 4c 89 f7 48 89 de e8 77 82 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:ffffc900038970b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810d3f82f0 RCX: 0000000000000000 RDX: ffff8881063de400 RSI: 0000000000000000 RDI: ffff888107370000 RBP: ffff88810ff80000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000002 R13: ffff88810d3f8000 R14: 0000000000000001 R15: ffff88810d3f8328 FS: 00007f22c9d4e6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcd449ac7c CR3: 000000010679e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_path_down fs/bcachefs/btree_iter.c:979 [inline] bch2_btree_path_traverse_one+0x8c2/0xc20 fs/bcachefs/btree_iter.c:1189 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline] bch2_btree_iter_peek_slot+0x1c7/0x760 fs/bcachefs/btree_iter.c:2755 btree_key_cache_fill+0x11d/0xcf0 fs/bcachefs/btree_key_cache.c:299 bch2_btree_path_traverse_cached+0x25d/0x340 fs/bcachefs/btree_key_cache.c:361 bch2_btree_path_traverse_one+0x8f4/0xc20 fs/bcachefs/btree_iter.c:1166 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline] bch2_btree_iter_peek_slot+0x1c7/0x760 fs/bcachefs/btree_iter.c:2755 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:578 [inline] bch2_bkey_get_iter fs/bcachefs/btree_iter.h:592 [inline] bch2_trans_start_alloc_update_noupdate+0xde/0x140 fs/bcachefs/alloc_background.c:456 __bch2_trans_mark_metadata_bucket fs/bcachefs/buckets.c:963 [inline] bch2_trans_mark_metadata_bucket+0x163/0x770 fs/bcachefs/buckets.c:1054 bch2_trans_mark_metadata_sectors fs/bcachefs/buckets.c:1071 [inline] __bch2_trans_mark_dev_sb fs/bcachefs/buckets.c:1111 [inline] bch2_trans_mark_dev_sb+0x1e1/0x320 fs/bcachefs/buckets.c:1139 bch2_trans_mark_dev_sbs_flags+0x136/0x220 fs/bcachefs/buckets.c:1149 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:222 [inline] bch2_run_recovery_passes+0x143/0x290 fs/bcachefs/recovery_passes.c:285 bch2_fs_recovery+0x8bf/0x11e0 fs/bcachefs/recovery.c:917 bch2_fs_start+0x1c5/0x290 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x2bc/0x6b0 fs/bcachefs/fs.c:2201 vfs_get_tree+0x26/0xf0 fs/super.c:1814 do_new_mount+0x140/0x390 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x147/0x1c0 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe2/0x210 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f22ca6e038a 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:00007f22c9d4de68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22c9d4def0 RCX: 00007f22ca6e038a RDX: 0000200000000040 RSI: 0000200000004940 RDI: 00007f22c9d4deb0 RBP: 0000200000000040 R08: 00007f22c9d4def0 R09: 0000000000004000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000200000004940 R13: 00007f22c9d4deb0 R14: 00000000000049ae R15: 0000200000000180 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_level_init+0x113/0x120 fs/bcachefs/btree_iter.c:633 Code: 78 02 00 75 17 4c 89 f7 48 89 de e8 77 82 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:ffffc900038970b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88810d3f82f0 RCX: 0000000000000000 RDX: ffff8881063de400 RSI: 0000000000000000 RDI: ffff888107370000 RBP: ffff88810ff80000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000002 R13: ffff88810d3f8000 R14: 0000000000000001 R15: ffff88810d3f8328 FS: 00007f22c9d4e6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcd449ac7c CR3: 000000010679e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400