------------[ cut here ]------------ WARNING: CPU: 0 PID: 7528 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x15dc/0x1850 fs/bcachefs/fs-io.c:361 Modules linked in: CPU: 0 UID: 0 PID: 7528 Comm: syz.0.123 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : __bch2_truncate_folio+0x15dc/0x1850 fs/bcachefs/fs-io.c:361 lr : __bch2_truncate_folio+0x15dc/0x1850 fs/bcachefs/fs-io.c:361 sp : ffff8000a50b7820 x29: ffff8000a50b79e0 x28: dfff800000000000 x27: ffff8000a50b78a0 x26: 0000000000019481 x25: 1fffe000208d00d4 x24: 1fffe0001efe9988 x23: ffff700014a16f14 x22: 0000000000000006 x21: 0000000000000000 x20: ffff0000f7f4cc40 x19: 0000000000000000 x18: 1fffe00033797688 x17: ffff80010c595000 x16: ffff800080529624 x15: 0000000000000001 x14: 1fffffbff8818978 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000004cff x9 : ffff8000a57fa000 x8 : 0000000000004d00 x7 : ffff8000802314dc x6 : ffff8000802316d8 x5 : ffff0000f847acb0 x4 : 0000000000000001 x3 : ffff8000a50b7990 x2 : 0000000000001006 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: __bch2_truncate_folio+0x15dc/0x1850 fs/bcachefs/fs-io.c:361 (P) bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline] bchfs_fallocate+0x1c4/0x538 fs/bcachefs/fs-io.c:777 bch2_fallocate_dispatch+0x2a0/0x434 fs/bcachefs/fs-io.c:836 vfs_fallocate+0x52c/0x668 fs/open.c:342 ksys_fallocate fs/open.c:366 [inline] __do_sys_fallocate fs/open.c:371 [inline] __se_sys_fallocate fs/open.c:369 [inline] __arm64_sys_fallocate+0xbc/0x10c fs/open.c:369 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 125296 hardirqs last enabled at (125295): [] __call_rcu_common kernel/rcu/tree.c:3148 [inline] hardirqs last enabled at (125295): [] call_rcu+0x65c/0x978 kernel/rcu/tree.c:3243 hardirqs last disabled at (125296): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (125182): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (125180): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---