loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io allowing incompatible features above 0.0: (unknown version) features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): recovering from clean shutdown, journal seq 10 bcachefs (loop0): Version upgrade required: Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,check_rebalance_work,set_fs_needs_rebalance bcachefs (loop0): dropping and reconstructing all alloc info bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... done bcachefs (loop0): going read-write bcachefs (loop0): insufficient writeable journal devices available: have 0, need 1 rw journal devs: bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5348 at fs/bcachefs/fs-io.c:361 __bch2_truncate_folio+0x179c/0x1a30 fs/bcachefs/fs-io.c:361 Modules linked in: CPU: 0 UID: 0 PID: 5348 Comm: syz.0.0 Not tainted 6.16.0-rc7-syzkaller-00018-g01a412d06bc5 #0 PREEMPT(full) 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+0x179c/0x1a30 fs/bcachefs/fs-io.c:361 Code: 5f 5d c3 cc cc cc cc cc e8 c1 10 85 fd 48 c7 c7 23 ab a1 8d e8 15 62 e9 ff 89 05 cf e3 8a 15 e9 49 ea ff ff e8 a5 10 85 fd 90 <0f> 0b 90 e9 26 f9 ff ff e8 87 57 34 07 e8 92 10 85 fd be 00 10 00 RSP: 0018:ffffc9000d1a79e0 EFLAGS: 00010283 RAX: ffffffff843b205b RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000e33a000 RSI: 0000000000000f66 RDI: 0000000000000f67 RBP: ffffc9000d1a7bb0 R08: ffffea00010e3fc7 R09: 1ffffd400021c7f8 R10: dffffc0000000000 R11: fffff9400021c7f9 R12: 1ffff1100a90a1f0 R13: dffffc0000000000 R14: ffff888054850f80 R15: 0000000000000000 FS: 00007fefaa2a56c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fefaa25b000 CR3: 0000000043982000 CR4: 0000000000352ef0 Call Trace: bch2_truncate_folios fs/bcachefs/fs-io.c:400 [inline] bchfs_fallocate+0x233/0x680 fs/bcachefs/fs-io.c:777 bch2_fallocate_dispatch+0x28a/0x410 fs/bcachefs/fs-io.c:836 vfs_fallocate+0x6a0/0x830 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:368 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fefa938e9a9 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:00007fefaa2a5038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fefa95b5fa0 RCX: 00007fefa938e9a9 RDX: 0000000000000002 RSI: 0000000000000010 RDI: 0000000000000006 RBP: 00007fefa9410d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000007fff R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fefa95b5fa0 R15: 00007ffeb05cbad8