bcachefs (loop0): empty btree root extents done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey.c:298! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5334 Comm: syz-executor216 Not tainted 6.14.0-rc1-syzkaller-00034-g92514ef226f5 #0 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+0x781/0x790 fs/bcachefs/bkey.c:298 Code: e8 74 82 86 fd 48 c7 c7 c0 c2 f3 8e 4c 89 e6 48 89 da e8 c2 24 e8 00 e9 f4 fc ff ff e8 58 82 86 fd 90 0f 0b e8 50 82 86 fd 90 <0f> 0b e8 48 82 86 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d316440 EFLAGS: 00010293 RAX: ffffffff8438dbd0 RBX: 0000000000000003 RCX: ffff888000792440 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff8438d525 R09: 0000000000000000 R10: ffffc9000d316500 R11: fffff52001a62ca2 R12: ffffc9000d316500 R13: dffffc0000000000 R14: 000000000000001f R15: ffff888049100180 FS: 00007fdbc7dae6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdbc07ff000 CR3: 0000000042714000 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+0x2c7/0x800 fs/bcachefs/bkey.c:1020 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:1189 [inline] bch2_btree_node_iter_init+0x234b/0x4280 fs/bcachefs/bset.c:1334 __btree_path_level_init fs/bcachefs/btree_iter.c:617 [inline] bch2_btree_path_level_init+0x4d2/0x9f0 fs/bcachefs/btree_iter.c:637 btree_path_lock_root fs/bcachefs/btree_iter.c:787 [inline] bch2_btree_path_traverse_one+0x108b/0x2930 fs/bcachefs/btree_iter.c:1203 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline] __bch2_btree_iter_peek fs/bcachefs/btree_iter.c:2270 [inline] bch2_btree_iter_peek_max+0xc06/0x6320 fs/bcachefs/btree_iter.c:2367 bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:681 [inline] bch2_alloc_read+0x1719/0x2f50 fs/bcachefs/alloc_background.c:624 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:226 bch2_run_recovery_passes+0x2ad/0xa90 fs/bcachefs/recovery_passes.c:291 bch2_fs_recovery+0x265a/0x3de0 fs/bcachefs/recovery.c:936 bch2_fs_start+0x37c/0x610 fs/bcachefs/super.c:1030 bch2_fs_get_tree+0xd8d/0x1740 fs/bcachefs/fs.c:2203 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3560 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4088 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdbc7e00e9a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 ee 08 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdbc7dadfd8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fdbc7dadff0 RCX: 00007fdbc7e00e9a RDX: 0000200000000000 RSI: 0000200000000040 RDI: 00007fdbc7dadff0 RBP: 0000200000000040 R08: 00007fdbc7dae030 R09: 0000000000005939 R10: 0000000000000000 R11: 0000000000000282 R12: 0000200000000000 R13: 00007fdbc7dae030 R14: 0000000000000004 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bkey_unpack_pos+0x781/0x790 fs/bcachefs/bkey.c:298 Code: e8 74 82 86 fd 48 c7 c7 c0 c2 f3 8e 4c 89 e6 48 89 da e8 c2 24 e8 00 e9 f4 fc ff ff e8 58 82 86 fd 90 0f 0b e8 50 82 86 fd 90 <0f> 0b e8 48 82 86 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 RSP: 0018:ffffc9000d316440 EFLAGS: 00010293 RAX: ffffffff8438dbd0 RBX: 0000000000000003 RCX: ffff888000792440 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff8438d525 R09: 0000000000000000 R10: ffffc9000d316500 R11: fffff52001a62ca2 R12: ffffc9000d316500 R13: dffffc0000000000 R14: 000000000000001f R15: ffff888049100180 FS: 00007fdbc7dae6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ecc38b8098 CR3: 0000000042714000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400