------------[ cut here ]------------ WARNING: CPU: 1 PID: 6715 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x15dc/0x1850 fs/bcachefs/fs-io.c:361 Modules linked in: CPU: 1 UID: 0 PID: 6715 Comm: syz.1.19 Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 80400005 (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 : ffff8000a2ca7840 x29: ffff8000a2ca7a00 x28: dfff800000000000 x27: ffff8000a2ca78c0 x26: 0000000000000001 x25: 1fffe000202600d4 x24: 1fffe0001ed5d0fd x23: ffff700014594f18 x22: 000000000000017e x21: 0000000000000000 x20: ffff0000f6ae87e8 x19: 0000000000000000 x18: 00000000ffffffff x17: ffff800093320000 x16: ffff80008051f504 x15: 0000000000000001 x14: 1fffffbff865fce0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000000205b x9 : ffff80009cd1a000 x8 : 000000000000205c x7 : ffff80008022c5c0 x6 : ffff80008022c7bc x5 : ffff0000f7fde260 x4 : 0000000000000001 x3 : ffff8000a2ca79b0 x2 : 0000000000001004 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+0x5cc/0x73c fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __arm64_sys_fallocate+0xbc/0x10c fs/open.c:368 __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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 151696 hardirqs last enabled at (151695): [] __call_rcu_common kernel/rcu/tree.c:3115 [inline] hardirqs last enabled at (151695): [] call_rcu+0x650/0x96c kernel/rcu/tree.c:3210 hardirqs last disabled at (151696): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (151644): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (151642): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---