lru l=0 seq=1 journal_seq=5 cookie=28f61e078e70b95c POS_MIN-SPOS_MAX ptr: 0:28:0 gen 0 deleted_inodes l=0 seq=1 journal_seq=0 cookie=1db8f60c84bb244c POS_MIN-SPOS_MAX ptr: 0:42:0 gen 0 done bcachefs (loop0): check_topology... bcachefs (loop0): btree root subvolumes unreadable, must recover from scan no nodes found for btree subvolumes, continuing bcachefs (loop0): btree root snapshots unreadable, must recover from scan no nodes found for btree snapshots, continuing done bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): stripes_read... done bcachefs (loop0): snapshots_read... bcachefs (loop0): running explicit recovery pass reconstruct_snapshots (21), currently at snapshots_read (7) done bcachefs (loop0): check_allocations... btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing btree ptr not marked in member info btree allocated bitmap u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 0 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing bucket 0:29 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 0 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bucket 0:32 gen 0 has wrong data_type: got btree, should be need_discard, fixing bucket 0:32 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing bucket 0:35 gen 0 has wrong data_type: got btree, should be need_discard, fixing bucket 0:35 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing bucket 0:121 gen 0 data type sb has wrong cached_sectors: got 983040, should be 0, fixing done bcachefs (loop0): going read-write bcachefs (loop0): journal_replay... done bcachefs (loop0): reconstruct_snapshots... snapshot node 4294967295 from tree 4294967295 missing, recreating done bcachefs (loop0): check_inodes... bcachefs (loop0): reconstructing subvol 1 with root inode 4096 bcachefs (loop0): reconstructing subvol 1 with root inode 4096 done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5320 at fs/bcachefs/fs-io.c:315 __bch2_truncate_folio+0x22aa/0x26b0 fs/bcachefs/fs-io.c:315 Modules linked in: CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.13.0-rc7-syzkaller-00209-g9528d418de4d #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+0x22aa/0x26b0 fs/bcachefs/fs-io.c:315 Code: 41 5f 5d c3 cc cc cc cc e8 b3 c0 67 fd 48 c7 c7 cb d7 11 8e e8 17 8b e8 ff 89 05 a1 ad 1d 16 e9 2c e0 ff ff e8 97 c0 67 fd 90 <0f> 0b 90 e9 88 f8 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c ff RSP: 0018:ffffc9000d38f900 EFLAGS: 00010287 RAX: ffffffff8437b729 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000e2ba000 RSI: 00000000000019e7 RDI: 00000000000019e8 RBP: ffffc9000d38fbf0 R08: ffffffff8437afac R09: 1ffffd4000266248 R10: dffffc0000000000 R11: fffff94000266249 R12: 1ffff1100a8d58fa R13: ffffc9000d38fb80 R14: ffff8880546ac7d0 R15: fffc00000000000a FS: 00007f1b230e96c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1b22567ea0 CR3: 000000003680a000 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 ksys_fallocate fs/open.c:351 [inline] __do_sys_fallocate fs/open.c:356 [inline] __se_sys_fallocate fs/open.c:354 [inline] __x64_sys_fallocate+0xbc/0x110 fs/open.c:354 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:0x7f1b22385d29 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:00007f1b230e9038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f1b22575fa0 RCX: 00007f1b22385d29 RDX: 0000000000000005 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00007f1b22401b08 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1b22575fa0 R15: 00007ffcd0334e08