bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 bcachefs (loop0): creating //lost+found in subvol 1 snapshot 4294967295 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_iter.c:1842! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 14137 Comm: syz.0.2240 Not tainted 6.15.0-rc7-next-20250523-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:bch2_btree_path_peek_slot+0xfab/0xfe0 fs/bcachefs/btree_iter.c:1842 Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 19 a1 01 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 16 36 9e fd 90 <0f> 0b e8 0e 36 9e fd 90 0f 0b e8 06 36 9e fd 90 0f 0b e8 fe 35 9e RSP: 0018:ffffc900033d68e0 EFLAGS: 00010246 RAX: ffffffff84220d1a RBX: 0000000000004361 RCX: 0000000000080000 RDX: ffffc9000c20a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900033d69f0 R08: ffffc900033d6aa7 R09: 0000000000000000 R10: ffffc900033d6a80 R11: fffff5200067ad55 R12: ffff8880331e49d8 R13: ffff8880331e49f8 R14: ffffc900033d6a80 R15: 1ffff1100663c93e FS: 00007f3b67d1a6c0(0000) GS:ffff888125c56000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdbdaa64f98 CR3: 0000000078776000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_path_peek_slot_exact fs/bcachefs/btree_iter.h:264 [inline] verify_update_old_key+0x118/0x790 fs/bcachefs/btree_trans_commit.c:51 run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:489 [inline] bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:553 [inline] __bch2_trans_commit+0x361/0x8820 fs/bcachefs/btree_trans_commit.c:1005 bch2_trans_commit fs/bcachefs/btree_update.h:232 [inline] bch2_check_unreachable_inodes+0x45b/0xe90 fs/bcachefs/fsck.c:1407 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:415 [inline] __bch2_run_recovery_passes+0x385/0x10b0 fs/bcachefs/recovery_passes.c:470 bch2_run_recovery_passes+0x130/0x190 fs/bcachefs/recovery_passes.c:538 bch2_fs_recovery+0x2617/0x3970 fs/bcachefs/recovery.c:974 bch2_fs_start+0xa43/0xd30 fs/bcachefs/super.c:1199 bch2_fs_get_tree+0xbfc/0x15f0 fs/bcachefs/fs.c:2479 vfs_get_tree+0x92/0x2b0 fs/super.c:1802 do_new_mount+0x24a/0xa40 fs/namespace.c:3869 do_mount fs/namespace.c:4206 [inline] __do_sys_mount fs/namespace.c:4417 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4394 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3b66f9010a 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:00007f3b67d19e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f3b67d19ef0 RCX: 00007f3b66f9010a RDX: 0000200000000600 RSI: 0000200000000200 RDI: 00007f3b67d19eb0 RBP: 0000200000000600 R08: 00007f3b67d19ef0 R09: 0000000000010000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000200000000200 R13: 00007f3b67d19eb0 R14: 0000000000005924 R15: 0000200000000640 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_peek_slot+0xfab/0xfe0 fs/bcachefs/btree_iter.c:1842 Code: f7 ff ff 48 89 74 24 08 be 08 00 00 00 89 54 24 04 e8 19 a1 01 fe 48 8b 74 24 08 8b 54 24 04 e9 23 f7 ff ff e8 16 36 9e fd 90 <0f> 0b e8 0e 36 9e fd 90 0f 0b e8 06 36 9e fd 90 0f 0b e8 fe 35 9e RSP: 0018:ffffc900033d68e0 EFLAGS: 00010246 RAX: ffffffff84220d1a RBX: 0000000000004361 RCX: 0000000000080000 RDX: ffffc9000c20a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900033d69f0 R08: ffffc900033d6aa7 R09: 0000000000000000 R10: ffffc900033d6a80 R11: fffff5200067ad55 R12: ffff8880331e49d8 R13: ffff8880331e49f8 R14: ffffc900033d6a80 R15: 1ffff1100663c93e FS: 00007f3b67d1a6c0(0000) GS:ffff888125c56000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555568e5d5c8 CR3: 0000000078776000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400