bcachefs (loop0): journal_replay... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): going read-write bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 1 PID: 2356 at fs/bcachefs/fs-io.c:324 __bch2_truncate_folio+0x814/0x9f0 fs/bcachefs/fs-io.c:324 Modules linked in: CPU: 1 PID: 2356 Comm: syz-executor.0 Not tainted 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:__bch2_truncate_folio+0x814/0x9f0 fs/bcachefs/fs-io.c:324 Code: 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 48 c7 c7 41 c6 5e 83 e8 ea 2b fa ff 89 c6 89 05 a6 a3 ae 03 e9 d8 f8 ff ff 90 <0f> 0b 90 48 8b 7c 24 30 48 8b 47 20 e9 1f fe ff ff e8 26 48 0b 01 RSP: 0018:ffffc90001de7c40 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000 RDX: 0000000000000008 RSI: 0000000000000cc0 RDI: ffffea000428eb80 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000001000 R13: ffff8881795286d0 R14: ffff888102b59000 R15: ffff88810eb80000 FS: 00007fe657cc36c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe656fa8000 CR3: 000000010430e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:363 [inline] bchfs_fpunch fs/bcachefs/fs-io.c:517 [inline] bch2_fallocate_dispatch+0x1f0/0xfd0 fs/bcachefs/fs-io.c:782 vfs_fallocate+0x181/0x1c0 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+0x3f/0x70 fs/open.c:359 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe2/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe656e7cee9 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:00007fe657cc30c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fe656fabf80 RCX: 00007fe656e7cee9 RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007fe656ec949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fe656fabf80 R15: 00007ffdf03488e8