bcachefs (loop6): accounting_read... done
bcachefs (loop6): alloc_read... done
bcachefs (loop6): snapshots_read... done
bcachefs (loop6): check_allocations...
------------[ cut here ]------------
kernel BUG at fs/bcachefs/btree_iter.c:633!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 17046 Comm: syz.6.2293 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:bch2_btree_path_level_init+0x9f9/0xa20
Code: 91 fb ff ff e8 c8 d2 98 fd 90 0f 0b e8 c0 d2 98 fd 90 0f 0b e8 b8 d2 98 fd 90 0f 0b e8 b0 d2 98 fd 90 0f 0b e8 a8 d2 98 fd 90 <0f> 0b e8 a0 d2 98 fd 90 0f 0b e8 98 d2 98 fd 90 0f 0b e8 90 d2 98
RSP: 0018:ffffc90004b7e4a0 EFLAGS: 00010246
RAX: ffffffff8426db58 RBX: ffff888121e14360 RCX: 0000000000080000
RDX: ffffc900040ea000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff5200096fc88 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 00000000ffffffff
FS:  00007fcaf1cdb6c0(0000) GS:ffff8881a3c14000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560dfc20f238 CR3: 0000000027f8e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bch2_btree_path_traverse_one+0xfec/0x21d0
 bch2_btree_iter_peek_max+0x9e8/0x58f0
 bch2_check_allocations+0x120d/0x57b0
 __bch2_run_recovery_passes+0x3bd/0x1060
 bch2_run_recovery_passes+0x184/0x210
 bch2_fs_recovery+0x2690/0x3a50
 bch2_fs_start+0xaaf/0xda0
 bch2_fs_get_tree+0xb39/0x1520
 vfs_get_tree+0x92/0x2b0
 do_new_mount+0x2a2/0x9e0
 __se_sys_mount+0x317/0x410
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcaf0d9038a
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:00007fcaf1cdae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fcaf1cdaef0 RCX: 00007fcaf0d9038a
RDX: 0000200000000080 RSI: 0000200000000040 RDI: 00007fcaf1cdaeb0
RBP: 0000200000000080 R08: 00007fcaf1cdaef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000040
R13: 00007fcaf1cdaeb0 R14: 0000000000024c6d R15: 0000200000000180
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:bch2_btree_path_level_init+0x9f9/0xa20
Code: 91 fb ff ff e8 c8 d2 98 fd 90 0f 0b e8 c0 d2 98 fd 90 0f 0b e8 b8 d2 98 fd 90 0f 0b e8 b0 d2 98 fd 90 0f 0b e8 a8 d2 98 fd 90 <0f> 0b e8 a0 d2 98 fd 90 0f 0b e8 98 d2 98 fd 90 0f 0b e8 90 d2 98
RSP: 0018:ffffc90004b7e4a0 EFLAGS: 00010246
RAX: ffffffff8426db58 RBX: ffff888121e14360 RCX: 0000000000080000
RDX: ffffc900040ea000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff5200096fc88 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 00000000ffffffff
FS:  00007fcaf1cdb6c0(0000) GS:ffff8881a3c14000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560dfc20f238 CR3: 0000000027f8e000 CR4: 00000000000006f0
