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: 0 PID: 9192 at fs/bcachefs/fs-io.c:327 __bch2_truncate_folio+0x1064/0x1220 fs/bcachefs/fs-io.c:327 Modules linked in: CPU: 0 PID: 9192 Comm: syz.2.973 Not tainted 6.10.0-rc7-syzkaller-00012-g34afb82a3c67 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:__bch2_truncate_folio+0x1064/0x1220 fs/bcachefs/fs-io.c:327 Code: e8 21 a2 8b fd 90 0f 0b e8 a9 0f e8 fd e9 80 f5 ff ff e8 cf 0f e8 fd e9 da f4 ff ff e8 05 a2 8b fd 90 0f 0b e8 fd a1 8b fd 90 <0f> 0b 90 e9 33 f7 ff ff e8 ef a1 8b fd 90 0f 0b e8 47 0f e8 fd e9 RSP: 0018:ffffc9000487f958 EFLAGS: 00010287 RAX: 00000000000212cc RBX: ffffea0000b13280 RCX: ffffc90015b5c000 RDX: 0000000000040000 RSI: ffffffff84038bb3 RDI: 0000000000000006 RBP: ffffc9000487fa50 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000002 R12: ffff88801d324880 R13: ffff88805caa8ed0 R14: 0000000000000000 R15: ffff88805caa8f20 FS: 00007fcf2d4c46c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc10d681290 CR3: 0000000022adc000 CR4: 0000000000350ef0 Call Trace: bch2_truncate_folios+0x30/0xa0 fs/bcachefs/fs-io.c:366 bchfs_fpunch fs/bcachefs/fs-io.c:520 [inline] bch2_fallocate_dispatch+0xa33/0xf70 fs/bcachefs/fs-io.c:785 vfs_fallocate+0x4bb/0xfb0 fs/open.c:330 ioctl_preallocate+0x1a8/0x220 fs/ioctl.c:291 file_ioctl fs/ioctl.c:334 [inline] do_vfs_ioctl+0x16f7/0x1ad0 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x116/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcf2c775bd9 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:00007fcf2d4c4048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcf2c903f60 RCX: 00007fcf2c775bd9 RDX: 0000000020000000 RSI: 0000000040305829 RDI: 0000000000000004 RBP: 00007fcf2c7e4e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fcf2c903f60 R15: 00007ffe154d2238