need_discard 1 need_inc_gen 1 dirty_sectors 8 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 512 fragmentation 67108864 bp_start 7 , fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bkey.c:273! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 2368 Comm: syz-executor.0 Not tainted 6.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:ffffc90002907410 EFLAGS: 00010293 RAX: ffffc90002907428 RBX: ffff88810af021b8 RCX: ffff88810af021b8 RDX: ffff88810af021b8 RSI: ffff888104662cc0 RDI: 0000000000000000 RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88810af02010 R13: ffff88810a300000 R14: ffff88810a300000 R15: ffff888104662c00 FS: 00007fda6642b6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f21c9e4e000 CR3: 0000000104650000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bkey_unpack_key_format_checked fs/bcachefs/bkey.h:454 [inline] __bkey_unpack_key fs/bcachefs/bkey.h:473 [inline] __bkey_disassemble fs/bcachefs/bkey.h:524 [inline] __bkey_valid+0xe5/0x1a0 fs/bcachefs/btree_io.c:845 validate_bset_keys+0x62a/0x820 fs/bcachefs/btree_io.c:941 bch2_btree_node_read_done+0xa08/0x1550 fs/bcachefs/btree_io.c:1113 btree_node_read_work+0x238/0x4f0 fs/bcachefs/btree_io.c:1306 bch2_btree_node_read+0xade/0xd20 __bch2_btree_root_read fs/bcachefs/btree_io.c:1725 [inline] bch2_btree_root_read+0x1da/0x300 fs/bcachefs/btree_io.c:1749 read_btree_roots+0xd4/0x1b0 fs/bcachefs/recovery.c:408 bch2_fs_recovery+0x107c/0x16c0 fs/bcachefs/recovery.c:970 bch2_fs_start+0x120/0x230 fs/bcachefs/super.c:1012 bch2_fs_open+0x436/0x560 fs/bcachefs/super.c:2062 bch2_mount+0x26c/0x5b0 fs/bcachefs/fs.c:1831 legacy_get_tree+0x2d/0x60 fs/fs_context.c:662 vfs_get_tree+0x2a/0xf0 fs/super.c:1771 do_new_mount+0x153/0x3a0 fs/namespace.c:3337 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3863 do_syscall_64+0x4d/0x120 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fda6567f46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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:00007fda6642aef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fda6642af80 RCX: 00007fda6567f46a RDX: 0000000020005d80 RSI: 0000000020005dc0 RDI: 00007fda6642af40 RBP: 0000000020005d80 R08: 00007fda6642af80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020005dc0 R13: 00007fda6642af40 R14: 0000000000005d79 R15: 0000000020005e00 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:ffffc90002907410 EFLAGS: 00010293 RAX: ffffc90002907428 RBX: ffff88810af021b8 RCX: ffff88810af021b8 RDX: ffff88810af021b8 RSI: ffff888104662cc0 RDI: 0000000000000000 RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000003 R11: 0000000000000000 R12: ffff88810af02010 R13: ffff88810a300000 R14: ffff88810a300000 R15: ffff888104662c00 FS: 00007fda6642b6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f21c9e4e000 CR3: 0000000104650000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400