------------[ cut here ]------------
WARNING: CPU: 1 PID: 10810 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x179c/0x1a30
Modules linked in:
CPU: 1 UID: 0 PID: 10810 Comm: syz.1.566 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__bch2_truncate_folio+0x179c/0x1a30
Code: 5f 5d c3 cc cc cc cc cc e8 b1 aa 7f fd 48 c7 c7 bf a3 a3 8d e8 85 61 e9 ff 89 05 ff 39 86 15 e9 49 ea ff ff e8 95 aa 7f fd 90 <0f> 0b 90 e9 26 f9 ff ff e8 97 22 3a 07 e8 82 aa 7f fd be 00 10 00
RSP: 0018:ffffc9000376f9e0 EFLAGS: 00010293
RAX: ffffffff8440044b RBX: 0000000000000000 RCX: ffff888022bfb980
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000376fbb0 R08: ffffea0004924cc7 R09: 1ffffd4000924998
R10: dffffc0000000000 R11: fffff94000924999 R12: 1ffff110054d67a2
R13: dffffc0000000000 R14: ffff88802a6b3d10 R15: 0000000000000000
FS:  00007f03bd09d6c0(0000) GS:ffff8881a3c15000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f03b31bd000 CR3: 0000000116694000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bchfs_fallocate+0x233/0x680
 bch2_fallocate_dispatch+0x28a/0x410
 vfs_fallocate+0x669/0x7e0
 __x64_sys_fallocate+0xc0/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f03bc18ebe9
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:00007f03bd09d038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f03bc3c6090 RCX: 00007f03bc18ebe9
RDX: 0000000000000006 RSI: 0000000000000010 RDI: 0000000000000007
RBP: 00007f03bc211e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f03bc3c6128 R14: 00007f03bc3c6090 R15: 00007fff1ff20878
 </TASK>
