------------[ cut here ]------------ WARNING: CPU: 0 PID: 10270 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: 10270 Comm: syz.3.410 Tainted: G W syzkaller #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 11 36 c4 06 cc e8 1b c2 88 fd 48 c7 c7 f9 66 0b 8d e8 7f 5f e9 ff 89 05 59 91 eb 14 e9 43 ea ff ff e8 ff c1 88 fd 90 <0f> 0b 90 e9 23 f9 ff ff e8 b1 86 c0 06 e8 ec c1 88 fd be 00 10 00 RSP: 0018:ffffc900046df9e0 EFLAGS: 00010293 RAX: ffffffff843599f1 RBX: 0000000000000000 RCX: ffff88801e7d9dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900046dfbb0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff9400041c251 R12: 1ffff1100b6a2a5a R13: dffffc0000000000 R14: ffff88805b5152d0 R15: 0000000000000000 FS: 00007fb6aa1666c0(0000) GS:ffff8881268c5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0dc851de9c CR3: 00000000581fa000 CR4: 00000000003526f0 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline] bchfs_fallocate+0x233/0x680 fs/bcachefs/fs-io.c:777 bch2_fallocate_dispatch+0x28d/0x410 fs/bcachefs/fs-io.c:836 vfs_fallocate+0x66f/0x7f0 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] __x64_sys_fallocate+0xc0/0x110 fs/open.c:369 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:0x7fb6abefebe9 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:00007fb6aa166038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fb6ac125fa0 RCX: 00007fb6abefebe9 RDX: 0000000000000002 RSI: 0000000000000010 RDI: 0000000000000005 RBP: 00007fb6abf81e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007fff R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb6ac126038 R14: 00007fb6ac125fa0 R15: 00007ffff8c14818