bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=30720 bi_fields_set=0 bi_dir=2 bi_dir_offset=6600455862828409806 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0, fixing inode points to missing dirent inum: 536870914:4294967295 mode=120777 flags=(15300000) journal_seq=4 hash_seed=a4bdae8ef0db2076 hash_type=siphash bi_size=39 bi_sectors=8 bi_version=0 bi_atime=2720995041 bi_ctime=2740995251 bi_mtime=2720995041 bi_otime=2720995041 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=30720 bi_fields_set=0 bi_dir=2 bi_dir_offset=6600455862828409806 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0, fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5322 at fs/bcachefs/fs-io.c:315 __bch2_truncate_folio+0x2059/0x2450 fs/bcachefs/fs-io.c:315 Modules linked in: CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-00971-g158f238aa69d #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__bch2_truncate_folio+0x2059/0x2450 fs/bcachefs/fs-io.c:315 Code: 41 5f 5d c3 cc cc cc cc e8 04 05 61 fd 48 c7 c7 a6 7c 15 8e e8 f8 70 e8 ff 89 05 52 b1 24 16 e9 a0 e2 ff ff e8 e8 04 61 fd 90 <0f> 0b 90 e9 eb f9 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f6 RSP: 0018:ffffc9000d3cf3c0 EFLAGS: 00010287 RAX: ffffffff8433ecf8 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000ddc2000 RSI: 0000000000001cf4 RDI: 0000000000001cf5 RBP: ffffc9000d3cf6d0 R08: ffffffff8433e6de R09: 1ffffd400021c7f8 R10: dffffc0000000000 R11: fffff9400021c7f9 R12: 1ffff1100a3140fa R13: ffff8880500806ba R14: 0000000000000000 R15: ffff8880518a07d0 FS: 00007f6fc99146c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6fc8d254d0 CR3: 0000000043586000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:354 [inline] bchfs_fpunch+0x115/0x780 fs/bcachefs/fs-io.c:508 bch2_fallocate_dispatch+0x3e4/0x540 fs/bcachefs/fs-io.c:782 vfs_fallocate+0x569/0x6e0 fs/open.c:327 do_vfs_ioctl+0x258c/0x2e40 fs/ioctl.c:885 __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0x80/0x170 fs/ioctl.c:892 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:0x7f6fc8b7e759 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:00007f6fc9914038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6fc8d35f80 RCX: 00007f6fc8b7e759 RDX: 0000000020000000 RSI: 0000000040305829 RDI: 0000000000000004 RBP: 00007f6fc8bf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6fc8d35f80 R15: 00007ffe85a2df28