ogram executing program executing program executing program executing program executing program [ 96.808321][ T5458] bcachefs (loop0): check_xattrs... done [ 96.815286][ T5458] bcachefs (loop0): check_root... done [ 96.817871][ T5458] bcachefs (loop0): check_unreachable_inodes... done [ 96.821084][ T5458] bcachefs (loop0): check_subvolume_structure... done [ 96.826867][ T5458] bcachefs (loop0): check_directory_structure... done [ 96.830572][ T5458] bcachefs (loop0): check_nlinks... [ 96.830955][ T5458] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 96.836632][ T5458] done [ 96.838621][ T5458] bcachefs (loop0): resume_logged_ops... done [ 96.841052][ T5458] bcachefs (loop0): delete_dead_inodes... done [ 96.843935][ T5458] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program [ 97.070283][ T5458] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 97.563519][ T5458] bcachefs (loop0): check_alloc_info... done [ 97.567365][ T5458] bcachefs (loop0): check_lrus... done [ 97.569416][ T5458] bcachefs (loop0): check_btree_backpointers... done [ 97.572325][ T5458] bcachefs (loop0): check_backpointers_to_extents... done [ 97.575718][ T5458] bcachefs (loop0): check_extents_to_backpointers... done [ 97.578983][ T5458] bcachefs (loop0): check_alloc_to_lru_refs... done [ 97.581985][ T5458] bcachefs (loop0): bucket_gens_init... done [ 97.826784][ T5458] bcachefs (loop0): check_snapshot_trees... done [ 97.829851][ T5458] bcachefs (loop0): check_snapshots... done [ 97.832131][ T5458] bcachefs (loop0): check_subvols... done [ 97.834438][ T5458] bcachefs (loop0): check_subvol_children... done [ 97.836905][ T5458] bcachefs (loop0): delete_dead_snapshots... done [ 97.839320][ T5458] bcachefs (loop0): check_inodes... done [ 97.841837][ T5458] bcachefs (loop0): check_extents... done [ 97.844517][ T5458] bcachefs (loop0): check_indirect_extents... done [ 97.846943][ T5458] bcachefs (loop0): check_dirents... done [ 97.849522][ T5458] bcachefs (loop0): check_xattrs... done [ 97.851526][ T5458] bcachefs (loop0): check_root... done [ 97.853677][ T5458] bcachefs (loop0): check_unreachable_inodes... done [ 97.856284][ T5458] bcachefs (loop0): check_subvolume_structure... done [ 97.858692][ T5458] bcachefs (loop0): check_directory_structure... done [ 97.861239][ T5458] bcachefs (loop0): check_nlinks... done [ 97.863742][ T5458] bcachefs (loop0): resume_logged_ops... done [ 97.866047][ T5458] bcachefs (loop0): delete_dead_inodes... done [ 97.868377][ T5458] bcachefs (loop0): set_fs_needs_rebalance... done [ 97.872067][ T5458] bcachefs (loop0): bch2_copygc_start(): error creating copygc thread EINTR [ 97.875372][ T5458] bcachefs (loop0): error starting copygc thread [ 97.877802][ T5458] bcachefs (loop0): bch2_fs_start(): error starting filesystem EINTR [ 97.880770][ T5458] bcachefs (loop0): shutting down [ 97.882761][ T5458] bcachefs (loop0): going read-only [ 97.889530][ T5458] bcachefs (loop0): finished waiting for writes to stop [ 97.891754][ T5458] bcachefs (loop0): flushing journal and stopping allocators, journal seq 32 [ 97.896924][ T5458] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 33 [ 97.902441][ T5458] bcachefs (loop0): clean shutdown complete, journal seq 34 [ 97.905529][ T5458] bcachefs (loop0): marking filesystem clean [ 97.916109][ T5458] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 106.852433][ T5458] bcachefs: bch2_fs_get_tree() error: EINTR executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 115.577815][ T5597] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program [ 116.526141][ T5597] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 116.531978][ T5597] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 116.535179][ T5597] bcachefs (loop0): Version upgrade required: [ 116.535179][ T5597] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 116.535179][ T5597] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 116.535179][ T5597] 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,set_fs_needs_rebalance executing program executing program executing program executing program executing program [ 117.236610][ T5597] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 117.236626][ T5597] 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 executing program [ 117.236635][ T5597] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 117.538973][ T5597] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 117.538973][ T5597] btree=alloc level=0 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 [ 117.552098][ T5597] bcachefs (loop0): accounting_read... done [ 117.728988][ T5597] bcachefs (loop0): alloc_read... done [ 117.731233][ T5597] bcachefs (loop0): stripes_read... done executing program [ 117.834492][ T5597] bcachefs (loop0): snapshots_read... done [ 117.837093][ T5597] bcachefs (loop0): check_allocations... [ 117.839233][ T5597] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 117.839246][ T5597] while marking 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 [ 117.851591][ T5597] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 117.851605][ T5597] while marking 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 [ 117.861807][ T5597] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 117.861824][ T5597] while marking 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 [ 117.874451][ T5597] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 117.874467][ T5597] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 117.885703][ T5597] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 117.885713][ T5597] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 117.895192][ T5597] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.898282][ T5597] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.901888][ T5597] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.998316][ T5597] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.002406][ T5597] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.005704][ T5597] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.009205][ T5597] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.011858][ T5597] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.015665][ T5597] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.018844][ T5597] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.022555][ T5597] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.025616][ T5597] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.029501][ T5597] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.032771][ T5597] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.036733][ T5597] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.039776][ T5597] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 118.043381][ T5597] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.046528][ T5597] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.050255][ T5597] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.053786][ T5597] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.057629][ T5597] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.060806][ T5597] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.064678][ T5597] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.068303][ T5597] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.073471][ T5597] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.076766][ T5597] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.080627][ T5597] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.084065][ T5597] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.087608][ T5597] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.090974][ T5597] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.099035][ T5597] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.107664][ T5597] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.111469][ T5597] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.114944][ T5597] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.118479][ T5597] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.121338][ T5597] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.125164][ T5597] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.128333][ T5597] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.131839][ T5597] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.135152][ T5597] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.138906][ T5597] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing executing program executing program executing program executing program [ 118.453889][ T5597] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.457575][ T5597] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.461044][ T5597] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.465448][ T5597] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.468332][ T5597] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.471821][ T5597] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.475736][ T5597] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.479303][ T5597] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 118.482430][ T5597] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 118.486722][ T5597] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 118.489802][ T5597] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 118.493666][ T5597] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 118.496983][ T5597] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 118.500165][ T5597] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 118.504265][ T5597] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 118.507266][ T5597] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 118.510900][ T5597] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing executing program executing program executing program [ 119.153170][ T5597] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 119.158202][ T5597] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.161313][ T5597] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.165386][ T5597] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.168803][ T5597] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.172407][ T5597] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.175919][ T5597] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.179697][ T5597] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.182723][ T5597] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.186185][ T5597] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.189269][ T5597] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.193911][ T5597] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.197097][ T5597] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.200660][ T5597] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.204201][ T5597] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.207706][ T5597] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.210909][ T5597] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 119.665243][ T5597] done [ 119.667273][ T5597] bcachefs (loop0): going read-write [ 119.681294][ T5597] bcachefs (loop0): journal_replay... done [ 119.698464][ T5597] bcachefs (loop0): check_alloc_info... done [ 119.703856][ T5597] bcachefs (loop0): check_lrus... done [ 119.706513][ T5597] bcachefs (loop0): check_btree_backpointers... done [ 119.709382][ T5597] bcachefs (loop0): check_backpointers_to_extents... done [ 119.713609][ T5597] bcachefs (loop0): check_extents_to_backpointers... [ 119.714207][ T5597] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 119.720096][ T5597] done [ 119.722111][ T5597] bcachefs (loop0): check_alloc_to_lru_refs... done executing program [ 120.372489][ T5597] bcachefs (loop0): bucket_gens_init... done executing program executing program executing program executing program executing program executing program executing program executing program [ 121.085585][ T5597] bcachefs (loop0): check_snapshot_trees... done executing program [ 121.691640][ T5597] bcachefs (loop0): check_snapshots... [ 121.691970][ T5597] snapshot points to missing/incorrect tree: [ 121.691978][ T5597] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 121.702627][ T5597] snapshot points to missing/incorrect tree: [ 121.702639][ T5597] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 122.077134][ T5597] done [ 122.257524][ T5597] bcachefs (loop0): check_subvols... done [ 122.261329][ T5597] bcachefs (loop0): check_subvol_children... done [ 122.264984][ T5597] bcachefs (loop0): delete_dead_snapshots... done [ 122.273579][ T5597] bcachefs (loop0): check_inodes... done executing program executing program executing program executing program executing program [ 122.463152][ T5597] bcachefs (loop0): check_extents... done [ 122.466096][ T5597] bcachefs (loop0): check_indirect_extents... done [ 122.469232][ T5597] bcachefs (loop0): check_dirents... done [ 122.483039][ T5597] bcachefs (loop0): check_xattrs... done [ 122.486659][ T5597] bcachefs (loop0): check_root... done [ 122.489384][ T5597] bcachefs (loop0): check_unreachable_inodes... done [ 122.492371][ T5597] bcachefs (loop0): check_subvolume_structure... done [ 122.495464][ T5597] bcachefs (loop0): check_directory_structure... done [ 123.046683][ T5597] bcachefs (loop0): check_nlinks... [ 123.047222][ T5597] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 123.052468][ T5597] done executing program executing program executing program executing program [ 123.239515][ T5597] bcachefs (loop0): resume_logged_ops... done [ 123.243122][ T5597] bcachefs (loop0): delete_dead_inodes... done [ 123.246902][ T5597] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program [ 124.041909][ T5597] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 124.045370][ T5597] bcachefs (loop0): check_alloc_info... done [ 124.050286][ T5597] bcachefs (loop0): check_lrus... done [ 124.052083][ T5597] bcachefs (loop0): check_btree_backpointers... done [ 124.061493][ T5597] bcachefs (loop0): check_backpointers_to_extents... done [ 124.065240][ T5597] bcachefs (loop0): check_extents_to_backpointers... [ 124.065848][ T5597] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 124.072477][ T5597] done [ 124.074607][ T5597] bcachefs (loop0): check_alloc_to_lru_refs... done [ 124.077432][ T5597] bcachefs (loop0): bucket_gens_init... done [ 124.080563][ T5597] bcachefs (loop0): check_snapshot_trees... done [ 124.083790][ T5597] bcachefs (loop0): check_snapshots... done [ 124.086146][ T5597] bcachefs (loop0): check_subvols... done [ 124.088367][ T5597] bcachefs (loop0): check_subvol_children... done [ 124.090749][ T5597] bcachefs (loop0): delete_dead_snapshots... done [ 124.094382][ T5597] bcachefs (loop0): check_inodes... done [ 124.096989][ T5597] bcachefs (loop0): check_extents... done [ 124.099569][ T5597] bcachefs (loop0): check_indirect_extents... done [ 124.102007][ T5597] bcachefs (loop0): check_dirents... done [ 124.105616][ T5597] bcachefs (loop0): check_xattrs... done [ 124.107926][ T5597] bcachefs (loop0): check_root... done [ 124.110122][ T5597] bcachefs (loop0): check_unreachable_inodes... done [ 124.112635][ T5597] bcachefs (loop0): check_subvolume_structure... done [ 124.115986][ T5597] bcachefs (loop0): check_directory_structure... done [ 124.118899][ T5597] bcachefs (loop0): check_nlinks... done [ 124.121468][ T5597] bcachefs (loop0): resume_logged_ops... done [ 124.124394][ T5597] bcachefs (loop0): delete_dead_inodes... done [ 124.127040][ T5597] bcachefs (loop0): set_fs_needs_rebalance... done [ 124.137303][ T5597] bcachefs (loop0): done starting filesystem executing program executing program executing program [ 125.095049][ T5315] bcachefs (loop0): shutting down [ 125.097305][ T5315] bcachefs (loop0): going read-only executing program executing program executing program executing program executing program executing program executing program [ 125.715568][ T5315] bcachefs (loop0): finished waiting for writes to stop [ 126.054874][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 34 [ 126.058640][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 34 [ 126.065706][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 35 [ 126.069384][ T5315] bcachefs (loop0): marking filesystem clean [ 126.449218][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 134.908222][ T5710] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program [ 135.877038][ T5710] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 135.882804][ T5710] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 135.886706][ T5710] bcachefs (loop0): Version upgrade required: [ 135.886706][ T5710] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 135.886706][ T5710] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 135.886706][ T5710] 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,set_fs_needs_rebalance [ 135.917446][ T5710] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 135.917460][ T5710] 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 [ 135.917469][ T5710] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 135.932859][ T5710] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 135.932859][ T5710] btree=alloc level=0 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 executing program executing program [ 135.947551][ T5710] bcachefs (loop0): accounting_read... done [ 136.155902][ T5710] bcachefs (loop0): alloc_read... done [ 136.158065][ T5710] bcachefs (loop0): stripes_read... done [ 136.160172][ T5710] bcachefs (loop0): snapshots_read... done [ 136.162375][ T5710] bcachefs (loop0): check_allocations... [ 136.165147][ T5710] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 136.165159][ T5710] while marking 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 [ 136.178098][ T5710] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 136.178111][ T5710] while marking 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 [ 136.188213][ T5710] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 136.188226][ T5710] while marking 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 [ 136.198440][ T5710] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 136.198455][ T5710] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 136.379646][ T5710] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 136.379661][ T5710] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 136.388968][ T5710] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.391924][ T5710] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.395707][ T5710] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.398764][ T5710] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.402233][ T5710] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.405261][ T5710] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.408526][ T5710] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.411407][ T5710] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.414975][ T5710] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.418218][ T5710] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.421839][ T5710] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.424942][ T5710] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.428639][ T5710] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.431666][ T5710] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.435280][ T5710] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.438371][ T5710] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 136.441953][ T5710] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.445251][ T5710] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.449082][ T5710] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.452245][ T5710] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.456039][ T5710] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.459228][ T5710] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.463106][ T5710] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.466341][ T5710] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.470178][ T5710] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.473556][ T5710] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.477350][ T5710] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.480645][ T5710] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.484583][ T5710] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.487938][ T5710] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.491943][ T5710] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.495123][ T5710] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.498840][ T5710] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.501994][ T5710] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.505839][ T5710] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.508925][ T5710] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.512605][ T5710] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.515757][ T5710] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.519479][ T5710] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.522615][ T5710] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.526372][ T5710] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.529463][ T5710] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.532997][ T5710] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.536276][ T5710] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.539931][ T5710] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.543044][ T5710] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.546897][ T5710] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.550119][ T5710] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.553969][ T5710] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 136.557094][ T5710] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 136.560915][ T5710] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 136.564138][ T5710] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 136.567823][ T5710] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 136.570873][ T5710] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 136.574053][ T5710] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 136.577762][ T5710] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 136.580927][ T5710] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 136.584740][ T5710] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 136.587827][ T5710] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 136.591837][ T5710] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.594790][ T5710] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.598340][ T5710] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.601298][ T5710] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.604694][ T5710] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.607746][ T5710] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.611443][ T5710] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.614642][ T5710] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.618293][ T5710] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.621285][ T5710] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.625306][ T5710] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.628695][ T5710] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.632196][ T5710] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.635288][ T5710] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.639032][ T5710] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.642092][ T5710] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.646449][ T5710] done [ 136.648161][ T5710] bcachefs (loop0): going read-write executing program executing program executing program executing program executing program executing program executing program [ 136.650583][ T5710] bcachefs (loop0): journal_replay... [ 137.786264][ T1311] ieee802154 phy0 wpan0: encryption failed: -22 [ 137.790561][ T1311] ieee802154 phy1 wpan1: encryption failed: -22 [ 138.043664][ T5710] done [ 138.045397][ T5710] bcachefs (loop0): check_alloc_info... done [ 138.051695][ T5710] bcachefs (loop0): check_lrus... done [ 138.054670][ T5710] bcachefs (loop0): check_btree_backpointers... done [ 138.058018][ T5710] bcachefs (loop0): check_backpointers_to_extents... done executing program executing program executing program [ 138.455143][ T5710] bcachefs (loop0): check_extents_to_backpointers... [ 138.455933][ T5710] bcachefs (loop0): scanning for missing backpointers in 6/128 buckets [ 138.462048][ T5710] done [ 138.465079][ T5710] bcachefs (loop0): check_alloc_to_lru_refs... done [ 138.468511][ T5710] bcachefs (loop0): bucket_gens_init... done [ 138.655028][ T5710] bcachefs (loop0): check_snapshot_trees... done [ 138.659520][ T5710] bcachefs (loop0): check_snapshots... [ 138.659760][ T5710] snapshot points to missing/incorrect tree: [ 138.659769][ T5710] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 138.669647][ T5710] snapshot points to missing/incorrect tree: [ 138.669658][ T5710] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing executing program [ 138.688588][ T5710] done [ 138.694346][ T5710] bcachefs (loop0): check_subvols... done [ 138.697398][ T5710] bcachefs (loop0): check_subvol_children... done [ 138.699625][ T5710] bcachefs (loop0): delete_dead_snapshots... done [ 138.704538][ T5710] bcachefs (loop0): check_inodes... done [ 138.709399][ T5710] bcachefs (loop0): check_extents... done [ 139.059098][ T5710] bcachefs (loop0): check_indirect_extents... done [ 139.062154][ T5710] bcachefs (loop0): check_dirents... done [ 139.069751][ T5710] bcachefs (loop0): check_xattrs... done [ 139.072336][ T5710] bcachefs (loop0): check_root... done [ 139.074866][ T5710] bcachefs (loop0): check_unreachable_inodes... done [ 139.077817][ T5710] bcachefs (loop0): check_subvolume_structure... done [ 139.080910][ T5710] bcachefs (loop0): check_directory_structure... done [ 139.084581][ T5710] bcachefs (loop0): check_nlinks... [ 139.084996][ T5710] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 139.090487][ T5710] done executing program [ 139.289061][ T5710] bcachefs (loop0): resume_logged_ops... done executing program executing program [ 139.484088][ T5710] bcachefs (loop0): delete_dead_inodes... done executing program executing program [ 139.488168][ T5710] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program executing program executing program executing program [ 140.836525][ T5710] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 140.840125][ T5710] bcachefs (loop0): check_alloc_info... done [ 140.845595][ T5710] bcachefs (loop0): check_lrus... done [ 140.848020][ T5710] bcachefs (loop0): check_btree_backpointers... done [ 140.851129][ T5710] bcachefs (loop0): check_backpointers_to_extents... done [ 140.855105][ T5710] bcachefs (loop0): check_extents_to_backpointers... done [ 140.858481][ T5710] bcachefs (loop0): check_alloc_to_lru_refs... done [ 140.861623][ T5710] bcachefs (loop0): bucket_gens_init... done [ 140.865357][ T5710] bcachefs (loop0): check_snapshot_trees... done [ 140.868173][ T5710] bcachefs (loop0): check_snapshots... done [ 140.870842][ T5710] bcachefs (loop0): check_subvols... done [ 140.873183][ T5710] bcachefs (loop0): check_subvol_children... done [ 140.876330][ T5710] bcachefs (loop0): delete_dead_snapshots... done [ 140.878817][ T5710] bcachefs (loop0): check_inodes... done [ 140.881494][ T5710] bcachefs (loop0): check_extents... done [ 140.884723][ T5710] bcachefs (loop0): check_indirect_extents... done [ 140.887337][ T5710] bcachefs (loop0): check_dirents... done [ 140.890141][ T5710] bcachefs (loop0): check_xattrs... done [ 140.892634][ T5710] bcachefs (loop0): check_root... done [ 140.895344][ T5710] bcachefs (loop0): check_unreachable_inodes... done [ 140.898164][ T5710] bcachefs (loop0): check_subvolume_structure... done [ 140.900757][ T5710] bcachefs (loop0): check_directory_structure... done [ 140.904283][ T5710] bcachefs (loop0): check_nlinks... done [ 140.906788][ T5710] bcachefs (loop0): resume_logged_ops... done [ 140.909102][ T5710] bcachefs (loop0): delete_dead_inodes... done [ 140.911363][ T5710] bcachefs (loop0): set_fs_needs_rebalance... done [ 140.917086][ T5710] bcachefs (loop0): done starting filesystem [ 140.932711][ T5315] bcachefs (loop0): shutting down [ 140.935000][ T5315] bcachefs (loop0): going read-only [ 140.936938][ T5315] bcachefs (loop0): finished waiting for writes to stop executing program executing program executing program executing program executing program executing program executing program [ 142.214711][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 33 [ 142.219304][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 33 [ 142.224964][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 34 [ 142.228493][ T5315] bcachefs (loop0): marking filesystem clean [ 142.242300][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 151.103496][ T5806] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 152.799075][ T5806] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 152.805162][ T5806] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 152.808213][ T5806] bcachefs (loop0): Version upgrade required: [ 152.808213][ T5806] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 152.808213][ T5806] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 152.808213][ T5806] 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,set_fs_needs_rebalance executing program executing program executing program executing program [ 153.323149][ T5806] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 153.323166][ T5806] 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 [ 153.323176][ T5806] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 153.703667][ T5806] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 153.703667][ T5806] btree=alloc level=0 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 executing program executing program [ 153.717495][ T5806] bcachefs (loop0): accounting_read... done [ 154.120116][ T5806] bcachefs (loop0): alloc_read... done [ 154.122257][ T5806] bcachefs (loop0): stripes_read... done [ 154.124912][ T5806] bcachefs (loop0): snapshots_read... done executing program executing program executing program [ 154.335634][ T5806] bcachefs (loop0): check_allocations... [ 154.336981][ T5806] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 154.336992][ T5806] while marking 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 [ 154.349365][ T5806] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 154.349379][ T5806] while marking 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 [ 154.359756][ T5806] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 154.359771][ T5806] while marking 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 [ 154.369627][ T5806] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 154.369642][ T5806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 154.379096][ T5806] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 154.379111][ T5806] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 154.388294][ T5806] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.391143][ T5806] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.395120][ T5806] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.398250][ T5806] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.402585][ T5806] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.406368][ T5806] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.410187][ T5806] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.413913][ T5806] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.417790][ T5806] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.420891][ T5806] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 154.894694][ T5806] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.897944][ T5806] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.901476][ T5806] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.905404][ T5806] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.909357][ T5806] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.912373][ T5806] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 154.916447][ T5806] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.919856][ T5806] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.924492][ T5806] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.927827][ T5806] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.931871][ T5806] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.935580][ T5806] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.939336][ T5806] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.942827][ T5806] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.947054][ T5806] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.950516][ T5806] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.955302][ T5806] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.958801][ T5806] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.962562][ T5806] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.966110][ T5806] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.969625][ T5806] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.972447][ T5806] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.976741][ T5806] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.979995][ T5806] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.984899][ T5806] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.988404][ T5806] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.992259][ T5806] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.170503][ T5806] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 155.276596][ T5806] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.280059][ T5806] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.284403][ T5806] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.287849][ T5806] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.291622][ T5806] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.295731][ T5806] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.299428][ T5806] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.302422][ T5806] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.306631][ T5806] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 155.310120][ T5806] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 155.314389][ T5806] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 155.317654][ T5806] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 155.321778][ T5806] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 155.325358][ T5806] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 155.328828][ T5806] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 155.332010][ T5806] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 155.335494][ T5806] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 155.339128][ T5806] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 155.342191][ T5806] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 155.346367][ T5806] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 155.349723][ T5806] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 155.354532][ T5806] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.357664][ T5806] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.361307][ T5806] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing executing program [ 155.450542][ T5806] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.454527][ T5806] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.457692][ T5806] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 155.564956][ T5806] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.568097][ T5806] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.571343][ T5806] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.575153][ T5806] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.578341][ T5806] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.581372][ T5806] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.585666][ T5806] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.588799][ T5806] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.592661][ T5806] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.596448][ T5806] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.600963][ T5806] done [ 155.603027][ T5806] bcachefs (loop0): going read-write [ 155.616374][ T5806] bcachefs (loop0): journal_replay... done [ 155.635111][ T5806] bcachefs (loop0): check_alloc_info... done [ 155.641550][ T5806] bcachefs (loop0): check_lrus... done [ 155.645214][ T5806] bcachefs (loop0): check_btree_backpointers... done [ 155.648832][ T5806] bcachefs (loop0): check_backpointers_to_extents... done [ 155.652944][ T5806] bcachefs (loop0): check_extents_to_backpointers... [ 155.653967][ T5806] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 155.659686][ T5806] done [ 155.661845][ T5806] bcachefs (loop0): check_alloc_to_lru_refs... done executing program [ 156.102362][ T5806] bcachefs (loop0): bucket_gens_init... done executing program executing program [ 156.485464][ T5806] bcachefs (loop0): check_snapshot_trees... done [ 156.488919][ T5806] bcachefs (loop0): check_snapshots... [ 156.489221][ T5806] snapshot points to missing/incorrect tree: [ 156.489232][ T5806] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 156.499807][ T5806] snapshot points to missing/incorrect tree: [ 156.499820][ T5806] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 156.510825][ T5806] done [ 156.690157][ T5806] bcachefs (loop0): check_subvols... done executing program [ 156.696477][ T5806] bcachefs (loop0): check_subvol_children... done executing program executing program executing program executing program [ 157.428622][ T5806] bcachefs (loop0): delete_dead_snapshots... done executing program executing program [ 157.799455][ T5806] bcachefs (loop0): check_inodes... done [ 157.806868][ T5806] bcachefs (loop0): check_extents... done executing program [ 157.813556][ T5806] bcachefs (loop0): check_indirect_extents... done [ 157.816230][ T5806] bcachefs (loop0): check_dirents... done [ 157.821450][ T5806] bcachefs (loop0): check_xattrs... done [ 157.824541][ T5806] bcachefs (loop0): check_root... done [ 157.827305][ T5806] bcachefs (loop0): check_unreachable_inodes... done [ 157.830453][ T5806] bcachefs (loop0): check_subvolume_structure... done [ 157.833188][ T5806] bcachefs (loop0): check_directory_structure... done [ 157.836717][ T5806] bcachefs (loop0): check_nlinks... [ 157.837114][ T5806] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 157.842550][ T5806] done executing program executing program executing program executing program [ 158.153866][ T5806] bcachefs (loop0): resume_logged_ops... done [ 158.772787][ T5806] bcachefs (loop0): delete_dead_inodes... done [ 158.776568][ T5806] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program [ 158.908332][ T5806] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 158.911951][ T5806] bcachefs (loop0): check_alloc_info... done [ 159.401135][ T5806] bcachefs (loop0): check_lrus... done [ 159.403808][ T5806] bcachefs (loop0): check_btree_backpointers... done [ 159.407056][ T5806] bcachefs (loop0): check_backpointers_to_extents... done [ 159.410150][ T5806] bcachefs (loop0): check_extents_to_backpointers... [ 159.410735][ T5806] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 159.418522][ T5806] done [ 159.420194][ T5806] bcachefs (loop0): check_alloc_to_lru_refs... done [ 159.423085][ T5806] bcachefs (loop0): bucket_gens_init... done [ 159.426718][ T5806] bcachefs (loop0): check_snapshot_trees... done [ 159.429635][ T5806] bcachefs (loop0): check_snapshots... done [ 159.432106][ T5806] bcachefs (loop0): check_subvols... done [ 159.435612][ T5806] bcachefs (loop0): check_subvol_children... done [ 159.438552][ T5806] bcachefs (loop0): delete_dead_snapshots... done [ 159.441787][ T5806] bcachefs (loop0): check_inodes... done [ 159.444846][ T5806] bcachefs (loop0): check_extents... done [ 159.447434][ T5806] bcachefs (loop0): check_indirect_extents... done [ 159.449797][ T5806] bcachefs (loop0): check_dirents... done [ 159.452663][ T5806] bcachefs (loop0): check_xattrs... done [ 159.455488][ T5806] bcachefs (loop0): check_root... done [ 159.457755][ T5806] bcachefs (loop0): check_unreachable_inodes... done [ 159.460411][ T5806] bcachefs (loop0): check_subvolume_structure... done [ 159.463083][ T5806] bcachefs (loop0): check_directory_structure... done [ 159.465859][ T5806] bcachefs (loop0): check_nlinks... done [ 159.468331][ T5806] bcachefs (loop0): resume_logged_ops... done [ 159.470689][ T5806] bcachefs (loop0): delete_dead_inodes... done [ 159.473141][ T5806] bcachefs (loop0): set_fs_needs_rebalance... done [ 159.813777][ T5806] bcachefs (loop0): done starting filesystem executing program [ 159.944265][ T5315] bcachefs (loop0): shutting down [ 159.946312][ T5315] bcachefs (loop0): going read-only [ 159.949231][ T5315] bcachefs (loop0): finished waiting for writes to stop [ 159.954552][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 35 executing program executing program executing program executing program [ 160.589189][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 36 executing program executing program executing program executing program [ 161.233466][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 37 [ 161.237109][ T5315] bcachefs (loop0): marking filesystem clean executing program executing program [ 161.251117][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 170.691061][ T5919] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program [ 172.032242][ T5919] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 172.038775][ T5919] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 172.042386][ T5919] bcachefs (loop0): Version upgrade required: [ 172.042386][ T5919] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 172.042386][ T5919] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 172.042386][ T5919] 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,set_fs_needs_rebalance [ 172.075838][ T5919] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 172.075852][ T5919] 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 executing program executing program [ 172.075861][ T5919] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 172.733409][ T5919] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 172.733409][ T5919] btree=alloc level=0 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 [ 172.747524][ T5919] bcachefs (loop0): accounting_read... done [ 173.003159][ T5919] bcachefs (loop0): alloc_read... done [ 173.005737][ T5919] bcachefs (loop0): stripes_read... done executing program executing program executing program executing program executing program [ 173.126512][ T5919] bcachefs (loop0): snapshots_read... done [ 173.128852][ T5919] bcachefs (loop0): check_allocations... [ 173.130452][ T5919] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 173.130465][ T5919] while marking 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 [ 173.143736][ T5919] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 173.143752][ T5919] while marking 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 [ 173.152807][ T5919] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 173.152820][ T5919] while marking 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 [ 173.163847][ T5919] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 173.163860][ T5919] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 173.174585][ T5919] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 173.174600][ T5919] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 173.184391][ T5919] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.187551][ T5919] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.191458][ T5919] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.195246][ T5919] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.198962][ T5919] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.201874][ T5919] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.205949][ T5919] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.209055][ T5919] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.212767][ T5919] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.720738][ T5919] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.724390][ T5919] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.727531][ T5919] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.731202][ T5919] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.735095][ T5919] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.738741][ T5919] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.741802][ T5919] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 173.745376][ T5919] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.748656][ T5919] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.752448][ T5919] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.755995][ T5919] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.759531][ T5919] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.762863][ T5919] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.767008][ T5919] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.770218][ T5919] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.774037][ T5919] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.777599][ T5919] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.781445][ T5919] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.784699][ T5919] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.788440][ T5919] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.791671][ T5919] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.795708][ T5919] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.798788][ T5919] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.802457][ T5919] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.805617][ T5919] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.809480][ T5919] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.812735][ T5919] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.165514][ T5919] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.168543][ T5919] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.171944][ T5919] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.181083][ T5919] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.185630][ T5919] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.188787][ T5919] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.192660][ T5919] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.196392][ T5919] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.200122][ T5919] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.203602][ T5919] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.207251][ T5919] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 174.210128][ T5919] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 174.214549][ T5919] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 174.218047][ T5919] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 174.221824][ T5919] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 174.225452][ T5919] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 174.229265][ T5919] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 174.232485][ T5919] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 174.236370][ T5919] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 174.240415][ T5919] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 174.244005][ T5919] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 174.247657][ T5919] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 174.251160][ T5919] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 174.256194][ T5919] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.259565][ T5919] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.264261][ T5919] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.267459][ T5919] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.271584][ T5919] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.276294][ T5919] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.280102][ T5919] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.283819][ T5919] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 174.385027][ T5919] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.388048][ T5919] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.391514][ T5919] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.395471][ T5919] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.399208][ T5919] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.402425][ T5919] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.407294][ T5919] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.410523][ T5919] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.505078][ T5919] done [ 174.507131][ T5919] bcachefs (loop0): going read-write executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 174.524293][ T5919] bcachefs (loop0): journal_replay... done executing program [ 177.410010][ T5919] bcachefs (loop0): check_alloc_info... done [ 177.519563][ T5919] bcachefs (loop0): check_lrus... done [ 177.522320][ T5919] bcachefs (loop0): check_btree_backpointers... done [ 177.526246][ T5919] bcachefs (loop0): check_backpointers_to_extents... done [ 177.530346][ T5919] bcachefs (loop0): check_extents_to_backpointers... [ 177.531126][ T5919] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 177.537862][ T5919] done [ 177.540014][ T5919] bcachefs (loop0): check_alloc_to_lru_refs... done [ 177.543014][ T5919] bcachefs (loop0): bucket_gens_init... done [ 177.551622][ T5919] bcachefs (loop0): check_snapshot_trees... done [ 177.554917][ T5919] bcachefs (loop0): check_snapshots... [ 177.555207][ T5919] snapshot points to missing/incorrect tree: [ 177.555215][ T5919] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 177.753728][ T5919] snapshot points to missing/incorrect tree: [ 177.753740][ T5919] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 177.764856][ T5919] done executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 179.003859][ T5919] bcachefs (loop0): check_subvols... done [ 179.007928][ T5919] bcachefs (loop0): check_subvol_children... done [ 179.010886][ T5919] bcachefs (loop0): delete_dead_snapshots... done [ 179.014626][ T5919] bcachefs (loop0): check_inodes... done [ 179.018800][ T5919] bcachefs (loop0): check_extents... done [ 179.021976][ T5919] bcachefs (loop0): check_indirect_extents... done [ 179.029069][ T5919] bcachefs (loop0): check_dirents... done [ 179.034366][ T5919] bcachefs (loop0): check_xattrs... done [ 179.037262][ T5919] bcachefs (loop0): check_root... done [ 179.040175][ T5919] bcachefs (loop0): check_unreachable_inodes... done [ 179.042910][ T5919] bcachefs (loop0): check_subvolume_structure... done [ 179.046547][ T5919] bcachefs (loop0): check_directory_structure... done [ 179.049915][ T5919] bcachefs (loop0): check_nlinks... [ 179.050225][ T5919] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 179.057378][ T5919] done [ 179.060185][ T5919] bcachefs (loop0): resume_logged_ops... done [ 179.063126][ T5919] bcachefs (loop0): delete_dead_inodes... done [ 179.066665][ T5919] bcachefs (loop0): set_fs_needs_rebalance... done [ 179.079004][ T5919] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 179.082873][ T5919] bcachefs (loop0): check_alloc_info... done [ 179.087861][ T5919] bcachefs (loop0): check_lrus... done [ 179.090028][ T5919] bcachefs (loop0): check_btree_backpointers... done [ 179.093744][ T5919] bcachefs (loop0): check_backpointers_to_extents... done [ 179.096810][ T5919] bcachefs (loop0): check_extents_to_backpointers... [ 179.097407][ T5919] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets executing program [ 179.640446][ T5919] done [ 179.891772][ T5919] bcachefs (loop0): check_alloc_to_lru_refs... done [ 179.895404][ T5919] bcachefs (loop0): bucket_gens_init... done [ 179.898545][ T5919] bcachefs (loop0): check_snapshot_trees... done [ 179.901358][ T5919] bcachefs (loop0): check_snapshots... done [ 179.904020][ T5919] bcachefs (loop0): check_subvols... done [ 179.906004][ T5919] bcachefs (loop0): check_subvol_children... done [ 179.908125][ T5919] bcachefs (loop0): delete_dead_snapshots... done [ 179.910326][ T5919] bcachefs (loop0): check_inodes... done [ 179.912990][ T5919] bcachefs (loop0): check_extents... done [ 179.916316][ T5919] bcachefs (loop0): check_indirect_extents... done [ 179.918826][ T5919] bcachefs (loop0): check_dirents... done [ 179.921676][ T5919] bcachefs (loop0): check_xattrs... done [ 179.924405][ T5919] bcachefs (loop0): check_root... done [ 179.926408][ T5919] bcachefs (loop0): check_unreachable_inodes... done [ 179.929371][ T5919] bcachefs (loop0): check_subvolume_structure... done [ 179.932490][ T5919] bcachefs (loop0): check_directory_structure... done [ 179.936753][ T5919] bcachefs (loop0): check_nlinks... done [ 179.939651][ T5919] bcachefs (loop0): resume_logged_ops... done [ 179.942335][ T5919] bcachefs (loop0): delete_dead_inodes... done [ 179.945463][ T5919] bcachefs (loop0): set_fs_needs_rebalance... done [ 179.951862][ T5919] bcachefs (loop0): done starting filesystem [ 179.969022][ T5315] bcachefs (loop0): shutting down [ 179.973372][ T5315] bcachefs (loop0): going read-only [ 179.975383][ T5315] bcachefs (loop0): finished waiting for writes to stop executing program [ 179.981166][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 33 [ 179.986992][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 34 [ 180.340698][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 35 executing program executing program [ 180.885452][ T5315] bcachefs (loop0): marking filesystem clean executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 182.085238][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 191.966905][ T6041] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program [ 192.832311][ T6041] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 192.838907][ T6041] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 192.842018][ T6041] bcachefs (loop0): Version upgrade required: [ 192.842018][ T6041] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 192.842018][ T6041] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 192.842018][ T6041] 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,set_fs_needs_rebalance [ 193.050715][ T6041] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 193.050726][ T6041] 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 [ 193.050730][ T6041] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 193.065678][ T6041] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 193.065678][ T6041] btree=alloc level=0 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 executing program executing program executing program executing program executing program [ 193.384261][ T6041] bcachefs (loop0): accounting_read... done [ 193.387411][ T6041] bcachefs (loop0): alloc_read... done [ 193.389642][ T6041] bcachefs (loop0): stripes_read... done [ 193.391791][ T6041] bcachefs (loop0): snapshots_read... done [ 193.394801][ T6041] bcachefs (loop0): check_allocations... [ 193.396152][ T6041] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 193.396171][ T6041] while marking 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 [ 193.409685][ T6041] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 193.409699][ T6041] while marking 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 [ 193.420017][ T6041] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 193.420032][ T6041] while marking 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 [ 193.430369][ T6041] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 193.430382][ T6041] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 193.441339][ T6041] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 193.441354][ T6041] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 193.451260][ T6041] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing executing program executing program [ 194.110788][ T6041] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.115300][ T6041] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.118590][ T6041] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 194.224070][ T6041] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.227227][ T6041] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.230817][ T6041] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.234466][ T6041] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.238367][ T6041] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.241402][ T6041] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.245906][ T6041] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.248855][ T6041] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.252830][ T6041] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.256902][ T6041] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.260974][ T6041] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.264016][ T6041] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 194.267588][ T6041] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.270616][ T6041] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.275196][ T6041] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.278981][ T6041] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.283169][ T6041] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.286995][ T6041] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.291212][ T6041] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.294955][ T6041] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.298797][ T6041] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.302366][ T6041] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.306853][ T6041] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.309952][ T6041] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing executing program [ 194.823577][ T6041] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.827143][ T6041] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.831431][ T6041] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.835672][ T6041] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.839375][ T6041] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.842854][ T6041] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.847018][ T6041] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.850275][ T6041] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.854583][ T6041] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.857627][ T6041] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.860918][ T6041] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.864576][ T6041] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.868118][ T6041] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.871209][ T6041] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.875597][ T6041] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.878719][ T6041] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.882405][ T6041] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 194.886305][ T6041] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 194.889885][ T6041] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 194.893698][ T6041] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 194.898082][ T6041] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 194.901254][ T6041] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 194.905558][ T6041] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 194.908764][ T6041] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 194.912804][ T6041] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 194.916603][ T6041] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 194.920176][ T6041] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 195.022157][ T6041] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 195.025947][ T6041] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 195.029746][ T6041] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 195.033117][ T6041] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 195.038160][ T6041] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.041185][ T6041] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.045215][ T6041] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.048194][ T6041] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.051486][ T6041] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.055366][ T6041] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.059208][ T6041] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.062574][ T6041] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.067235][ T6041] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.070319][ T6041] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.074497][ T6041] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.078298][ T6041] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.082720][ T6041] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.086332][ T6041] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.090131][ T6041] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.093631][ T6041] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.098580][ T6041] done executing program executing program [ 195.304809][ T6041] bcachefs (loop0): going read-write [ 195.318686][ T6041] bcachefs (loop0): journal_replay... done [ 195.338554][ T6041] bcachefs (loop0): check_alloc_info... done [ 195.345393][ T6041] bcachefs (loop0): check_lrus... done [ 195.348058][ T6041] bcachefs (loop0): check_btree_backpointers... done [ 195.351420][ T6041] bcachefs (loop0): check_backpointers_to_extents... done executing program executing program executing program [ 195.655321][ T6041] bcachefs (loop0): check_extents_to_backpointers... [ 195.656154][ T6041] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 195.667186][ T6041] done executing program [ 196.274490][ T6041] bcachefs (loop0): check_alloc_to_lru_refs... done [ 196.278033][ T6041] bcachefs (loop0): bucket_gens_init... done [ 196.292084][ T6041] bcachefs (loop0): check_snapshot_trees... done [ 196.300817][ T6041] bcachefs (loop0): check_snapshots... [ 196.301108][ T6041] snapshot points to missing/incorrect tree: [ 196.301119][ T6041] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 196.312280][ T6041] snapshot points to missing/incorrect tree: [ 196.312293][ T6041] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 196.838708][ T6041] done [ 196.840844][ T6041] bcachefs (loop0): check_subvols... done [ 196.844506][ T6041] bcachefs (loop0): check_subvol_children... done [ 196.847606][ T6041] bcachefs (loop0): delete_dead_snapshots... done [ 196.851089][ T6041] bcachefs (loop0): check_inodes... done [ 196.855733][ T6041] bcachefs (loop0): check_extents... done [ 196.859011][ T6041] bcachefs (loop0): check_indirect_extents... done [ 196.861909][ T6041] bcachefs (loop0): check_dirents... done [ 196.866301][ T6041] bcachefs (loop0): check_xattrs... done [ 196.869121][ T6041] bcachefs (loop0): check_root... done executing program executing program executing program executing program [ 197.048630][ T6041] bcachefs (loop0): check_unreachable_inodes... done [ 197.051639][ T6041] bcachefs (loop0): check_subvolume_structure... done [ 197.054671][ T6041] bcachefs (loop0): check_directory_structure... done [ 197.058453][ T6041] bcachefs (loop0): check_nlinks... [ 197.058852][ T6041] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 197.064273][ T6041] done executing program [ 197.073926][ T6041] bcachefs (loop0): resume_logged_ops... done [ 197.086145][ T6041] bcachefs (loop0): delete_dead_inodes... done [ 197.089625][ T6041] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program executing program executing program executing program [ 198.679041][ T6041] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean executing program executing program [ 198.682267][ T6041] bcachefs (loop0): check_alloc_info... done [ 198.884303][ T6041] bcachefs (loop0): check_lrus... done [ 198.886502][ T6041] bcachefs (loop0): check_btree_backpointers... done [ 198.889346][ T6041] bcachefs (loop0): check_backpointers_to_extents... done [ 198.892302][ T6041] bcachefs (loop0): check_extents_to_backpointers... [ 198.892860][ T6041] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 198.898880][ T6041] done executing program executing program [ 199.226518][ T1311] ieee802154 phy0 wpan0: encryption failed: -22 [ 199.228693][ T1311] ieee802154 phy1 wpan1: encryption failed: -22 [ 199.274682][ T6041] bcachefs (loop0): check_alloc_to_lru_refs... done [ 199.278449][ T6041] bcachefs (loop0): bucket_gens_init... done [ 199.281566][ T6041] bcachefs (loop0): check_snapshot_trees... done [ 199.286824][ T6041] bcachefs (loop0): check_snapshots... done [ 199.289401][ T6041] bcachefs (loop0): check_subvols... done [ 199.291427][ T6041] bcachefs (loop0): check_subvol_children... done [ 199.294406][ T6041] bcachefs (loop0): delete_dead_snapshots... done [ 199.296645][ T6041] bcachefs (loop0): check_inodes... done [ 199.299258][ T6041] bcachefs (loop0): check_extents... done [ 199.302045][ T6041] bcachefs (loop0): check_indirect_extents... done [ 199.307327][ T6041] bcachefs (loop0): check_dirents... done [ 199.310159][ T6041] bcachefs (loop0): check_xattrs... done [ 199.312278][ T6041] bcachefs (loop0): check_root... done [ 199.314652][ T6041] bcachefs (loop0): check_unreachable_inodes... done [ 199.316754][ T6041] bcachefs (loop0): check_subvolume_structure... done [ 199.319092][ T6041] bcachefs (loop0): check_directory_structure... done [ 199.322060][ T6041] bcachefs (loop0): check_nlinks... done [ 199.325113][ T6041] bcachefs (loop0): resume_logged_ops... done [ 199.327571][ T6041] bcachefs (loop0): delete_dead_inodes... done [ 199.329975][ T6041] bcachefs (loop0): set_fs_needs_rebalance... done [ 199.336256][ T6041] bcachefs (loop0): done starting filesystem executing program [ 199.802906][ T5315] bcachefs (loop0): shutting down executing program executing program executing program executing program executing program [ 200.512585][ T5315] bcachefs (loop0): going read-only [ 200.521281][ T5315] bcachefs (loop0): finished waiting for writes to stop executing program executing program [ 200.633692][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 35 [ 200.637522][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 35 executing program [ 200.744930][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 36 [ 200.748458][ T5315] bcachefs (loop0): marking filesystem clean [ 201.266253][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 212.642254][ T6160] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 214.014229][ T6160] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 214.019544][ T6160] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 214.022493][ T6160] bcachefs (loop0): Version upgrade required: [ 214.022493][ T6160] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 214.022493][ T6160] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 214.022493][ T6160] 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,set_fs_needs_rebalance [ 214.050842][ T6160] bcachefs (loop0): error validating btree node at btree alloc level 0/0 executing program [ 214.050852][ T6160] 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 [ 214.050856][ T6160] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 214.584668][ T6160] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 214.584668][ T6160] btree=alloc level=0 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 [ 214.751297][ T6160] bcachefs (loop0): accounting_read... done [ 214.755755][ T6160] bcachefs (loop0): alloc_read... done [ 214.757838][ T6160] bcachefs (loop0): stripes_read... done executing program executing program [ 214.863633][ T6160] bcachefs (loop0): snapshots_read... done [ 214.865788][ T6160] bcachefs (loop0): check_allocations... [ 214.866894][ T6160] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 214.866904][ T6160] while marking 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 [ 214.878762][ T6160] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 214.878771][ T6160] while marking 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 [ 214.888300][ T6160] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 214.888313][ T6160] while marking 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 [ 214.898010][ T6160] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 214.898024][ T6160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 214.908439][ T6160] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 214.908452][ T6160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 214.917390][ T6160] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.920591][ T6160] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.924442][ T6160] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.927308][ T6160] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.930971][ T6160] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.934321][ T6160] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.937763][ T6160] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.940761][ T6160] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program executing program executing program [ 215.342686][ T6160] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.346209][ T6160] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.352504][ T6160] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.355840][ T6160] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.359443][ T6160] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.362346][ T6160] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.365675][ T6160] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.368477][ T6160] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 215.371151][ T6160] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.374040][ T6160] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.377717][ T6160] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.380953][ T6160] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.384827][ T6160] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.387839][ T6160] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.391383][ T6160] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.394685][ T6160] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.398237][ T6160] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.401335][ T6160] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.405011][ T6160] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.408269][ T6160] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.412023][ T6160] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.415440][ T6160] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.419177][ T6160] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.421743][ T6160] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.424781][ T6160] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.428571][ T6160] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.431975][ T6160] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing executing program [ 215.901204][ T6160] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.905247][ T6160] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.908475][ T6160] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.912264][ T6160] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.915910][ T6160] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.919697][ T6160] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.922912][ T6160] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.926659][ T6160] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.929738][ T6160] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.933937][ T6160] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.937092][ T6160] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.941005][ T6160] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.944917][ T6160] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.948828][ T6160] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 215.952331][ T6160] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 215.956786][ T6160] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 215.960059][ T6160] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 215.964535][ T6160] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 215.967896][ T6160] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 215.971062][ T6160] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 215.975376][ T6160] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 215.978648][ T6160] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 215.982472][ T6160] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 215.986273][ T6160] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 215.990569][ T6160] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.163554][ T6160] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.167396][ T6160] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.170898][ T6160] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.175388][ T6160] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.178656][ T6160] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.182703][ T6160] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.186709][ T6160] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.190522][ T6160] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.194108][ T6160] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.197970][ T6160] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.201108][ T6160] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.205353][ T6160] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.208415][ T6160] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.212041][ T6160] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 216.215429][ T6160] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 216.220367][ T6160] done [ 216.222457][ T6160] bcachefs (loop0): going read-write executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 216.335373][ T6160] bcachefs (loop0): journal_replay... done [ 218.020442][ T6160] bcachefs (loop0): check_alloc_info... done [ 218.027348][ T6160] bcachefs (loop0): check_lrus... done [ 218.029667][ T6160] bcachefs (loop0): check_btree_backpointers... done [ 218.032993][ T6160] bcachefs (loop0): check_backpointers_to_extents... done [ 218.038164][ T6160] bcachefs (loop0): check_extents_to_backpointers... [ 218.038886][ T6160] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 218.450407][ T6160] done [ 218.454474][ T6160] bcachefs (loop0): check_alloc_to_lru_refs... done [ 218.458130][ T6160] bcachefs (loop0): bucket_gens_init... done [ 218.463742][ T6160] bcachefs (loop0): check_snapshot_trees... done [ 218.466557][ T6160] bcachefs (loop0): check_snapshots... [ 218.466828][ T6160] snapshot points to missing/incorrect tree: [ 218.466839][ T6160] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 218.477324][ T6160] snapshot points to missing/incorrect tree: [ 218.477337][ T6160] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 218.488156][ T6160] done [ 218.492621][ T6160] bcachefs (loop0): check_subvols... done [ 218.497294][ T6160] bcachefs (loop0): check_subvol_children... done executing program executing program executing program [ 219.248045][ T6160] bcachefs (loop0): delete_dead_snapshots... done [ 219.253981][ T6160] bcachefs (loop0): check_inodes... done [ 219.261046][ T6160] bcachefs (loop0): check_extents... done [ 219.264347][ T6160] bcachefs (loop0): check_indirect_extents... done [ 219.267231][ T6160] bcachefs (loop0): check_dirents... done executing program executing program executing program [ 219.273788][ T6160] bcachefs (loop0): check_xattrs... done [ 219.276422][ T6160] bcachefs (loop0): check_root... done [ 219.278489][ T6160] bcachefs (loop0): check_unreachable_inodes... done [ 219.281296][ T6160] bcachefs (loop0): check_subvolume_structure... done [ 219.284349][ T6160] bcachefs (loop0): check_directory_structure... done [ 219.287530][ T6160] bcachefs (loop0): check_nlinks... [ 219.287856][ T6160] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 219.292956][ T6160] done executing program executing program executing program [ 219.994198][ T6160] bcachefs (loop0): resume_logged_ops... done [ 220.171094][ T6160] bcachefs (loop0): delete_dead_inodes... done [ 220.174970][ T6160] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program [ 220.785470][ T6160] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 220.788605][ T6160] bcachefs (loop0): check_alloc_info... done executing program [ 220.893679][ T6160] bcachefs (loop0): check_lrus... done [ 220.895910][ T6160] bcachefs (loop0): check_btree_backpointers... done [ 220.899219][ T6160] bcachefs (loop0): check_backpointers_to_extents... done [ 220.902450][ T6160] bcachefs (loop0): check_extents_to_backpointers... [ 220.903012][ T6160] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 220.909915][ T6160] done [ 220.911662][ T6160] bcachefs (loop0): check_alloc_to_lru_refs... done executing program [ 221.410414][ T6160] bcachefs (loop0): bucket_gens_init... done [ 221.413799][ T6160] bcachefs (loop0): check_snapshot_trees... done [ 221.416341][ T6160] bcachefs (loop0): check_snapshots... done [ 221.418626][ T6160] bcachefs (loop0): check_subvols... done [ 221.420980][ T6160] bcachefs (loop0): check_subvol_children... done [ 221.424057][ T6160] bcachefs (loop0): delete_dead_snapshots... done [ 221.426409][ T6160] bcachefs (loop0): check_inodes... done [ 221.428826][ T6160] bcachefs (loop0): check_extents... done [ 221.431592][ T6160] bcachefs (loop0): check_indirect_extents... done [ 221.435400][ T6160] bcachefs (loop0): check_dirents... done [ 221.438023][ T6160] bcachefs (loop0): check_xattrs... done [ 221.440158][ T6160] bcachefs (loop0): check_root... done [ 221.442494][ T6160] bcachefs (loop0): check_unreachable_inodes... done [ 221.445779][ T6160] bcachefs (loop0): check_subvolume_structure... done [ 221.448340][ T6160] bcachefs (loop0): check_directory_structure... done [ 221.450908][ T6160] bcachefs (loop0): check_nlinks... done [ 221.453971][ T6160] bcachefs (loop0): resume_logged_ops... done [ 221.456260][ T6160] bcachefs (loop0): delete_dead_inodes... done [ 221.458580][ T6160] bcachefs (loop0): set_fs_needs_rebalance... done [ 221.464242][ T6160] bcachefs (loop0): done starting filesystem [ 221.567690][ T5315] bcachefs (loop0): shutting down [ 221.569695][ T5315] bcachefs (loop0): going read-only [ 221.571632][ T5315] bcachefs (loop0): finished waiting for writes to stop [ 221.575286][ T5315] bcachefs (loop0): flushing journal and stopping allocators, journal seq 36 [ 221.581914][ T5315] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 36 executing program [ 221.685415][ T5315] bcachefs (loop0): clean shutdown complete, journal seq 37 [ 221.688927][ T5315] bcachefs (loop0): marking filesystem clean executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 223.015009][ T5315] bcachefs (loop0): shutdown complete executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 231.390476][ T6269] loop0: detected capacity change from 0 to 32768 executing program executing program executing program executing program executing program executing program executing program [ 232.872635][ T6269] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 232.877304][ T6269] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 232.879699][ T6269] bcachefs (loop0): Version upgrade required: [ 232.879699][ T6269] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 232.879699][ T6269] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 232.879699][ T6269] 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,set_fs_needs_rebalance [ 233.071845][ T6269] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 233.071858][ T6269] 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 [ 233.071863][ T6269] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 233.085965][ T6269] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 233.085965][ T6269] btree=alloc level=0 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 executing program executing program executing program executing program [ 233.272627][ T6269] bcachefs (loop0): accounting_read... done [ 233.275296][ T6269] bcachefs (loop0): alloc_read... done [ 233.277336][ T6269] bcachefs (loop0): stripes_read... done [ 233.279403][ T6269] bcachefs (loop0): snapshots_read... done [ 233.281641][ T6269] bcachefs (loop0): check_allocations... [ 233.287396][ T6269] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 233.287410][ T6269] while marking 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 [ 233.300499][ T6269] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 233.300512][ T6269] while marking 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 [ 233.311364][ T6269] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 233.311376][ T6269] while marking 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 [ 233.320786][ T6269] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 233.320798][ T6269] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 233.339807][ T6269] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 233.339822][ T6269] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 233.349146][ T6269] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.351692][ T6269] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.355339][ T6269] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.358276][ T6269] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.361554][ T6269] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.364835][ T6269] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.368231][ T6269] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.371001][ T6269] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.374780][ T6269] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.377953][ T6269] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.381527][ T6269] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.384702][ T6269] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.388506][ T6269] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.391949][ T6269] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.395344][ T6269] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.398400][ T6269] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 233.401627][ T6269] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.404634][ T6269] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.408642][ T6269] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.411958][ T6269] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.416049][ T6269] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.419427][ T6269] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.423371][ T6269] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.426696][ T6269] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.430581][ T6269] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.433951][ T6269] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.437800][ T6269] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.442799][ T6269] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.446678][ T6269] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.449951][ T6269] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.454003][ T6269] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.457134][ T6269] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.460753][ T6269] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.463728][ T6269] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.467517][ T6269] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.470537][ T6269] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.474433][ T6269] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.477595][ T6269] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.481046][ T6269] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.484184][ T6269] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.487636][ T6269] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.490453][ T6269] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.493843][ T6269] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.496864][ T6269] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.500592][ T6269] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.503672][ T6269] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.507072][ T6269] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.510097][ T6269] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.513726][ T6269] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.516948][ T6269] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 233.520530][ T6269] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.523774][ T6269] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 233.527269][ T6269] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 233.530189][ T6269] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.533479][ T6269] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 233.537897][ T6269] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.540942][ T6269] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 233.550378][ T6269] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 233.553116][ T6269] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing [ 233.556962][ T6269] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.560100][ T6269] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.563860][ T6269] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.567052][ T6269] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.570804][ T6269] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.573567][ T6269] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.577233][ T6269] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.580207][ T6269] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.583766][ T6269] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.586709][ T6269] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.590263][ T6269] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.593064][ T6269] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.596782][ T6269] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.599791][ T6269] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.603784][ T6269] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.607087][ T6269] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.611566][ T6269] done [ 233.620518][ T6269] bcachefs (loop0): going read-write executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 233.622986][ T6269] bcachefs (loop0): journal_replay... done [ 235.276310][ T6269] bcachefs (loop0): check_alloc_info... done [ 235.291971][ T6269] bcachefs (loop0): check_lrus... done [ 235.294632][ T6269] bcachefs (loop0): check_btree_backpointers... done [ 235.297597][ T6269] bcachefs (loop0): check_backpointers_to_extents... done [ 235.303762][ T6269] bcachefs (loop0): check_extents_to_backpointers... [ 235.304300][ T6269] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 235.309996][ T6269] done [ 235.312465][ T6269] bcachefs (loop0): check_alloc_to_lru_refs... done [ 235.316383][ T6269] bcachefs (loop0): bucket_gens_init... done executing program [ 235.505933][ T6269] bcachefs (loop0): check_snapshot_trees... done [ 235.508874][ T6269] bcachefs (loop0): check_snapshots... [ 235.509167][ T6269] snapshot points to missing/incorrect tree: [ 235.509178][ T6269] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 235.519356][ T6269] snapshot points to missing/incorrect tree: [ 235.519367][ T6269] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing [ 235.529830][ T6269] done executing program executing program [ 235.901357][ T6269] bcachefs (loop0): check_subvols... done executing program [ 235.907100][ T6269] bcachefs (loop0): check_subvol_children... done [ 235.912311][ T6269] bcachefs (loop0): delete_dead_snapshots... done [ 235.916956][ T6269] bcachefs (loop0): check_inodes... done [ 235.925031][ T6269] bcachefs (loop0): check_extents... done [ 235.927987][ T6269] bcachefs (loop0): check_indirect_extents... done [ 235.930626][ T6269] bcachefs (loop0): check_dirents... done [ 235.936075][ T6269] bcachefs (loop0): check_xattrs... done [ 235.938839][ T6269] bcachefs (loop0): check_root... done [ 235.941374][ T6269] bcachefs (loop0): check_unreachable_inodes... done [ 235.944657][ T6269] bcachefs (loop0): check_subvolume_structure... done [ 236.123817][ T6269] bcachefs (loop0): check_directory_structure... done executing program executing program [ 236.315979][ T6269] bcachefs (loop0): check_nlinks... [ 236.316386][ T6269] inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 236.321780][ T6269] done [ 236.324231][ T6269] bcachefs (loop0): resume_logged_ops... done [ 236.326429][ T6269] bcachefs (loop0): delete_dead_inodes... done [ 236.329031][ T6269] bcachefs (loop0): set_fs_needs_rebalance... done executing program executing program executing program executing program executing program executing program executing program executing program [ 238.230805][ T6269] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 238.235493][ T6269] bcachefs (loop0): check_alloc_info... done [ 238.240254][ T6269] bcachefs (loop0): check_lrus... done [ 238.242386][ T6269] bcachefs (loop0): check_btree_backpointers... done [ 238.246272][ T6269] bcachefs (loop0): check_backpointers_to_extents... done [ 238.249499][ T6269] bcachefs (loop0): check_extents_to_backpointers... [ 238.250030][ T6269] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 238.256272][ T6269] done [ 238.259476][ T6269] bcachefs (loop0): check_alloc_to_lru_refs... done [ 238.262656][ T6269] bcachefs (loop0): bucket_gens_init... done [ 238.266163][ T6269] bcachefs (loop0): check_snapshot_trees... done [ 238.268827][ T6269] bcachefs (loop0): check_snapshots... done [ 238.271148][ T6269] bcachefs (loop0): check_subvols... done [ 238.273503][ T6269] bcachefs (loop0): check_subvol_children... done [ 238.276061][ T6269] bcachefs (loop0): delete_dead_snapshots... done [ 238.278474][ T6269] bcachefs (loop0): check_inodes... done [ 238.281006][ T6269] bcachefs (loop0): check_extents... done [ 238.283661][ T6269] bcachefs (loop0): check_indirect_extents... done [ 238.286177][ T6269] bcachefs (loop0): check_dirents... done [ 238.288841][ T6269] bcachefs (loop0): check_xattrs... done [ 238.291043][ T6269] bcachefs (loop0): check_root... done [ 238.293352][ T6269] bcachefs (loop0): check_unreachable_inodes... done [ 238.295983][ T6269] bcachefs (loop0): check_subvolume_structure... done [ 238.298569][ T6269] bcachefs (loop0): check_directory_structure... done [ 238.301421][ T6269] bcachefs (loop0): check_nlinks... done [ 238.303997][ T6269] bcachefs (loop0): resume_logged_ops... done [ 238.306388][ T6269] bcachefs (loop0): delete_dead_inodes... done [ 238.308780][ T6269] bcachefs (loop0): set_fs_needs_rebalance... done [ 238.315426][ T6269] bcachefs (loop0): bch2_copygc_start(): error creating copygc thread EINTR [ 238.318884][ T6269] bcachefs (loop0): error starting copygc thread [ 238.321317][ T6269] bcachefs (loop0): bch2_fs_start(): error starting filesystem EINTR [ 238.324585][ T6269] bcachefs (loop0): shutting down [ 238.326303][ T6269] bcachefs (loop0): going read-only [ 238.330718][ T6269] bcachefs (loop0): finished waiting for writes to stop [ 238.333577][ T6269] bcachefs (loop0): flushing journal and stopping allocators, journal seq 31 [ 238.339649][ T6269] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 32 [ 238.345055][ T6269] bcachefs (loop0): clean shutdown complete, journal seq 33 [ 238.348487][ T6269] bcachefs (loop0): marking filesystem clean [ 238.358160][ T6269] bcachefs (loop0): shutdown complete [ 238.360524][ T1139] ================================================================== [ 238.363589][ T1139] BUG: KASAN: slab-use-after-free in percpu_ref_put+0xda/0x250 [ 238.366459][ T1139] Read of size 8 at addr ffff8880411520b0 by task kworker/u4:11/1139 [ 238.370342][ T1139] [ 238.371308][ T1139] CPU: 0 UID: 0 PID: 1139 Comm: kworker/u4:11 Not tainted 6.14.0-rc1-syzkaller #0 [ 238.371323][ T1139] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 238.371332][ T1139] Workqueue: loop0 loop_rootcg_workfn [ 238.371349][ T1139] Call Trace: [ 238.371355][ T1139] [ 238.371361][ T1139] dump_stack_lvl+0x241/0x360 [ 238.371376][ T1139] ? __pfx_dump_stack_lvl+0x10/0x10 [ 238.371388][ T1139] ? __pfx__printk+0x10/0x10 [ 238.371405][ T1139] ? _printk+0xd5/0x120 [ 238.371421][ T1139] ? __virt_addr_valid+0x183/0x530 [ 238.371437][ T1139] ? __virt_addr_valid+0x183/0x530 [ 238.371454][ T1139] print_report+0x169/0x550 [ 238.371471][ T1139] ? __virt_addr_valid+0x183/0x530 [ 238.371490][ T1139] ? __virt_addr_valid+0x183/0x530 [ 238.371504][ T1139] ? __virt_addr_valid+0x45f/0x530 [ 238.371519][ T1139] ? __phys_addr+0xba/0x170 [ 238.371533][ T1139] ? percpu_ref_put+0xda/0x250 [ 238.371549][ T1139] kasan_report+0x143/0x180 [ 238.371565][ T1139] ? percpu_ref_put+0xda/0x250 [ 238.371579][ T1139] ? percpu_ref_put+0x1f/0x250 [ 238.371592][ T1139] percpu_ref_put+0xda/0x250 [ 238.371607][ T1139] blk_update_request+0x5e5/0x1160 [ 238.371622][ T1139] blk_mq_end_request+0x3e/0x70 [ 238.371633][ T1139] loop_process_work+0x1bc8/0x21c0 [ 238.371651][ T1139] ? __pfx_loop_process_work+0x10/0x10 [ 238.371662][ T1139] ? register_lock_class+0x102/0x980 [ 238.371678][ T1139] ? __pfx_register_lock_class+0x10/0x10 [ 238.371693][ T1139] ? mark_lock+0x9a/0x360 [ 238.371708][ T1139] ? debug_object_deactivate+0x2d5/0x390 [ 238.371723][ T1139] ? do_raw_spin_unlock+0x58/0x8b0 [ 238.371740][ T1139] ? __pfx_lock_acquire+0x10/0x10 [ 238.371754][ T1139] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 238.371770][ T1139] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 238.371787][ T1139] ? process_scheduled_works+0x976/0x1840 [ 238.371800][ T1139] process_scheduled_works+0xa66/0x1840 [ 238.371819][ T1139] ? __pfx_process_scheduled_works+0x10/0x10 [ 238.371834][ T1139] ? assign_work+0x364/0x3d0 [ 238.371847][ T1139] worker_thread+0x870/0xd30 [ 238.371863][ T1139] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 238.371936][ T1139] ? __kthread_parkme+0x169/0x1d0 [ 238.371951][ T1139] ? __pfx_worker_thread+0x10/0x10 [ 238.371963][ T1139] kthread+0x7a9/0x920 [ 238.371978][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.371992][ T1139] ? __pfx_worker_thread+0x10/0x10 [ 238.372005][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.372017][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.372032][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.372045][ T1139] ? _raw_spin_unlock_irq+0x23/0x50 [ 238.372056][ T1139] ? lockdep_hardirqs_on+0x99/0x150 [ 238.372069][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.372083][ T1139] ret_from_fork+0x4b/0x80 [ 238.372097][ T1139] ? __pfx_kthread+0x10/0x10 [ 238.372111][ T1139] ret_from_fork_asm+0x1a/0x30 [ 238.372127][ T1139] [ 238.372131][ T1139] [ 238.475452][ T1139] Allocated by task 6269: [ 238.477125][ T1139] kasan_save_track+0x3f/0x80 [ 238.478896][ T1139] __kasan_kmalloc+0x98/0xb0 [ 238.480723][ T1139] __kmalloc_cache_noprof+0x243/0x390 [ 238.482872][ T1139] __bch2_dev_alloc+0x57/0xa60 [ 238.484790][ T1139] bch2_dev_alloc+0xd4/0x170 [ 238.486823][ T1139] bch2_fs_open+0x2c0d/0x2d50 [ 238.488728][ T1139] bch2_fs_get_tree+0x738/0x1740 [ 238.490579][ T1139] vfs_get_tree+0x90/0x2b0 [ 238.492433][ T1139] do_new_mount+0x2be/0xb40 [ 238.494253][ T1139] __se_sys_mount+0x2d6/0x3c0 [ 238.496202][ T1139] do_syscall_64+0xf3/0x230 [ 238.497879][ T1139] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 238.500227][ T1139] [ 238.501222][ T1139] Freed by task 6269: [ 238.502775][ T1139] kasan_save_track+0x3f/0x80 [ 238.504372][ T1139] kasan_save_free_info+0x40/0x50 [ 238.506318][ T1139] __kasan_slab_free+0x59/0x70 [ 238.508264][ T1139] kfree+0x196/0x430 [ 238.509850][ T1139] kobject_put+0x22f/0x480 [ 238.511604][ T1139] bch2_fs_free+0x27b/0x3c0 [ 238.513431][ T1139] bch2_fs_get_tree+0xdc4/0x1740 [ 238.515337][ T1139] vfs_get_tree+0x90/0x2b0 [ 238.517100][ T1139] do_new_mount+0x2be/0xb40 [ 238.518788][ T1139] __se_sys_mount+0x2d6/0x3c0 [ 238.520589][ T1139] do_syscall_64+0xf3/0x230 [ 238.522364][ T1139] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 238.524540][ T1139] [ 238.525464][ T1139] Last potentially related work creation: [ 238.527717][ T1139] kasan_save_stack+0x3f/0x60 [ 238.529636][ T1139] kasan_record_aux_stack+0xaa/0xc0 [ 238.531561][ T1139] insert_work+0x3e/0x330 [ 238.533257][ T1139] __queue_work+0xc8b/0xf50 [ 238.535026][ T1139] queue_work_on+0x1c2/0x380 [ 238.536752][ T1139] bch2_dev_do_discards+0x17a/0x1f0 [ 238.538707][ T1139] bch2_do_discards+0x29/0x60 [ 238.540550][ T1139] journal_write_done+0x785/0xea0 [ 238.542460][ T1139] process_scheduled_works+0xa66/0x1840 [ 238.544601][ T1139] worker_thread+0x870/0xd30 [ 238.546351][ T1139] kthread+0x7a9/0x920 [ 238.547903][ T1139] ret_from_fork+0x4b/0x80 [ 238.549648][ T1139] ret_from_fork_asm+0x1a/0x30 [ 238.551546][ T1139] [ 238.552470][ T1139] Second to last potentially related work creation: [ 238.554920][ T1139] kasan_save_stack+0x3f/0x60 [ 238.556700][ T1139] kasan_record_aux_stack+0xaa/0xc0 [ 238.558467][ T1139] insert_work+0x3e/0x330 [ 238.559941][ T1139] __queue_work+0xc8b/0xf50 [ 238.561631][ T1139] queue_work_on+0x1c2/0x380 [ 238.563473][ T1139] bch2_dev_do_discards+0x17a/0x1f0 [ 238.565433][ T1139] bch2_do_discards+0x29/0x60 [ 238.567282][ T1139] journal_write_done+0x785/0xea0 [ 238.569229][ T1139] process_scheduled_works+0xa66/0x1840 [ 238.571396][ T1139] worker_thread+0x870/0xd30 [ 238.573222][ T1139] kthread+0x7a9/0x920 [ 238.574826][ T1139] ret_from_fork+0x4b/0x80 [ 238.576609][ T1139] ret_from_fork_asm+0x1a/0x30 [ 238.578478][ T1139] [ 238.579413][ T1139] The buggy address belongs to the object at ffff888041152000 [ 238.579413][ T1139] which belongs to the cache kmalloc-4k of size 4096 [ 238.584627][ T1139] The buggy address is located 176 bytes inside of [ 238.584627][ T1139] freed 4096-byte region [ffff888041152000, ffff888041153000) [ 238.589800][ T1139] [ 238.590702][ T1139] The buggy address belongs to the physical page: [ 238.593246][ T1139] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x41150 [ 238.596587][ T1139] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 238.599916][ T1139] flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) [ 238.602859][ T1139] page_type: f5(slab) [ 238.604145][ T1139] raw: 04fff00000000040 ffff88801ac42140 dead000000000100 dead000000000122 [ 238.607169][ T1139] raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 [ 238.610291][ T1139] head: 04fff00000000040 ffff88801ac42140 dead000000000100 dead000000000122 [ 238.613644][ T1139] head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 [ 238.617010][ T1139] head: 04fff00000000003 ffffea0001045401 ffffffffffffffff 0000000000000000 [ 238.620152][ T1139] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 238.623530][ T1139] page dumped because: kasan: bad access detected [ 238.626025][ T1139] page_owner tracks the page as allocated [ 238.628050][ T1139] page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4739, tgid 4739 (udevd), ts 34759308669, free_ts 34749372512 [ 238.635650][ T1139] post_alloc_hook+0x1f4/0x240 [ 238.637434][ T1139] get_page_from_freelist+0x365c/0x37a0 [ 238.639397][ T1139] __alloc_frozen_pages_noprof+0x292/0x710 [ 238.641679][ T1139] alloc_pages_mpol+0x311/0x660 [ 238.643558][ T1139] allocate_slab+0x8f/0x3a0 [ 238.645368][ T1139] ___slab_alloc+0xc27/0x14a0 [ 238.647291][ T1139] __slab_alloc+0x58/0xa0 [ 238.648935][ T1139] __kmalloc_cache_noprof+0x27b/0x390 [ 238.650827][ T1139] uevent_show+0x163/0x340 [ 238.652483][ T1139] dev_attr_show+0x55/0xc0 [ 238.654014][ T1139] sysfs_kf_seq_show+0x331/0x4c0 [ 238.655753][ T1139] seq_read_iter+0x43f/0xd70 [ 238.657294][ T1139] vfs_read+0x975/0xb40 [ 238.658565][ T1139] ksys_read+0x18f/0x2b0 [ 238.660120][ T1139] do_syscall_64+0xf3/0x230 [ 238.661770][ T1139] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 238.664036][ T1139] page last free pid 4741 tgid 4741 stack trace: [ 238.666421][ T1139] free_frozen_pages+0xe0d/0x10e0 [ 238.668345][ T1139] __put_partials+0x160/0x1c0 [ 238.670192][ T1139] put_cpu_partial+0x17c/0x250 [ 238.672019][ T1139] __slab_free+0x290/0x380 [ 238.673725][ T1139] qlist_free_all+0x9a/0x140 [ 238.675449][ T1139] kasan_quarantine_reduce+0x14f/0x170 [ 238.677606][ T1139] __kasan_slab_alloc+0x23/0x80 [ 238.679488][ T1139] kmem_cache_alloc_noprof+0x1d9/0x380 [ 238.681528][ T1139] getname_flags+0xb7/0x540 [ 238.683153][ T1139] do_sys_openat2+0xd2/0x1d0 [ 238.684984][ T1139] __x64_sys_openat+0x247/0x2a0 [ 238.686578][ T1139] do_syscall_64+0xf3/0x230 [ 238.688094][ T1139] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 238.690072][ T1139] [ 238.690876][ T1139] Memory state around the buggy address: [ 238.692762][ T1139] ffff888041151f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 238.695625][ T1139] ffff888041152000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 238.698701][ T1139] >ffff888041152080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 238.701648][ T1139] ^ [ 238.703699][ T1139] ffff888041152100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 238.706851][ T1139] ffff888041152180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 238.709833][ T1139] ================================================================== executing program executing program executing program executing program executing program [ 239.636168][ T1139] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 239.639046][ T1139] CPU: 0 UID: 0 PID: 1139 Comm: kworker/u4:11 Not tainted 6.14.0-rc1-syzkaller #0 [ 239.642616][ T1139] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 239.646619][ T1139] Workqueue: loop0 loop_rootcg_workfn [ 239.648602][ T1139] Call Trace: [ 239.649862][ T1139] [ 239.651016][ T1139] dump_stack_lvl+0x241/0x360 [ 239.652806][ T1139] ? __pfx_dump_stack_lvl+0x10/0x10 [ 239.654751][ T1139] ? __pfx__printk+0x10/0x10 [ 239.656731][ T1139] ? preempt_schedule+0xe1/0xf0 [ 239.658437][ T1139] ? vscnprintf+0x5d/0x90 [ 239.660087][ T1139] panic+0x349/0x880 [ 239.661578][ T1139] ? check_panic_on_warn+0x21/0xb0 [ 239.663279][ T1139] ? __pfx_panic+0x10/0x10 [ 239.664892][ T1139] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 239.666934][ T1139] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 239.669079][ T1139] ? print_report+0x502/0x550 [ 239.670801][ T1139] check_panic_on_warn+0x86/0xb0 [ 239.672454][ T1139] ? percpu_ref_put+0xda/0x250 [ 239.674151][ T1139] end_report+0x77/0x160 [ 239.675725][ T1139] kasan_report+0x154/0x180 [ 239.677584][ T1139] ? percpu_ref_put+0xda/0x250 [ 239.679448][ T1139] ? percpu_ref_put+0x1f/0x250 [ 239.681337][ T1139] percpu_ref_put+0xda/0x250 [ 239.683058][ T1139] blk_update_request+0x5e5/0x1160 [ 239.684981][ T1139] blk_mq_end_request+0x3e/0x70 [ 239.686887][ T1139] loop_process_work+0x1bc8/0x21c0 [ 239.688935][ T1139] ? __pfx_loop_process_work+0x10/0x10 [ 239.690997][ T1139] ? register_lock_class+0x102/0x980 [ 239.692817][ T1139] ? __pfx_register_lock_class+0x10/0x10 [ 239.694787][ T1139] ? mark_lock+0x9a/0x360 [ 239.696359][ T1139] ? debug_object_deactivate+0x2d5/0x390 [ 239.698359][ T1139] ? do_raw_spin_unlock+0x58/0x8b0 [ 239.700333][ T1139] ? __pfx_lock_acquire+0x10/0x10 [ 239.702312][ T1139] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 239.704503][ T1139] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 239.706821][ T1139] ? process_scheduled_works+0x976/0x1840 [ 239.708952][ T1139] process_scheduled_works+0xa66/0x1840 [ 239.710976][ T1139] ? __pfx_process_scheduled_works+0x10/0x10 [ 239.713270][ T1139] ? assign_work+0x364/0x3d0 [ 239.714962][ T1139] worker_thread+0x870/0xd30 [ 239.716700][ T1139] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 239.718853][ T1139] ? __kthread_parkme+0x169/0x1d0 [ 239.720693][ T1139] ? __pfx_worker_thread+0x10/0x10 [ 239.722489][ T1139] kthread+0x7a9/0x920 [ 239.724021][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.725817][ T1139] ? __pfx_worker_thread+0x10/0x10 [ 239.728068][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.729933][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.731712][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.733446][ T1139] ? _raw_spin_unlock_irq+0x23/0x50 [ 239.735435][ T1139] ? lockdep_hardirqs_on+0x99/0x150 [ 239.737454][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.739146][ T1139] ret_from_fork+0x4b/0x80 [ 239.740782][ T1139] ? __pfx_kthread+0x10/0x10 [ 239.742474][ T1139] ret_from_fork_asm+0x1a/0x30 [ 239.744264][ T1139] [ 239.745539][ T1139] Kernel Offset: disabled [ 239.747062][ T1139] Rebooting in 86400 seconds.. VM DIAGNOSIS: 17:52:01 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000020 RBX=ffffffff9a7460a0 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000286ed50 R8 =ffffffff8576be6b R9 =1ffff110065a1046 R10=dffffc0000000000 R11=ffffffff8576be20 R12=dffffc0000000000 R13=0000000000000020 R14=0000000000000020 R15=00000000000003f8 RIP=ffffffff8576be9e RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 ffffffff 00c00000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 ffffffff 00c00000 FS =0000 0000000000000000 ffffffff 00c00000 GS =0000 ffff88801fc00000 ffffffff 00c00000 LDT=0000 0000000000000000 ffffffff 00c00000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007fef44a3b1f8 CR3=0000000040f98000 CR4=00352ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000fffe0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 Opmask00=0000000000440401 Opmask01=0000000000000001 Opmask02=00000000fff7ffff Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffea6864b30 0000003000000018 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffffffffffff ffffffff0f0e0d0c ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM16=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM17=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2525252525252525 2525252525252525 2525252525252525 2525252525252525 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 65723d73726f7272 6500747865003036 36396f7369007265 6c6c616b7a797300 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 40571856574a5757 4000515d40001513 131c4a564c005740 4949444e5f5c5600 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM27=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM28=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM29=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM30=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM31=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000