------------[ cut here ]------------ WARNING: CPU: 0 PID: 8686 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: 8686 Comm: syz.0.252 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #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 : ffff80009c247820 x29: ffff80009c2479e0 x28: dfff800000000000 x27: ffff80009c2478a0 x26: 0000000000000001 x25: 1fffe0001e2d00d4 x24: 1fffe0001eaf92e3 x23: ffff700013848f14 x22: 0000000000000003 x21: 0000000000000000 x20: ffff0000f57c9718 x19: 0000000000000000 x18: 00000000ffffffff x17: ffff800093507000 x16: ffff8000805293e8 x15: 0000000000000001 x14: 1fffffbff8739a30 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000002f0c x9 : ffff8000a567b000 x8 : 0000000000002f0d x7 : ffff8000802310a8 x6 : ffff8000802312a4 x5 : ffff0000c5e36490 x4 : 0000000000000001 x3 : ffff80009c247990 x2 : 0000000020000000 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: 63104 hardirqs last enabled at (63103): [] __call_rcu_common kernel/rcu/tree.c:3148 [inline] hardirqs last enabled at (63103): [] call_rcu+0x65c/0x978 kernel/rcu/tree.c:3243 hardirqs last disabled at (63104): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (63016): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (63014): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---