------------[ cut here ]------------ kernel BUG at fs/bcachefs/alloc_background.h:166! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 6221 Comm: syz-executor.1 Not tainted 6.9.0-rc6-next-20240503-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:alloc_v4_u64s fs/bcachefs/alloc_background.h:166 [inline] RIP: 0010:bch2_alloc_v4_invalid+0x9af/0x9c0 fs/bcachefs/alloc_background.c:247 Code: 47 cf f6 fd e9 d7 fb ff ff 44 89 e9 80 e1 07 38 c1 0f 8c 23 fc ff ff 4c 89 ef e8 cc ce f6 fd e9 16 fc ff ff e8 62 20 91 fd 90 <0f> 0b e8 5a 20 91 fd 90 0f 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc90005606618 EFLAGS: 00010293 RAX: ffffffff8404f57e RBX: 00000000000000fd RCX: ffff888024d20000 RDX: 0000000000000000 RSI: 00000000000000fd RDI: 00000000000000fa RBP: 000000000000002d R08: ffffffff8404eca5 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8404ebd0 R12: 000000005770f4b6 R13: ffffc90005606aa0 R14: ffff888058de06e8 R15: 1ffff92000ac0d45 FS: 00007f49927ff6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4a082d56c6 CR3: 000000007cd06000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_node_read_done+0x3e7d/0x5ed0 fs/bcachefs/btree_io.c:1234 btree_node_read_work+0x665/0x1300 fs/bcachefs/btree_io.c:1345 bch2_btree_node_read+0x2637/0x2c80 fs/bcachefs/btree_io.c:1730 __bch2_btree_root_read fs/bcachefs/btree_io.c:1769 [inline] bch2_btree_root_read+0x61e/0x970 fs/bcachefs/btree_io.c:1793 read_btree_roots+0x22d/0x7b0 fs/bcachefs/recovery.c:472 bch2_fs_recovery+0x2334/0x36e0 fs/bcachefs/recovery.c:800 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1030 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2105 bch2_mount+0x71d/0x1320 fs/bcachefs/fs.c:1917 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2a0 fs/super.c:1780 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4991a7f3aa 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:00007f49927feef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f49927fef80 RCX: 00007f4991a7f3aa RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007f49927fef40 RBP: 0000000020011a00 R08: 00007f49927fef80 R09: 0000000000200014 R10: 0000000000200014 R11: 0000000000000202 R12: 0000000020011a40 R13: 00007f49927fef40 R14: 00000000000119f4 R15: 00000000200001c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:alloc_v4_u64s fs/bcachefs/alloc_background.h:166 [inline] RIP: 0010:bch2_alloc_v4_invalid+0x9af/0x9c0 fs/bcachefs/alloc_background.c:247 Code: 47 cf f6 fd e9 d7 fb ff ff 44 89 e9 80 e1 07 38 c1 0f 8c 23 fc ff ff 4c 89 ef e8 cc ce f6 fd e9 16 fc ff ff e8 62 20 91 fd 90 <0f> 0b e8 5a 20 91 fd 90 0f 0b 0f 1f 80 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc90005606618 EFLAGS: 00010293 RAX: ffffffff8404f57e RBX: 00000000000000fd RCX: ffff888024d20000 RDX: 0000000000000000 RSI: 00000000000000fd RDI: 00000000000000fa RBP: 000000000000002d R08: ffffffff8404eca5 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8404ebd0 R12: 000000005770f4b6 R13: ffffc90005606aa0 R14: ffff888058de06e8 R15: 1ffff92000ac0d45 FS: 00007f49927ff6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32421000 CR3: 000000007cd06000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400