Warning: Permanently added '[localhost]:61884' (ED25519) to the list of known hosts. executing program [ 68.538393][ T5302] loop0: detected capacity change from 0 to 32768 [ 68.604323][ T5302] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,nocow [ 68.611335][ T5302] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 68.616427][ T5302] bcachefs (loop0): Version upgrade required: [ 68.616427][ T5302] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 68.616427][ T5302] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 68.616427][ T5302] 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 [ 68.651091][ T5302] bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 68.651117][ T5302] 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 [ 68.651126][ T5302] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 68.666592][ T5302] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 68.666592][ T5302] btree=dirents level=0 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 [ 68.675823][ T5302] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 68.675838][ T5302] 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 [ 68.675846][ T5302] 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 [ 68.690644][ T5302] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 68.690644][ T5302] 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 [ 68.703289][ T5302] bcachefs (loop0): accounting_read... done [ 68.706489][ T5302] bcachefs (loop0): alloc_read... done [ 68.708206][ T5302] bcachefs (loop0): stripes_read... done [ 68.710599][ T5302] bcachefs (loop0): snapshots_read... done [ 68.713184][ T5302] bcachefs (loop0): check_allocations... [ 68.716654][ T5302] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 68.716676][ T5302] 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 [ 68.728535][ T5302] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 68.728549][ T5302] 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 [ 68.738842][ T5302] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 68.738856][ T5302] 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 [ 68.748678][ T5302] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 68.748691][ T5302] 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 [ 68.760980][ T5302] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 68.760989][ T5302] 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 [ 68.770244][ T5302] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.773262][ T5302] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.777874][ T5302] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.781963][ T5302] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.785493][ T5302] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.788558][ T5302] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.793144][ T5302] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.796203][ T5302] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.800034][ T5302] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.802937][ T5302] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.806209][ T5302] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.809202][ T5302] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.813504][ T5302] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.816438][ T5302] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.820190][ T5302] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.823836][ T5302] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 68.827213][ T5302] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.830598][ T5302] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.834660][ T5302] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.837945][ T5302] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.842466][ T5302] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.846109][ T5302] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.850185][ T5302] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.852911][ T5302] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.857725][ T5302] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.862539][ T5302] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.866421][ T5302] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.870086][ T5302] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.873698][ T5302] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.876606][ T5302] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.880680][ T5302] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.883634][ T5302] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.886728][ T5302] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.890292][ T5302] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.894123][ T5302] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.897123][ T5302] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.901288][ T5302] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.904211][ T5302] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.907597][ T5302] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.911144][ T5302] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.914662][ T5302] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.917581][ T5302] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.921215][ T5302] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.924144][ T5302] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.927796][ T5302] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 68.931384][ T5302] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 68.934826][ T5302] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 68.937888][ T5302] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 68.942081][ T5302] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 68.945095][ T5302] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 68.948543][ T5302] bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 68.952732][ T5302] bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 68.956385][ T5302] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 68.960014][ T5302] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 68.963737][ T5302] bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 68.967291][ T5302] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 68.970981][ T5302] bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 68.974640][ T5302] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 68.977674][ T5302] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 68.981777][ T5302] bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 68.985803][ T5302] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 68.989405][ T5302] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 68.995402][ T5302] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.000239][ T5302] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.004607][ T5302] bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.009423][ T5302] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.013306][ T5302] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.016549][ T5302] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.020062][ T5302] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.024078][ T5302] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.027154][ T5302] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.031433][ T5302] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.034692][ T5302] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.038312][ T5302] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.041554][ T5302] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.045471][ T5302] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.048397][ T5302] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.052304][ T5302] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.055319][ T5302] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.058888][ T5302] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.062170][ T5302] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.067309][ T5302] done [ 69.069877][ T5302] bcachefs (loop0): going read-write [ 69.076876][ T5302] bcachefs (loop0): journal_replay... done [ 69.301785][ T5302] bcachefs (loop0): check_alloc_info... done [ 69.307731][ T5302] bcachefs (loop0): check_lrus... done [ 69.311082][ T5302] bcachefs (loop0): check_btree_backpointers... done [ 69.314594][ T5302] bcachefs (loop0): check_backpointers_to_extents... done [ 69.320142][ T5302] bcachefs (loop0): check_extents_to_backpointers... [ 69.321293][ T5302] bcachefs (loop0): scanning for missing backpointers in 8/128 buckets [ 69.327860][ T5302] done [ 69.330375][ T5302] bcachefs (loop0): check_alloc_to_lru_refs... [ 69.331364][ T5302] missing fragmentation lru entry [ 69.331383][ T5302] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 69.331390][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.331397][ T5302] journal_seq_nonempty 4 [ 69.331402][ T5302] journal_seq_empty 0 [ 69.331407][ T5302] need_discard 1 [ 69.331413][ T5302] need_inc_gen 1 [ 69.331418][ T5302] dirty_sectors 32 [ 69.331425][ T5302] stripe_sectors 0 [ 69.331430][ T5302] cached_sectors 0 [ 69.331436][ T5302] stripe 0 [ 69.331442][ T5302] stripe_redundancy 0 [ 69.331447][ T5302] io_time[READ] 1 [ 69.331453][ T5302] io_time[WRITE] 256 [ 69.331459][ T5302] fragmentation 268435456 [ 69.331465][ T5302] bp_start 8 [ 69.331470][ T5302] , fixing [ 69.369983][ T5302] missing fragmentation lru entry [ 69.369995][ T5302] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 69.370001][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.370007][ T5302] journal_seq_nonempty 4 [ 69.370013][ T5302] journal_seq_empty 0 [ 69.370018][ T5302] need_discard 1 [ 69.370023][ T5302] need_inc_gen 1 [ 69.370029][ T5302] dirty_sectors 32 [ 69.370034][ T5302] stripe_sectors 0 [ 69.370041][ T5302] cached_sectors 0 [ 69.370046][ T5302] stripe 0 [ 69.370053][ T5302] stripe_redundancy 0 [ 69.370059][ T5302] io_time[READ] 1 [ 69.370065][ T5302] io_time[WRITE] 512 [ 69.370071][ T5302] fragmentation 268435456 [ 69.370076][ T5302] bp_start 8 [ 69.370082][ T5302] , fixing [ 69.405292][ T5302] missing fragmentation lru entry [ 69.405305][ T5302] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 69.405311][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.405317][ T5302] journal_seq_nonempty 1 [ 69.405322][ T5302] journal_seq_empty 0 [ 69.405328][ T5302] need_discard 1 [ 69.405334][ T5302] need_inc_gen 1 [ 69.405340][ T5302] dirty_sectors 32 [ 69.405346][ T5302] stripe_sectors 0 [ 69.405352][ T5302] cached_sectors 0 [ 69.405357][ T5302] stripe 0 [ 69.405363][ T5302] stripe_redundancy 0 [ 69.405368][ T5302] io_time[READ] 1 [ 69.405374][ T5302] io_time[WRITE] 1 [ 69.405380][ T5302] fragmentation 268435456 [ 69.405386][ T5302] bp_start 8 [ 69.405392][ T5302] , fixing [ 69.437990][ T5302] missing fragmentation lru entry [ 69.438004][ T5302] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 69.438009][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.438014][ T5302] journal_seq_nonempty 0 [ 69.438020][ T5302] journal_seq_empty 0 [ 69.438025][ T5302] need_discard 0 [ 69.438030][ T5302] need_inc_gen 0 [ 69.438035][ T5302] dirty_sectors 32 [ 69.438041][ T5302] stripe_sectors 0 [ 69.438047][ T5302] cached_sectors 0 [ 69.438053][ T5302] stripe 0 [ 69.438059][ T5302] stripe_redundancy 0 [ 69.438065][ T5302] io_time[READ] 0 [ 69.438071][ T5302] io_time[WRITE] 0 [ 69.438077][ T5302] fragmentation 268435456 [ 69.438083][ T5302] bp_start 8 [ 69.438088][ T5302] , fixing [ 69.471624][ T5302] missing fragmentation lru entry [ 69.471637][ T5302] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 69.471644][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.471650][ T5302] journal_seq_nonempty 0 [ 69.471655][ T5302] journal_seq_empty 0 [ 69.471661][ T5302] need_discard 0 [ 69.471667][ T5302] need_inc_gen 0 [ 69.471673][ T5302] dirty_sectors 32 [ 69.471679][ T5302] stripe_sectors 0 [ 69.471684][ T5302] cached_sectors 0 [ 69.471690][ T5302] stripe 0 [ 69.471696][ T5302] stripe_redundancy 0 [ 69.471702][ T5302] io_time[READ] 0 [ 69.471707][ T5302] io_time[WRITE] 0 [ 69.471713][ T5302] fragmentation 268435456 [ 69.471719][ T5302] bp_start 8 [ 69.471724][ T5302] , fixing [ 69.503322][ T5302] missing fragmentation lru entry [ 69.503336][ T5302] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 69.503343][ T5302] gen 0 oldest_gen 0 data_type btree [ 69.503349][ T5302] journal_seq_nonempty 7 [ 69.503355][ T5302] journal_seq_empty 0 [ 69.503361][ T5302] need_discard 1 [ 69.503367][ T5302] need_inc_gen 1 [ 69.503373][ T5302] dirty_sectors 32 [ 69.503379][ T5302] stripe_sectors 0 [ 69.503385][ T5302] cached_sectors 0 [ 69.503390][ T5302] stripe 0 [ 69.503396][ T5302] stripe_redundancy 0 [ 69.503401][ T5302] io_time[READ] 1 [ 69.503407][ T5302] io_time[WRITE] 1280 [ 69.503413][ T5302] fragmentation 268435456 [ 69.503419][ T5302] bp_start 8 [ 69.503424][ T5302] , fixing [ 69.535674][ T5302] done [ 69.543839][ T5302] bcachefs (loop0): bucket_gens_init... done [ 69.547758][ T5302] bcachefs (loop0): check_snapshot_trees... done [ 69.550916][ T5302] bcachefs (loop0): check_snapshots... [ 69.551199][ T5302] snapshot points to missing/incorrect tree: [ 69.551209][ T5302] 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 [ 69.562297][ T5302] snapshot points to missing/incorrect tree: [ 69.562310][ T5302] 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 [ 69.575416][ T1036] bcachefs (loop0): journal_entry_open(): fatal error cannot start: journal seq overflow [ 69.579240][ T1036] [ 69.580214][ T1036] ============================================ [ 69.582461][ T1036] WARNING: possible recursive locking detected [ 69.584791][ T1036] 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 Not tainted [ 69.588209][ T1036] -------------------------------------------- [ 69.590560][ T1036] kworker/u4:7/1036 is trying to acquire lock: [ 69.592881][ T1036] ffff888044cca980 (&j->lock){+.+.}-{3:3}, at: bch2_journal_halt+0x2f/0x110 [ 69.596112][ T1036] [ 69.596112][ T1036] but task is already holding lock: [ 69.598880][ T1036] ffff888044cca980 (&j->lock){+.+.}-{3:3}, at: __journal_res_get+0x497/0x26b0 [ 69.602323][ T1036] [ 69.602323][ T1036] other info that might help us debug this: [ 69.605350][ T1036] Possible unsafe locking scenario: [ 69.605350][ T1036] [ 69.608201][ T1036] CPU0 [ 69.609572][ T1036] ---- [ 69.610785][ T1036] lock(&j->lock); [ 69.612273][ T1036] lock(&j->lock); [ 69.613800][ T1036] [ 69.613800][ T1036] *** DEADLOCK *** [ 69.613800][ T1036] [ 69.616875][ T1036] May be due to missing lock nesting notation [ 69.616875][ T1036] [ 69.620114][ T1036] 5 locks held by kworker/u4:7/1036: [ 69.622144][ T1036] #0: ffff888043693948 ((wq_completion)btree_update){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 [ 69.626549][ T1036] #1: ffffc9000269fc60 ((work_completion)(&c->btree_interior_update_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 [ 69.631523][ T1036] #2: ffff888044c84378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e4/0xd30 [ 69.635324][ T1036] #3: ffff88804430c140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9ca/0x1d90 [ 69.638720][ T1036] #4: ffff888044cca980 (&j->lock){+.+.}-{3:3}, at: __journal_res_get+0x497/0x26b0 [ 69.641941][ T1036] [ 69.641941][ T1036] stack backtrace: [ 69.644184][ T1036] CPU: 0 UID: 0 PID: 1036 Comm: kworker/u4:7 Not tainted 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 [ 69.644198][ T1036] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 69.644205][ T1036] Workqueue: btree_update btree_interior_update_work [ 69.644222][ T1036] Call Trace: [ 69.644230][ T1036] [ 69.644235][ T1036] dump_stack_lvl+0x241/0x360 [ 69.644251][ T1036] ? __pfx_dump_stack_lvl+0x10/0x10 [ 69.644264][ T1036] ? __pfx__printk+0x10/0x10 [ 69.644276][ T1036] ? lockdep_unlock+0x16a/0x300 [ 69.644290][ T1036] print_deadlock_bug+0x483/0x620 [ 69.644305][ T1036] validate_chain+0x15e2/0x5920 [ 69.644322][ T1036] ? __pfx_validate_chain+0x10/0x10 [ 69.644334][ T1036] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 69.644346][ T1036] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 69.644359][ T1036] ? __console_unlock+0x12d/0x1f0 [ 69.644370][ T1036] ? prb_read_valid+0xa9/0xf0 [ 69.644384][ T1036] ? __pfx___console_unlock+0x10/0x10 [ 69.644394][ T1036] ? llist_add_batch+0x143/0x270 [ 69.644404][ T1036] ? mark_lock+0x9a/0x360 [ 69.644413][ T1036] __lock_acquire+0x1397/0x2100 [ 69.644422][ T1036] lock_acquire+0x1ed/0x550 [ 69.644429][ T1036] ? bch2_journal_halt+0x2f/0x110 [ 69.644439][ T1036] ? __pfx_lock_acquire+0x10/0x10 [ 69.644447][ T1036] ? __bch2_print+0x17a/0x220 [ 69.644455][ T1036] ? __pfx___journal_entry_close+0x10/0x10 [ 69.644464][ T1036] ? do_raw_spin_lock+0x14f/0x370 [ 69.644470][ T1036] ? __journal_res_get+0xbb7/0x26b0 [ 69.644476][ T1036] _raw_spin_lock+0x2e/0x40 [ 69.644522][ T1036] ? bch2_journal_halt+0x2f/0x110 [ 69.644530][ T1036] bch2_journal_halt+0x2f/0x110 [ 69.644539][ T1036] bch2_fs_emergency_read_only+0x50/0xc0 [ 69.644548][ T1036] bch2_fatal_error+0x15/0x40 [ 69.644560][ T1036] __journal_res_get+0xbef/0x26b0 [ 69.644575][ T1036] ? __pfx___journal_res_get+0x10/0x10 [ 69.644585][ T1036] ? preempt_count_add+0x93/0x190 [ 69.644596][ T1036] ? run_btree_triggers+0x30d/0x1510 [ 69.644605][ T1036] ? __asan_memcpy+0x40/0x70 [ 69.644615][ T1036] ? run_btree_triggers+0x1456/0x1510 [ 69.644627][ T1036] bch2_journal_res_get_slowpath+0xe6/0x710 [ 69.644639][ T1036] ? __pfx_bch2_journal_res_get_slowpath+0x10/0x10 [ 69.644649][ T1036] ? bch2_btree_node_prep_for_write+0x53d/0x8f0 [ 69.644664][ T1036] ? bch2_trans_lock_write+0xb74/0xc60 [ 69.644678][ T1036] ? bch2_btree_keys_u64s_remaining+0x3ac/0x690 [ 69.644692][ T1036] __bch2_trans_commit+0x353c/0x97a0 [ 69.644711][ T1036] ? __pfx___bch2_trans_commit+0x10/0x10 [ 69.644724][ T1036] ? __pfx_bch2_trans_begin+0x10/0x10 [ 69.644736][ T1036] ? bch2_dev_btree_bitmap_marked+0x2f/0xda0 [ 69.644746][ T1036] ? bch2_dev_btree_bitmap_marked+0xd39/0xda0 [ 69.644767][ T1036] ? bch2_dev_btree_bitmap_marked+0x2f/0xda0 [ 69.644775][ T1036] ? __bch2_trans_jset_entry_alloc+0x2c7/0x4b0 [ 69.644784][ T1036] ? btree_interior_update_work+0x1131/0x2a70 [ 69.644790][ T1036] ? __pfx_bch2_trigger_extent+0x10/0x10 [ 69.644803][ T1036] btree_interior_update_work+0x1449/0x2a70 [ 69.644819][ T1036] ? __pfx_btree_interior_update_work+0x10/0x10 [ 69.644833][ T1036] ? __pfx_lock_acquire+0x10/0x10 [ 69.644845][ T1036] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 69.644857][ T1036] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 69.644870][ T1036] ? process_scheduled_works+0x976/0x1840 [ 69.644881][ T1036] process_scheduled_works+0xa66/0x1840 [ 69.644897][ T1036] ? __pfx_process_scheduled_works+0x10/0x10 [ 69.644909][ T1036] ? assign_work+0x364/0x3d0 [ 69.644919][ T1036] worker_thread+0x870/0xd30 [ 69.644933][ T1036] ? __kthread_parkme+0x169/0x1d0 [ 69.644944][ T1036] ? __pfx_worker_thread+0x10/0x10 [ 69.644953][ T1036] kthread+0x7a9/0x920 [ 69.644965][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.644977][ T1036] ? __pfx_worker_thread+0x10/0x10 [ 69.644988][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.645000][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.645013][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.645021][ T1036] ? _raw_spin_unlock_irq+0x23/0x50 [ 69.645027][ T1036] ? lockdep_hardirqs_on+0x99/0x150 [ 69.645034][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.645041][ T1036] ret_from_fork+0x4b/0x80 [ 69.645050][ T1036] ? __pfx_kthread+0x10/0x10 [ 69.645061][ T1036] ret_from_fork_asm+0x1a/0x30 [ 69.645074][ T1036] VM DIAGNOSIS: 17:24:11 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000072 RBX=ffffffff9a71d940 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000269e370 R8 =ffffffff8555889b R9 =1ffff11003dcb046 R10=dffffc0000000000 R11=ffffffff85558850 R12=dffffc0000000000 R13=ffffffff9a417f47 R14=0000000000000072 R15=00000000000003f8 RIP=ffffffff855588ce 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=000056331bc1f0c8 CR3=0000000043e32000 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=0000000000800110 Opmask01=00000000fffffffa Opmask02=0000000000000000 Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff4956be90 0000003000000010 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 6565656565656565 6565656565656565 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ff00ff0000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffffffffffff ffffffffffff0000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ff00ff0000000000 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 786966202c302065 6572742031206c6f 7662757320302020 2020202020202020 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 5f6966202c302065 000a672031206966 202c302020302000 0a2020000a202020 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 5f6b636568632c74 696e695f736e6567 5f74656b6375622c 736665725f75726c ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000000a000a 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