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=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=4096 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): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_inodes... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): done starting filesystem bcachefs (loop0): non free bucket in freespace btree freespace key u64s 5 type set 0:29:0 len 2 ver 0 u64s 12 type alloc_v4 0:27:0 len 0 ver 0: gen 0 oldest_gen 0 data_type btree journal_seq 4 need_discard 1 need_inc_gen 1 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 1 io_time[WRITE] 256 fragmentation 0 bp_start 8 2 transaction updates for bch2_truncate journal seq 0 update: btree=logged_ops cached=0 __bch2_logged_op_start fs/bcachefs/logged_ops.c:85 [inline] update: btree=logged_ops cached=0 bch2_logged_op_start+0x181/0x310 fs/bcachefs/logged_ops.c:92 old u64s 5 type deleted 0:1:0 len 0 ver 0 new u64s 8 type logged_op_truncate 0:1:0 len 0 ver 0: subvol=1 inum=536870912 new_i_size=0 update: btree=logged_ops cached=1 __bch2_logged_op_start fs/bcachefs/logged_ops.c:85 [inline] update: btree=logged_ops cached=1 bch2_logged_op_start+0x181/0x310 fs/bcachefs/logged_ops.c:92 old u64s 5 type deleted 0:1:0 len 0 ver 0 new u64s 8 type logged_op_truncate 0:1:0 len 0 ver 0: subvol=1 inum=536870912 new_i_size=0 bcachefs (loop0): bch2_btree_update_start(): error EIO syzkaller1: entered promiscuous mode syzkaller1: entered allmulticast mode ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5318 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: 5318 Comm: syz.0.0 Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #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 a3 b1 67 fd 48 c7 c7 c1 58 11 8e e8 17 8b e8 ff 89 05 71 42 1d 16 e9 2c e0 ff ff e8 87 b1 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:ffffc9000d517900 EFLAGS: 00010283 RAX: ffffffff8437c259 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000e7a9000 RSI: 0000000000000e91 RDI: 0000000000000e92 RBP: ffffc9000d517bf0 R08: ffffffff8437badc R09: 1ffffd40001ae6c0 R10: dffffc0000000000 R11: fffff940001ae6c1 R12: 1ffff1100a9248fa R13: ffffc9000d517b80 R14: ffff8880549247d0 R15: 0000000000000000 FS: 00007fd4f44056c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000004258a000 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:0x7fd4f3585d29 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:00007fd4f4405038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fd4f3775fa0 RCX: 00007fd4f3585d29 RDX: 0000000000000003 RSI: 0000000000000003 RDI: 0000000000000009 RBP: 00007fd4f3601b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000404042bbe R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd4f3775fa0 R15: 00007ffc58f4b918