------------[ cut here ]------------ WARNING: CPU: 1 PID: 10532 at fs/bcachefs/buckets.c:395 __replicas_deltas_realloc+0x1a1/0x320 fs/bcachefs/buckets.c:395 Modules linked in: CPU: 1 PID: 10532 Comm: syz.4.525 Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:__replicas_deltas_realloc+0x1a1/0x320 fs/bcachefs/buckets.c:395 Code: e8 84 12 de fd 49 89 1e eb 05 e8 ca 23 7b fd 31 c0 48 83 c4 20 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 b0 23 7b fd 90 <0f> 0b 90 e9 fa fe ff ff e8 a2 23 7b fd eb 31 81 fd 00 00 01 00 76 RSP: 0018:ffffc900036fed80 EFLAGS: 00010293 RAX: ffffffff841b3750 RBX: ffff88804eac0000 RCX: ffff888025d90000 RDX: 0000000000000000 RSI: 000000000001ffd0 RDI: 0000000000010000 RBP: 000000000001ffd0 R08: ffffffff841b363e R09: 0000000000000000 R10: ffff88804eac0000 R11: ffffed1009d5a000 R12: 0000000000000000 R13: dffffc0000000000 R14: 1ffff11009d58000 R15: 000000000000ffd0 FS: 00007f6827dbb6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f68271000a0 CR3: 000000004ead8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_replicas_deltas_realloc fs/bcachefs/buckets.c:427 [inline] __trigger_reservation+0x122/0x460 fs/bcachefs/buckets.c:1280 bch2_trigger_reservation+0x189/0x210 fs/bcachefs/buckets.c:1312 bch2_key_trigger fs/bcachefs/bkey_methods.h:88 [inline] run_one_trans_trigger fs/bcachefs/btree_trans_commit.c:509 [inline] run_btree_triggers+0xbff/0x11d0 fs/bcachefs/btree_trans_commit.c:544 bch2_trans_commit_run_triggers fs/bcachefs/btree_trans_commit.c:576 [inline] __bch2_trans_commit+0x3a6/0x88e0 fs/bcachefs/btree_trans_commit.c:1022 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:326 bch2_extent_fallocate+0xbd9/0x2030 fs/bcachefs/io_misc.c:111 __bchfs_fallocate fs/bcachefs/fs-io.c:673 [inline] bchfs_fallocate fs/bcachefs/fs-io.c:736 [inline] bch2_fallocate_dispatch+0x1f9a/0x3810 fs/bcachefs/fs-io.c:783 vfs_fallocate+0x553/0x6c0 fs/open.c:334 ksys_fallocate fs/open.c:357 [inline] __do_sys_fallocate fs/open.c:365 [inline] __se_sys_fallocate fs/open.c:363 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:363 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6826f75b59 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6827dbb048 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f6827103f60 RCX: 00007f6826f75b59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f6827dbb0a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001000f4 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f6827103f60 R15: 00007ffc0b1c6a68