------------[ cut here ]------------ WARNING: CPU: 0 PID: 7778 at fs/bcachefs/fs-io.c:344 __bch2_truncate_folio+0x2299/0x26a0 fs/bcachefs/fs-io.c:344 Modules linked in: CPU: 0 UID: 0 PID: 7778 Comm: syz.3.200 Not tainted 6.14.0-rc3-syzkaller-00213-g8a61cb6e150e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__bch2_truncate_folio+0x2299/0x26a0 fs/bcachefs/fs-io.c:344 Code: 41 5f 5d c3 cc cc cc cc e8 94 7e 5c fd 48 c7 c7 d5 3a 36 8e e8 78 fe e6 ff 89 05 b2 91 16 16 e9 3d e0 ff ff e8 78 7e 5c fd 90 <0f> 0b 90 e9 88 f8 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c ff RSP: 0018:ffffc90003c4f8a0 EFLAGS: 00010287 RAX: ffffffff84653bb8 RBX: 0000000000002000 RCX: 0000000000080000 RDX: ffffc9000ddec000 RSI: 00000000000017a8 RDI: 00000000000017a9 RBP: ffffc90003c4fb90 R08: ffffffff8465343b R09: 1ffffd4000297458 R10: dffffc0000000000 R11: fffff94000297459 R12: 1ffff1100f959c61 R13: ffffc90003c4fb20 R14: ffff88807cace308 R15: 0000000000000009 FS: 00007f8a2e9dd6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f24e9d2df98 CR3: 0000000060506000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:388 [inline] bchfs_fpunch+0x15e/0x780 fs/bcachefs/fs-io.c:537 bch2_fallocate_dispatch+0x3e4/0x540 fs/bcachefs/fs-io.c:811 vfs_fallocate+0x623/0x7a0 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xbc/0x110 fs/open.c:365 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:0x7f8a2db8d169 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:00007f8a2e9dd038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f8a2dda6080 RCX: 00007f8a2db8d169 RDX: 0000000000000009 RSI: 0000000000000003 RDI: 0000000000000007 RBP: 00007f8a2dc0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002328 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8a2dda6080 R15: 00007ffd85ab9918