bcachefs (loop4): mounting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=xxhash,nojournal_transaction_names bcachefs (loop4): recovering from clean shutdown, journal seq 10 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/replicas.c:205! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 8617 Comm: syz-executor.4 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : cpu_replicas_add_entry+0x4ec/0x508 fs/bcachefs/replicas.c:205 lr : cpu_replicas_add_entry+0x4ec/0x508 fs/bcachefs/replicas.c:205 sp : ffff8000a0716bf0 x29: ffff8000a0716c20 x28: 0000000000000001 x27: 0000000000000001 x26: 0000000000000003 x25: ffff0000f9a0080e x24: 0000000000000000 x23: 1fffe0001ac17c14 x22: 1fffe0001f340101 x21: ffff0000d60be0a1 x20: dfff800000000000 x19: ffff0000d60be0a0 x18: 1fffe000367b8996 x17: ffff80008eead000 x16: ffff80008ae33e58 x15: 0000000000000001 x14: 0000000000000002 x13: 0000000000000008 x12: ffff0000d25edac0 x11: 0000000000040000 x10: 000000000003ffff x9 : ffff8000a0f9a000 x8 : 0000000000040000 x7 : ffff80008294b0d4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff800082952554 x2 : ffff0000d60be0a0 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: cpu_replicas_add_entry+0x4ec/0x508 fs/bcachefs/replicas.c:205 bch2_replicas_set_usage+0x14c/0x200 fs/bcachefs/replicas.c:630 journal_replay_entry_early+0x4c8/0xc48 fs/bcachefs/recovery.c:357 journal_replay_early+0xb0/0x468 fs/bcachefs/recovery.c:411 bch2_fs_recovery+0x2618/0x4854 fs/bcachefs/recovery.c:747 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1043 bch2_fs_open+0x8b4/0xb64 fs/bcachefs/super.c:2102 bch2_mount+0x558/0xe10 fs/bcachefs/fs.c:1903 legacy_get_tree+0xd4/0x16c fs/fs_context.c:662 vfs_get_tree+0x90/0x288 fs/super.c:1779 do_new_mount+0x278/0x900 fs/namespace.c:3352 path_mount+0x590/0xe04 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3875 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: d4210000 976fc534 d4210000 976fc532 (d4210000) ---[ end trace 0000000000000000 ]---