bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey.c:298! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5824 Comm: syz.0.16 Not tainted 6.15.0-syzkaller-g0f70f5b08a47 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__bkey_unpack_pos+0x7a8/0x7c0 fs/bcachefs/bkey.c:298 Code: 48 c7 c7 e0 e2 75 8e 4c 8b 7c 24 10 4c 89 fe 48 89 da e8 6b dd da 00 e9 d1 fc ff ff e8 51 1f a6 fd 90 0f 0b e8 49 1f a6 fd 90 <0f> 0b e8 41 1f a6 fd 90 0f 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000cbae6a8 EFLAGS: 00010293 RAX: ffffffff841a2207 RBX: ffff88804eb21060 RCX: ffff888000f18000 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffc9000cbae753 R09: 0000000000000000 R10: ffffc9000cbae748 R11: fffff52001975ceb R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000003 FS: 00007f207a0986c0(0000) GS:ffff88808d265000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd07c5df98 CR3: 000000003de25000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bkey_unpack_pos_format_checked fs/bcachefs/bkey.h:449 [inline] bkey_unpack_pos fs/bcachefs/bkey.h:457 [inline] __bch2_bkey_cmp_packed_format_checked_inlined fs/bcachefs/bkey_cmp.h:103 [inline] __bch2_bkey_cmp_packed_format_checked+0x25e/0x510 fs/bcachefs/bkey.c:1015 bkey_cmp_p_or_unp fs/bcachefs/bset.h:291 [inline] bkey_iter_cmp_p_or_unp fs/bcachefs/bset.h:400 [inline] bch2_bset_search_linear fs/bcachefs/bset.c:1197 [inline] bch2_btree_node_iter_init+0x1d15/0x3a50 fs/bcachefs/bset.c:1342 __bch2_btree_path_set_pos+0xbac/0x1530 fs/bcachefs/btree_iter.c:1322 bch2_btree_path_set_pos fs/bcachefs/btree_iter.h:232 [inline] bch2_btree_iter_peek_node+0x673/0xbc0 fs/bcachefs/btree_iter.c:1933 bch2_gc_btree fs/bcachefs/btree_gc.c:708 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:754 [inline] bch2_check_allocations+0x1a70/0x55f0 fs/bcachefs/btree_gc.c:1056 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+0x184/0x210 fs/bcachefs/recovery_passes.c:541 bch2_fs_recovery+0x2617/0x3970 fs/bcachefs/recovery.c:974 bch2_fs_start+0xa43/0xd30 fs/bcachefs/super.c:1206 bch2_fs_get_tree+0xbfc/0x15f0 fs/bcachefs/fs.c:2479 vfs_get_tree+0x8f/0x2b0 fs/super.c:1802 do_new_mount+0x24a/0xa40 fs/namespace.c:3856 do_mount fs/namespace.c:4193 [inline] __do_sys_mount fs/namespace.c:4404 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4381 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:0x7f20791874ca 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:00007f207a097e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f207a097ef0 RCX: 00007f20791874ca RDX: 00000000200002c0 RSI: 0000000020000380 RDI: 00007f207a097eb0 RBP: 00000000200002c0 R08: 00007f207a097ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000380 R13: 00007f207a097eb0 R14: 0000000000005937 R15: 0000000020000300 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bkey_unpack_pos+0x7a8/0x7c0 fs/bcachefs/bkey.c:298 Code: 48 c7 c7 e0 e2 75 8e 4c 8b 7c 24 10 4c 89 fe 48 89 da e8 6b dd da 00 e9 d1 fc ff ff e8 51 1f a6 fd 90 0f 0b e8 49 1f a6 fd 90 <0f> 0b e8 41 1f a6 fd 90 0f 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000cbae6a8 EFLAGS: 00010293 RAX: ffffffff841a2207 RBX: ffff88804eb21060 RCX: ffff888000f18000 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffc9000cbae753 R09: 0000000000000000 R10: ffffc9000cbae748 R11: fffff52001975ceb R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000003 FS: 00007f207a0986c0(0000) GS:ffff88808d265000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f41b32e9c CR3: 000000003de25000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400