------------[ cut here ]------------ WARNING: CPU: 0 PID: 9167 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x17a2/0x1a40 fs/bcachefs/fs-io.c:361 Modules linked in: CPU: 0 UID: 0 PID: 9167 Comm: syz.4.373 Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__bch2_truncate_folio+0x17a2/0x1a40 fs/bcachefs/fs-io.c:361 Code: 5f 5d e9 51 35 c4 06 cc e8 ab d0 88 fd 48 c7 c7 93 67 0b 8d e8 7f 5f e9 ff 89 05 99 a0 eb 14 e9 43 ea ff ff e8 8f d0 88 fd 90 <0f> 0b 90 e9 23 f9 ff ff e8 f1 85 c0 06 e8 7c d0 88 fd be 00 10 00 RSP: 0018:ffffc9000504f580 EFLAGS: 00010287 RAX: ffffffff84358ab1 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000e601000 RSI: 0000000000000b16 RDI: 0000000000000b17 RBP: ffffc9000504f750 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff9400034a379 R12: 1ffff1100bf67952 R13: dffffc0000000000 R14: ffff88805fb3ca90 R15: 0000000000000000 FS: 00007fe3182366c0(0000) GS:ffff8881268c5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000007000 CR3: 0000000021b3a000 CR4: 00000000003526f0 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline] bchfs_fpunch+0x10f/0x520 fs/bcachefs/fs-io.c:564 bch2_fallocate_dispatch+0x2bf/0x410 fs/bcachefs/fs-io.c:838 vfs_fallocate+0x672/0x7f0 fs/open.c:342 ioctl_preallocate fs/ioctl.c:290 [inline] file_ioctl+0x61d/0x780 fs/ioctl.c:-1 do_vfs_ioctl+0xb36/0x1440 fs/ioctl.c:577 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe319fcebe9 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:00007fe318236038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe31a1f5fa0 RCX: 00007fe319fcebe9 RDX: 00002000000000c0 RSI: 0000000040305829 RDI: 0000000000000008 RBP: 00007fe31a051e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe31a1f6038 R14: 00007fe31a1f5fa0 R15: 00007ffe829e6e08