------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey.c:272! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5331 Comm: read_btree_node Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #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:__bch2_bkey_unpack_key+0xdeb/0xe10 fs/bcachefs/bkey.c:272 Code: e5 da 00 e9 f3 f9 ff ff e8 92 e2 a5 fd 48 c7 c7 c0 db 75 8e 48 89 ee 4c 89 f2 e8 30 e5 da 00 e9 2e fb ff ff e8 76 e2 a5 fd 90 <0f> 0b e8 6e e2 a5 fd 90 0f 0b e8 66 e2 a5 fd 90 0f 0b e8 5e e2 a5 RSP: 0018:ffffc9000d2b6a18 EFLAGS: 00010293 RAX: ffffffff841a187a RBX: 0000000000000003 RCX: ffff88801e782440 RDX: 0000000000000000 RSI: 0000000000000059 RDI: 0000000000000006 RBP: 0000000000000059 R08: ffffc9000d2b6caf R09: 0000000000000000 R10: ffffc9000d2b6c90 R11: fffff52001a56d96 R12: ffffc9000d2b6c90 R13: ffff888053c81028 R14: ffff888011a180c1 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88808d266000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005610b1ba3450 CR3: 000000003427b000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bch2_bkey_compat+0x4db/0xbd0 fs/bcachefs/bkey_methods.c:480 bch2_bkey_compat fs/bcachefs/bkey_methods.h:134 [inline] validate_bset_keys+0x6c1/0x1390 fs/bcachefs/btree_io.c:983 bch2_btree_node_read_done+0x18c8/0x4f60 fs/bcachefs/btree_io.c:1211 btree_node_read_work+0x426/0xe30 fs/bcachefs/btree_io.c:1400 bch2_btree_node_read+0x887/0x29f0 fs/bcachefs/btree_io.c:-1 bch2_btree_node_fill+0xd12/0x14f0 fs/bcachefs/btree_cache.c:994 bch2_btree_node_get_noiter+0xa2c/0x1000 fs/bcachefs/btree_cache.c:1261 found_btree_node_is_readable fs/bcachefs/btree_node_scan.c:85 [inline] try_read_btree_node fs/bcachefs/btree_node_scan.c:220 [inline] read_btree_nodes_worker+0x1319/0x1e20 fs/bcachefs/btree_node_scan.c:269 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_bkey_unpack_key+0xdeb/0xe10 fs/bcachefs/bkey.c:272 Code: e5 da 00 e9 f3 f9 ff ff e8 92 e2 a5 fd 48 c7 c7 c0 db 75 8e 48 89 ee 4c 89 f2 e8 30 e5 da 00 e9 2e fb ff ff e8 76 e2 a5 fd 90 <0f> 0b e8 6e e2 a5 fd 90 0f 0b e8 66 e2 a5 fd 90 0f 0b e8 5e e2 a5 RSP: 0018:ffffc9000d2b6a18 EFLAGS: 00010293 RAX: ffffffff841a187a RBX: 0000000000000003 RCX: ffff88801e782440 RDX: 0000000000000000 RSI: 0000000000000059 RDI: 0000000000000006 RBP: 0000000000000059 R08: ffffc9000d2b6caf R09: 0000000000000000 R10: ffffc9000d2b6c90 R11: fffff52001a56d96 R12: ffffc9000d2b6c90 R13: ffff888053c81028 R14: ffff888011a180c1 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88808d266000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005610b1ba3450 CR3: 0000000011535000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400