------------[ cut here ]------------ WARNING: CPU: 1 PID: 6584 at fs/bcachefs/fs-io.c:344 __bch2_truncate_folio+0x2299/0x26a0 fs/bcachefs/fs-io.c:344 Modules linked in: CPU: 1 UID: 0 PID: 6584 Comm: syz.5.62 Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:__bch2_truncate_folio+0x2299/0x26a0 fs/bcachefs/fs-io.c:344 Code: 41 5f 5d c3 cc cc cc cc e8 b4 4e 65 fd 48 c7 c7 8d e3 12 8e e8 68 fb e6 ff 89 05 42 de fc 15 e9 3d e0 ff ff e8 98 4e 65 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:ffffc9000514f8a0 EFLAGS: 00010283 RAX: ffffffff845a0f28 RBX: 0000000000002000 RCX: 0000000000080000 RDX: ffffc90011745000 RSI: 0000000000001528 RDI: 0000000000001529 RBP: ffffc9000514fb90 R08: ffffffff845a07ab R09: 1ffffd400019f678 R10: dffffc0000000000 R11: fffff9400019f679 R12: 1ffff1100b3f82e3 R13: ffffc9000514fb20 R14: ffff888059fc1718 R15: 0000000000000a00 FS: 00007fab853596c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0111bd000 CR3: 0000000022af8000 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:0x7fab8458cda9 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:00007fab85359038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fab847a6080 RCX: 00007fab8458cda9 RDX: 0000000000000009 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007fab8460e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002328 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fab847a6080 R15: 00007ffec46c13c8