loop0: detected capacity change from 0 to 32768 bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,metadata_target=/dev/loop0,noinodes_use_key_cache,journal_flush_disabled,nochanges,recovery_pass_last=check_indirect_extents,read_only,nocow 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): recovering from clean shutdown, journal seq 0 bcachefs (loop0): Version upgrade from 1.8: bucket_stripe_sectors to 1.7: mi_btree_bitmap incomplete Doing compatible version upgrade from 1.8: bucket_stripe_sectors to 1.28: inode_has_case_insensitive running recovery passes: check_allocations,check_extents_to_backpointers,check_inodes bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): check_allocations... bcachefs (loop0): bucket 0:0 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:0 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing Ratelimiting new instances of previous error bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing Ratelimiting new instances of previous error done bcachefs (loop0): going read-write bcachefs (loop0): journal_replay... done bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_inodes... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_inodes... done bcachefs (loop0): scanning for old btree nodes: min_version 0.24: unwritten_extents ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5312 at fs/bcachefs/btree_iter.c:3132 __bch2_trans_kmalloc+0x5fb/0xc80 fs/bcachefs/btree_iter.c:3132 Modules linked in: CPU: 0 UID: 0 PID: 5312 Comm: syz.0.0 Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #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_trans_kmalloc+0x5fb/0xc80 fs/bcachefs/btree_iter.c:3132 Code: 00 e8 d9 e2 33 00 48 c7 c3 74 f7 ff ff 48 89 d8 48 83 c4 58 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 66 47 9c fd 90 <0f> 0b 90 e9 f0 fa ff ff 48 89 df e8 75 cc 02 00 43 80 7c 35 00 00 RSP: 0018:ffffc9000fcde610 EFLAGS: 00010246 RAX: ffffffff8423b38a RBX: ffff888054944000 RCX: 0000000000100000 RDX: ffffc9000dc33000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000fcde8c8 R08: ffffc9000fcdeb10 R09: 0000000000000001 R10: ffffc9000fcdea20 R11: fffff52001f9bd11 R12: 0000000000000011 R13: 1ffff1100a928800 R14: dffffc0000000000 R15: 0000000000020000 FS: 00007fa6183e36c0(0000) GS:ffff88808d266000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557fc0b79418 CR3: 0000000041fa0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_kmalloc_nomemzero_ip fs/bcachefs/btree_iter.h:586 [inline] bch2_trans_kmalloc_nomemzero fs/bcachefs/btree_iter.h:621 [inline] bch2_alloc_sectors_start_trans+0x254b/0x26a0 fs/bcachefs/alloc_foreground.c:1253 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:321 [inline] bch2_btree_reserve_get+0x641/0x1810 fs/bcachefs/btree_update_interior.c:535 bch2_btree_update_start+0x10ff/0x1480 fs/bcachefs/btree_update_interior.c:1255 bch2_btree_node_rewrite+0x17e/0x1120 fs/bcachefs/btree_update_interior.c:2208 bch2_move_btree+0x6f0/0xc70 fs/bcachefs/move.c:1093 bch2_scan_old_btree_nodes+0x95/0x240 fs/bcachefs/move.c:1215 bch2_fs_recovery+0x338d/0x3970 fs/bcachefs/recovery.c:1086 bch2_fs_start+0xa43/0xd30 fs/bcachefs/super.c:1206 bch2_fs_get_tree+0xbfc/0x15f0 fs/bcachefs/fs.c:2479 vfs_get_tree+0x92/0x2b0 fs/super.c:1809 do_new_mount+0x24a/0xa40 fs/namespace.c:3882 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x317/0x410 fs/namespace.c:4410 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:0x7fa61759010a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fa6183e2e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa6183e2ef0 RCX: 00007fa61759010a RDX: 00002000000000c0 RSI: 0000200000000040 RDI: 00007fa6183e2eb0 RBP: 00002000000000c0 R08: 00007fa6183e2ef0 R09: 0000000000818001 R10: 0000000000818001 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fa6183e2eb0 R14: 0000000000005969 R15: 0000200000000380