bcachefs (loop3): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names
bcachefs (loop3): recovering from clean shutdown, journal seq 10
------------[ cut here ]------------
kernel BUG at fs/bcachefs/replicas.c:205!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 PID: 16203 Comm: syz-executor.3 Not tainted 6.9.0-syzkaller-09699-geb6a9339efeb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:cpu_replicas_add_entry+0x6c8/0x6f0 fs/bcachefs/replicas.c:205
Code: 24 18 e8 6b 35 c0 fd e9 57 fd ff ff e8 31 a8 5d fd 90 0f 0b e8 29 a8 5d fd 90 0f 0b e8 21 a8 5d fd 90 0f 0b e8 19 a8 5d fd 90 <0f> 0b e8 11 a8 5d fd 90 0f 0b e8 09 a8 5d fd 90 0f 0b e8 01 a8 5d
RSP: 0018:ffffc9000a67f038 EFLAGS: 00010246
RAX: ffffffff84388767 RBX: dffffc0000000000 RCX: 0000000000040000
RDX: ffffc9000a121000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000001 R08: ffffffff843882d8 R09: ffffffff8437494d
R10: 0000000000000007 R11: ffff88802b140000 R12: 1ffff11008d60102
R13: ffff888063a1008b R14: 0000000000000000 R15: ffff888063a10088
FS:  00007f2d8256a6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561de72bd3b8 CR3: 000000006860c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_replicas_set_usage+0x3cf/0x710 fs/bcachefs/replicas.c:630
 journal_replay_early fs/bcachefs/recovery.c:426 [inline]
 bch2_fs_recovery+0x16ea/0x3700 fs/bcachefs/recovery.c:762
 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1031
 bch2_fs_open+0xa8d/0xdf0 fs/bcachefs/super.c:2123
 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:1779
 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:0x7f2d8187e5ea
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:00007f2d82569ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2d82569f80 RCX: 00007f2d8187e5ea
RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007f2d82569f40
RBP: 0000000020011a00 R08: 00007f2d82569f80 R09: 0000000001200014
R10: 0000000001200014 R11: 0000000000000202 R12: 0000000020011a40
R13: 00007f2d82569f40 R14: 00000000000119fd R15: 00000000200002c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:cpu_replicas_add_entry+0x6c8/0x6f0 fs/bcachefs/replicas.c:205
Code: 24 18 e8 6b 35 c0 fd e9 57 fd ff ff e8 31 a8 5d fd 90 0f 0b e8 29 a8 5d fd 90 0f 0b e8 21 a8 5d fd 90 0f 0b e8 19 a8 5d fd 90 <0f> 0b e8 11 a8 5d fd 90 0f 0b e8 09 a8 5d fd 90 0f 0b e8 01 a8 5d
RSP: 0018:ffffc9000a67f038 EFLAGS: 00010246
RAX: ffffffff84388767 RBX: dffffc0000000000 RCX: 0000000000040000
RDX: ffffc9000a121000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000000000000001 R08: ffffffff843882d8 R09: ffffffff8437494d
R10: 0000000000000007 R11: ffff88802b140000 R12: 1ffff11008d60102
R13: ffff888063a1008b R14: 0000000000000000 R15: ffff888063a10088
FS:  00007f2d8256a6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31823000 CR3: 000000006860c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400