block 0 key 36: u64s 10 type alloc_v4 0:4:0 len 0 ver 0: gen 0 oldest_gen 0 data_type sb journal_seq 1 need_discard 1 need_inc_gen 1 dirty_sectors 256 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 1 fragmentation 0 bp_start 7 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey.c:273! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 3330 Comm: syz.2.16 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__bch2_bkey_unpack_key+0x24a/0x260 fs/bcachefs/bkey.c:273 Code: 48 d3 ee 44 29 d3 4d 8b 41 f8 49 d1 e8 40 28 df 89 f9 49 d3 e8 49 09 f0 49 01 d0 4c 89 40 04 5b 5d c3 cc cc cc cc 90 0f 0b 90 <0f> 0b 90 0f 0b 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 RSP: 0018:ffffc90002c672c8 EFLAGS: 00010293 RAX: ffffc90002c67340 RBX: ffff8881087a9010 RCX: c02297a1563eef00 RDX: ffff8881087a9188 RSI: ffff8881023f58c0 RDI: 0000000000000000 RBP: ffff888108700000 R08: 0000000000000005 R09: 0000000000000002 R10: 0000000000000003 R11: 00000000ffffdfff R12: ffff8881087a9188 R13: 0000000000000024 R14: ffff8881087a9028 R15: ffff8881023f58c0 FS: 00007f2bcb3ff6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f90c8776000 CR3: 0000000103742000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bkey_unpack_key_format_checked fs/bcachefs/bkey.h:458 [inline] bkey_unpack_key_format_checked fs/bcachefs/bkey.h:468 [inline] bkey_unpack_key fs/bcachefs/bkey.h:489 [inline] bch2_dump_bset+0x1f7/0x320 fs/bcachefs/bset.c:84 validate_bset_keys+0x5b4/0x830 fs/bcachefs/btree_io.c:879 bch2_btree_node_read_done+0x8c5/0x13d0 fs/bcachefs/btree_io.c:1014 btree_node_read_work+0x231/0x570 fs/bcachefs/btree_io.c:1194 bch2_btree_node_read+0xa07/0xd70 __bch2_btree_root_read fs/bcachefs/btree_io.c:1607 [inline] bch2_btree_root_read+0x1fd/0x310 fs/bcachefs/btree_io.c:1631 read_btree_roots+0xe5/0x1e0 fs/bcachefs/recovery.c:375 bch2_fs_recovery+0xe59/0x1310 fs/bcachefs/recovery.c:808 bch2_fs_start+0x2d8/0x3e0 fs/bcachefs/super.c:961 bch2_fs_open+0xe38/0x1470 fs/bcachefs/super.c:1948 bch2_mount+0x273/0x5b0 fs/bcachefs/fs.c:1829 legacy_get_tree+0x2d/0x60 fs/fs_context.c:638 vfs_get_tree+0x2a/0xf0 fs/super.c:1750 do_new_mount+0x153/0x3a0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3861 do_syscall_64+0x46/0xc0 entry_SYSCALL_64_after_hwframe+0x6f/0xd9 RIP: 0033:0x7f2bcb5874ca 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:00007f2bcb3fee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2bcb3feef0 RCX: 00007f2bcb5874ca RDX: 0000000020000040 RSI: 0000000020000080 RDI: 00007f2bcb3feeb0 RBP: 0000000020000040 R08: 00007f2bcb3feef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020000080 R13: 00007f2bcb3feeb0 R14: 000000000000599e R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_bkey_unpack_key+0x24a/0x260 fs/bcachefs/bkey.c:273 Code: 48 d3 ee 44 29 d3 4d 8b 41 f8 49 d1 e8 40 28 df 89 f9 49 d3 e8 49 09 f0 49 01 d0 4c 89 40 04 5b 5d c3 cc cc cc cc 90 0f 0b 90 <0f> 0b 90 0f 0b 90 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 RSP: 0018:ffffc90002c672c8 EFLAGS: 00010293 RAX: ffffc90002c67340 RBX: ffff8881087a9010 RCX: c02297a1563eef00 RDX: ffff8881087a9188 RSI: ffff8881023f58c0 RDI: 0000000000000000 RBP: ffff888108700000 R08: 0000000000000005 R09: 0000000000000002 R10: 0000000000000003 R11: 00000000ffffdfff R12: ffff8881087a9188 R13: 0000000000000024 R14: ffff8881087a9028 R15: ffff8881023f58c0 FS: 00007f2bcb3ff6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f90c8776000 CR3: 0000000103742000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400