bcachefs (loop2): snapshots_read... done bcachefs (loop2): journal_replay... done bcachefs (loop2): resume_logged_ops... done bcachefs (loop2): going read-write bcachefs (loop2): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 1 PID: 10816 at fs/bcachefs/fs-io.c:327 __bch2_truncate_folio+0x1a33/0x1d80 fs/bcachefs/fs-io.c:327 Modules linked in: CPU: 1 PID: 10816 Comm: syz-executor.2 Not tainted 6.10.0-rc1-syzkaller-00021-ge0cce98fe279 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__bch2_truncate_folio+0x1a33/0x1d80 fs/bcachefs/fs-io.c:327 Code: 41 5f 5d c3 cc cc cc cc e8 1a 86 6f fd 48 c7 c7 db 23 c0 8d e8 1e 2f ea ff 89 05 58 1f 6a 10 e9 ed ea ff ff e8 fe 85 6f fd 90 <0f> 0b 90 e9 0a fa ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f0 RSP: 0018:ffffc900041176c0 EFLAGS: 00010287 RAX: ffffffff84268f92 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90009959000 RSI: 0000000000008d02 RDI: 0000000000008d03 RBP: ffffc90004117950 R08: ffffffff84268997 R09: 1ffffd400033d710 R10: dffffc0000000000 R11: fffff9400033d711 R12: 1ffff1100b00cd00 R13: ffff88807128075a R14: 0000000000000000 R15: ffff888058066800 FS: 00007f02068886c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdc511a1000 CR3: 000000007134e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:366 [inline] bchfs_fpunch fs/bcachefs/fs-io.c:520 [inline] bch2_fallocate_dispatch+0x6fb/0x3810 fs/bcachefs/fs-io.c:785 vfs_fallocate+0x564/0x6c0 fs/open.c:330 ksys_fallocate fs/open.c:353 [inline] __do_sys_fallocate fs/open.c:361 [inline] __se_sys_fallocate fs/open.c:359 [inline] __x64_sys_fallocate+0xbd/0x110 fs/open.c:359 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:0x7f0205a7cee9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f02068880c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f0205bb3fa0 RCX: 00007f0205a7cee9 RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007f0205ac947f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0205bb3fa0 R15: 00007fff7b5375b8