bcachefs (loop1): insufficient writeable journal devices available: have 0, need 1
rw journal devs:
bcachefs (loop1): done starting filesystem
------------[ cut here ]------------
WARNING: fs/bcachefs/fs-io.c:361 at __bch2_truncate_folio+0x179c/0x1a30 fs/bcachefs/fs-io.c:361, CPU#1: syz.1.18/6001
Modules linked in:
CPU: 1 UID: 0 PID: 6001 Comm: syz.1.18 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 fs/bcachefs/fs-io.c:361
Code: 5f 5d e9 d7 cd 42 07 cc e8 01 05 7e fd 48 c7 c7 b7 d3 c3 8d e8 95 49 e9 ff 89 05 9f b3 a8 15 e9 49 ea ff ff e8 e5 04 7e fd 90 <0f> 0b 90 e9 26 f9 ff ff e8 a7 e9 3f 07 e8 d2 04 7e fd be 00 10 00
RSP: 0018:ffffc900019af560 EFLAGS: 00010293
RAX: ffffffff8441a72b RBX: 0000000000000000 RCX: ffff888023168000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900019af730 R08: ffffea0004734c87 R09: 1ffffd40008e6990
R10: dffffc0000000000 R11: fffff940008e6991 R12: 1ffff11023b9d0fb
R13: dffffc0000000000 R14: ffff88811dce87d8 R15: 0000000000000000
FS:  00007f5357c066c0(0000) GS:ffff8881a39f1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005608b7dda00e CR3: 000000002a00a000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline]
 bchfs_fpunch+0x10f/0x520 fs/bcachefs/fs-io.c:564
 bch2_fallocate_dispatch+0x2bc/0x410 fs/bcachefs/fs-io.c:838
 vfs_fallocate+0x669/0x7e0 fs/open.c:342
 ioctl_preallocate fs/ioctl.c:290 [inline]
 file_ioctl+0x611/0x780 fs/ioctl.c:-1
 do_vfs_ioctl+0xb33/0x1430 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/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5356d8ebe9
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:00007f5357c06038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5356fc5fa0 RCX: 00007f5356d8ebe9
RDX: 0000200000000100 RSI: 0000000040305829 RDI: 0000000000000004
RBP: 00007f5356e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5356fc6038 R14: 00007f5356fc5fa0 R15: 00007ffd062fead8
 </TASK>
