bcachefs (loop3): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7031 at fs/bcachefs/buckets.c:395 __replicas_deltas_realloc+0x16c/0x2a4 fs/bcachefs/buckets.c:395 Modules linked in: CPU: 1 PID: 7031 Comm: syz.3.105 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __replicas_deltas_realloc+0x16c/0x2a4 fs/bcachefs/buckets.c:395 lr : __replicas_deltas_realloc+0x16c/0x2a4 fs/bcachefs/buckets.c:395 sp : ffff8000a0185920 x29: ffff8000a0185920 x28: 000000000001ffb8 x27: 1fffe0001ad45025 x26: dfff800000000000 x25: 1fffe0001e21a000 x24: 000000000001ffe8 x23: 000000000000000c x22: ffff0000f10d0000 x21: ffff0000d6a28000 x20: 0000000000002800 x19: ffff0000d6a28128 x18: ffff8000a0186480 x17: 0000000000000000 x16: ffff800082f95f34 x15: 0000000000000001 x14: 1fffe0001ed6d408 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001ed6d409 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c5289e40 x7 : 4000000500000000 x6 : 00000080ffffffff x5 : ffff8000a0186168 x4 : ffff8000a01861f4 x3 : ffff8000827d2c70 x2 : 0000000000002800 x1 : 000000000001ffe8 x0 : 0000000000010000 Call trace: __replicas_deltas_realloc+0x16c/0x2a4 fs/bcachefs/buckets.c:395 bch2_replicas_deltas_realloc fs/bcachefs/buckets.c:427 [inline] bch2_update_replicas_list+0x70/0x268 fs/bcachefs/buckets.c:444 __trigger_extent+0x3b64/0x40c4 fs/bcachefs/buckets.c:1211 bch2_trigger_extent+0x534/0x734 fs/bcachefs/buckets.c:1261 bch2_key_trigger fs/bcachefs/bkey_methods.h:88 [inline] bch2_key_trigger_old fs/bcachefs/bkey_methods.h:102 [inline] run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:514 [inline] run_btree_triggers+0x7cc/0xc18 fs/bcachefs/btree_trans_commit.c:544 bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:576 [inline] __bch2_trans_commit+0x30c/0x592c fs/bcachefs/btree_trans_commit.c:1022 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_extent_update+0x3d0/0x9b4 fs/bcachefs/io_write.c:326 bch2_fpunch_at+0x640/0xd98 fs/bcachefs/io_misc.c:184 __bch2_resume_logged_op_truncate+0x404/0x620 fs/bcachefs/io_misc.c:260 bch2_truncate+0x198/0x274 fs/bcachefs/io_misc.c:291 bchfs_truncate+0x668/0xa74 fs/bcachefs/fs-io.c:476 bch2_setattr+0x198/0x230 fs/bcachefs/fs.c:926 notify_change+0x9d4/0xc84 fs/attr.c:497 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3355 [inline] do_open fs/namei.c:3705 [inline] path_openat+0x2428/0x2ae8 fs/namei.c:3860 do_filp_open+0x1bc/0x3cc fs/namei.c:3887 do_sys_openat2+0x124/0x1b8 fs/open.c:1413 do_sys_open fs/open.c:1428 [inline] __do_sys_openat fs/open.c:1444 [inline] __se_sys_openat fs/open.c:1439 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1439 __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:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 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 irq event stamp: 79414 hardirqs last enabled at (79413): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (79413): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (79414): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (79118): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (79116): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---