[ 58.897384][ T5245] dhcpcd-run-hook (5245) used greatest stack depth: 18832 bytes left Warning: Permanently added '[localhost]:35143' (ED25519) to the list of known hosts. executing program [ 69.407936][ T5302] loop0: detected capacity change from 0 to 32768 [ 69.473417][ 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 [ 69.479743][ T5302] bcachefs (loop0): recovering from clean shutdown, journal seq 72057594037927925 [ 69.483588][ T5302] bcachefs (loop0): Version upgrade required: [ 69.483588][ T5302] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 69.483588][ T5302] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 69.483588][ 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 [ 69.514859][ T5302] bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 69.514880][ 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 [ 69.514889][ T5302] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 69.528091][ T5302] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 69.528091][ 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 [ 69.538266][ T5302] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 69.538280][ 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 [ 69.538288][ 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 [ 69.553228][ T5302] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 69.553228][ 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 [ 69.564506][ T5302] bcachefs (loop0): accounting_read... done [ 69.568177][ T5302] bcachefs (loop0): alloc_read... done [ 69.570328][ T5302] bcachefs (loop0): stripes_read... done [ 69.572366][ T5302] bcachefs (loop0): snapshots_read... done [ 69.574877][ T5302] bcachefs (loop0): check_allocations... [ 69.578394][ T5302] bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 69.578413][ 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 [ 69.591085][ T5302] bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 69.591100][ 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 [ 69.601041][ T5302] bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 69.601057][ 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 [ 69.614235][ T5302] bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 69.614250][ 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 [ 69.625577][ T5302] bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 69.625592][ 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 [ 69.635175][ T5302] bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.642465][ T5302] bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.647576][ T5302] bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.650874][ T5302] bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.654469][ T5302] bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.657975][ T5302] bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.661611][ T5302] bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.664609][ T5302] bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.668783][ T5302] bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.671973][ T5302] bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.675535][ T5302] bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.679107][ T5302] bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.682649][ T5302] bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.685499][ T5302] bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.689552][ T5302] bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.692486][ T5302] bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 69.695954][ T5302] bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.699760][ T5302] bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.703542][ T5302] bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.706772][ T5302] bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.711519][ T5302] bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.714825][ T5302] bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.719056][ T5302] bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.722413][ T5302] bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.726120][ T5302] bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.730199][ T5302] bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.734097][ T5302] bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.737613][ T5302] bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.741296][ T5302] bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.744567][ T5302] bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.748909][ T5302] bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.751915][ T5302] bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.755493][ T5302] bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.758810][ T5302] bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.762289][ T5302] bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.765168][ T5302] bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.769186][ T5302] bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.772202][ T5302] bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.775812][ T5302] bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.781014][ T5302] bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.784805][ T5302] bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.788389][ T5302] bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.792218][ T5302] bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.795294][ T5302] bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.799482][ T5302] bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.802518][ T5302] bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.805967][ T5302] bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing [ 69.809760][ T5302] bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 69.813770][ T5302] bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.817438][ T5302] bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.821179][ T5302] bucket 0:27 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.824967][ T5302] bucket 0:28 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.829306][ T5302] bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.832508][ T5302] bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.836199][ T5302] bucket 0:31 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.840848][ T5302] bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing [ 69.843825][ T5302] bucket 0:32 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.847697][ T5302] bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.850792][ T5302] bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.854286][ T5302] bucket 0:37 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.858471][ T5302] bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.861558][ T5302] bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.865151][ T5302] bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing [ 69.868846][ T5302] bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 32, fixing [ 69.872500][ T5302] bucket 0:42 gen 0 data type btree has wrong dirty_sectors: got 256, should be 32, fixing [ 69.876666][ T5302] bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.880092][ T5302] bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.883613][ T5302] bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.886537][ T5302] bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.890666][ T5302] bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.893539][ T5302] bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.897650][ T5302] bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.900857][ T5302] bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.904627][ T5302] bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.908158][ T5302] bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.911824][ T5302] bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.914914][ T5302] bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.919023][ T5302] bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.922145][ T5302] bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.925762][ T5302] bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing [ 69.929337][ T5302] bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 69.934715][ T5302] done [ 69.937653][ T5302] bcachefs (loop0): going read-write [ 69.952476][ T5302] bcachefs (loop0): journal_replay... done [ 70.202539][ T5302] bcachefs (loop0): check_alloc_info... done [ 70.219125][ T5302] bcachefs (loop0): check_lrus... done [ 70.221859][ T5302] bcachefs (loop0): check_btree_backpointers... done [ 70.225132][ T5302] bcachefs (loop0): check_backpointers_to_extents... done [ 70.236425][ T5302] bcachefs (loop0): check_extents_to_backpointers... [ 70.237744][ T5302] bcachefs (loop0): scanning for missing backpointers in 8/128 buckets [ 70.258691][ T5302] done [ 70.261263][ T5302] bcachefs (loop0): check_alloc_to_lru_refs... [ 70.262397][ T5302] missing fragmentation lru entry [ 70.262428][ T5302] u64s 13 type alloc_v4 0:27:0 len 0 ver 0: [ 70.262440][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.262451][ T5302] journal_seq_nonempty 4 [ 70.262461][ T5302] journal_seq_empty 0 [ 70.262471][ T5302] need_discard 1 [ 70.262481][ T5302] need_inc_gen 1 [ 70.262490][ T5302] dirty_sectors 32 [ 70.262500][ T5302] stripe_sectors 0 [ 70.262510][ T5302] cached_sectors 0 [ 70.262526][ T5302] stripe 0 [ 70.262536][ T5302] stripe_redundancy 0 [ 70.262546][ T5302] io_time[READ] 1 [ 70.262560][ T5302] io_time[WRITE] 256 [ 70.262574][ T5302] fragmentation 268435456 [ 70.262585][ T5302] bp_start 8 [ 70.262594][ T5302] , fixing [ 70.341390][ T5302] missing fragmentation lru entry [ 70.341405][ T5302] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 70.341412][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.341418][ T5302] journal_seq_nonempty 6 [ 70.341424][ T5302] journal_seq_empty 0 [ 70.341430][ T5302] need_discard 1 [ 70.341436][ T5302] need_inc_gen 1 [ 70.341441][ T5302] dirty_sectors 32 [ 70.341447][ T5302] stripe_sectors 0 [ 70.341453][ T5302] cached_sectors 0 [ 70.341459][ T5302] stripe 0 [ 70.341464][ T5302] stripe_redundancy 0 [ 70.341469][ T5302] io_time[READ] 1 [ 70.341475][ T5302] io_time[WRITE] 768 [ 70.341481][ T5302] fragmentation 268435456 [ 70.341487][ T5302] bp_start 8 [ 70.341493][ T5302] , fixing [ 70.435975][ T5302] missing fragmentation lru entry [ 70.435991][ T5302] u64s 13 type alloc_v4 0:31:0 len 0 ver 0: [ 70.435998][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.436004][ T5302] journal_seq_nonempty 4 [ 70.436010][ T5302] journal_seq_empty 0 [ 70.436016][ T5302] need_discard 1 [ 70.436021][ T5302] need_inc_gen 1 [ 70.436026][ T5302] dirty_sectors 32 [ 70.436032][ T5302] stripe_sectors 0 [ 70.436038][ T5302] cached_sectors 0 [ 70.436044][ T5302] stripe 0 [ 70.436049][ T5302] stripe_redundancy 0 [ 70.436055][ T5302] io_time[READ] 1 [ 70.436060][ T5302] io_time[WRITE] 512 [ 70.436066][ T5302] fragmentation 268435456 [ 70.436072][ T5302] bp_start 8 [ 70.436077][ T5302] , fixing [ 70.468561][ T5302] missing fragmentation lru entry [ 70.468574][ T5302] u64s 13 type alloc_v4 0:32:0 len 0 ver 0: [ 70.468581][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.468587][ T5302] journal_seq_nonempty 1 [ 70.468592][ T5302] journal_seq_empty 0 [ 70.468597][ T5302] need_discard 1 [ 70.468603][ T5302] need_inc_gen 1 [ 70.468608][ T5302] dirty_sectors 32 [ 70.468614][ T5302] stripe_sectors 0 [ 70.468620][ T5302] cached_sectors 0 [ 70.468626][ T5302] stripe 0 [ 70.468632][ T5302] stripe_redundancy 0 [ 70.468638][ T5302] io_time[READ] 1 [ 70.468644][ T5302] io_time[WRITE] 1 [ 70.468650][ T5302] fragmentation 268435456 [ 70.468656][ T5302] bp_start 8 [ 70.468661][ T5302] , fixing [ 70.499253][ T5302] missing fragmentation lru entry [ 70.499267][ T5302] u64s 13 type alloc_v4 0:35:0 len 0 ver 0: [ 70.499274][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.499280][ T5302] journal_seq_nonempty 0 [ 70.499286][ T5302] journal_seq_empty 0 [ 70.499290][ T5302] need_discard 0 [ 70.499293][ T5302] need_inc_gen 0 [ 70.499297][ T5302] dirty_sectors 32 [ 70.499303][ T5302] stripe_sectors 0 [ 70.499308][ T5302] cached_sectors 0 [ 70.499313][ T5302] stripe 0 [ 70.499318][ T5302] stripe_redundancy 0 [ 70.499330][ T5302] io_time[READ] 0 [ 70.499336][ T5302] io_time[WRITE] 0 [ 70.499342][ T5302] fragmentation 268435456 [ 70.499348][ T5302] bp_start 8 [ 70.499353][ T5302] , fixing [ 70.530458][ T5302] missing fragmentation lru entry [ 70.530468][ T5302] u64s 13 type alloc_v4 0:38:0 len 0 ver 0: [ 70.530475][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.530480][ T5302] journal_seq_nonempty 0 [ 70.530486][ T5302] journal_seq_empty 0 [ 70.530494][ T5302] need_discard 0 [ 70.530499][ T5302] need_inc_gen 0 [ 70.530504][ T5302] dirty_sectors 32 [ 70.530510][ T5302] stripe_sectors 0 [ 70.530516][ T5302] cached_sectors 0 [ 70.530522][ T5302] stripe 0 [ 70.530527][ T5302] stripe_redundancy 0 [ 70.530532][ T5302] io_time[READ] 0 [ 70.530538][ T5302] io_time[WRITE] 0 [ 70.530544][ T5302] fragmentation 268435456 [ 70.530550][ T5302] bp_start 8 [ 70.530556][ T5302] , fixing [ 70.560395][ T5302] missing fragmentation lru entry [ 70.560409][ T5302] u64s 13 type alloc_v4 0:42:0 len 0 ver 0: [ 70.560416][ T5302] gen 0 oldest_gen 0 data_type btree [ 70.560423][ T5302] journal_seq_nonempty 7 [ 70.560428][ T5302] journal_seq_empty 0 [ 70.560434][ T5302] need_discard 1 [ 70.560439][ T5302] need_inc_gen 1 [ 70.560444][ T5302] dirty_sectors 32 [ 70.560450][ T5302] stripe_sectors 0 [ 70.560456][ T5302] cached_sectors 0 [ 70.560462][ T5302] stripe 0 [ 70.560468][ T5302] stripe_redundancy 0 [ 70.560474][ T5302] io_time[READ] 1 [ 70.560479][ T5302] io_time[WRITE] 1280 [ 70.560485][ T5302] fragmentation 268435456 [ 70.560489][ T5302] bp_start 8 [ 70.560494][ T5302] , fixing [ 70.592266][ T5302] done [ 70.597901][ T5302] bcachefs (loop0): bucket_gens_init... [ 70.598350][ T5302] bcachefs (loop0): journal_entry_open(): fatal error cannot start: journal seq overflow [ 70.604072][ T5302] [ 70.604990][ T5302] ============================================ [ 70.607184][ T5302] WARNING: possible recursive locking detected [ 70.609349][ T5302] 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 Not tainted [ 70.612687][ T5302] -------------------------------------------- [ 70.614794][ T5302] syz-executor290/5302 is trying to acquire lock: [ 70.617053][ T5302] ffff888044d4a980 (&j->lock){+.+.}-{3:3}, at: bch2_journal_halt+0x2f/0x110 [ 70.620184][ T5302] [ 70.620184][ T5302] but task is already holding lock: [ 70.622726][ T5302] ffff888044d4a980 (&j->lock){+.+.}-{3:3}, at: __journal_res_get+0x497/0x26b0 [ 70.625825][ T5302] [ 70.625825][ T5302] other info that might help us debug this: [ 70.628648][ T5302] Possible unsafe locking scenario: [ 70.628648][ T5302] [ 70.631432][ T5302] CPU0 [ 70.632648][ T5302] ---- [ 70.633819][ T5302] lock(&j->lock); [ 70.635225][ T5302] lock(&j->lock); [ 70.636573][ T5302] [ 70.636573][ T5302] *** DEADLOCK *** [ 70.636573][ T5302] [ 70.639425][ T5302] May be due to missing lock nesting notation [ 70.639425][ T5302] [ 70.642082][ T5302] 4 locks held by syz-executor290/5302: [ 70.643968][ T5302] #0: ffff888044d00278 (&c->state_lock){+.+.}-{4:4}, at: bch2_fs_start+0x45/0x610 [ 70.647163][ T5302] #1: ffff888044d04378 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e4/0xd30 [ 70.650738][ T5302] #2: ffff8880411f0140 (bcachefs_btree){+.+.}-{0:0}, at: bch2_trans_begin+0x9ca/0x1d90 [ 70.654089][ T5302] #3: ffff888044d4a980 (&j->lock){+.+.}-{3:3}, at: __journal_res_get+0x497/0x26b0 [ 70.657305][ T5302] [ 70.657305][ T5302] stack backtrace: [ 70.659424][ T5302] CPU: 0 UID: 0 PID: 5302 Comm: syz-executor290 Not tainted 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 [ 70.659437][ T5302] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 70.659443][ T5302] Call Trace: [ 70.659450][ T5302] [ 70.659456][ T5302] dump_stack_lvl+0x241/0x360 [ 70.659479][ T5302] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.659492][ T5302] ? __pfx__printk+0x10/0x10 [ 70.659503][ T5302] ? lockdep_unlock+0x16a/0x300 [ 70.659518][ T5302] print_deadlock_bug+0x483/0x620 [ 70.659533][ T5302] validate_chain+0x15e2/0x5920 [ 70.659552][ T5302] ? __pfx_validate_chain+0x10/0x10 [ 70.659566][ T5302] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 70.659577][ T5302] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 70.659589][ T5302] ? __console_unlock+0x12d/0x1f0 [ 70.659599][ T5302] ? prb_read_valid+0xa9/0xf0 [ 70.659613][ T5302] ? __pfx___console_unlock+0x10/0x10 [ 70.659623][ T5302] ? __pfx_prb_read_valid+0x10/0x10 [ 70.659637][ T5302] ? is_printk_cpu_sync_owner+0x32/0x40 [ 70.659648][ T5302] ? mark_lock+0x9a/0x360 [ 70.659657][ T5302] __lock_acquire+0x1397/0x2100 [ 70.659677][ T5302] lock_acquire+0x1ed/0x550 [ 70.659688][ T5302] ? bch2_journal_halt+0x2f/0x110 [ 70.659704][ T5302] ? __pfx_lock_acquire+0x10/0x10 [ 70.659719][ T5302] ? __bch2_print+0x17a/0x220 [ 70.659732][ T5302] ? __pfx___journal_entry_close+0x10/0x10 [ 70.659745][ T5302] ? do_raw_spin_lock+0x14f/0x370 [ 70.659755][ T5302] ? __journal_res_get+0xbb7/0x26b0 [ 70.659764][ T5302] _raw_spin_lock+0x2e/0x40 [ 70.660630][ T5302] ? bch2_journal_halt+0x2f/0x110 [ 70.660645][ T5302] bch2_journal_halt+0x2f/0x110 [ 70.660665][ T5302] bch2_fs_emergency_read_only+0x50/0xc0 [ 70.660680][ T5302] bch2_fatal_error+0x15/0x40 [ 70.660693][ T5302] __journal_res_get+0xbef/0x26b0 [ 70.660709][ T5302] ? __pfx___journal_res_get+0x10/0x10 [ 70.660721][ T5302] ? run_btree_triggers+0x1456/0x1510 [ 70.660735][ T5302] bch2_journal_res_get_slowpath+0xe6/0x710 [ 70.660746][ T5302] ? __pfx_bch2_journal_res_get_slowpath+0x10/0x10 [ 70.660757][ T5302] ? bch2_btree_node_prep_for_write+0x53d/0x8f0 [ 70.660772][ T5302] ? bch2_trans_lock_write+0xb74/0xc60 [ 70.660786][ T5302] ? bch2_btree_keys_u64s_remaining+0x3ac/0x690 [ 70.660800][ T5302] __bch2_trans_commit+0x353c/0x97a0 [ 70.660814][ T5302] ? bch2_btree_insert_trans+0x234/0x550 [ 70.660834][ T5302] ? __pfx___bch2_trans_commit+0x10/0x10 [ 70.660845][ T5302] ? __asan_memset+0x23/0x50 [ 70.660852][ T5302] bch2_bucket_gens_init+0xd00/0x1080 [ 70.660862][ T5302] ? __pfx_bch2_bucket_gens_init+0x10/0x10 [ 70.660870][ T5302] ? llist_add_batch+0x143/0x270 [ 70.660877][ T5302] ? console_unlock+0x2fc/0x3b0 [ 70.660891][ T5302] ? bch2_bucket_gens_init+0x1be/0x1080 [ 70.660898][ T5302] ? __bch2_print+0x17a/0x220 [ 70.660906][ T5302] ? bch2_run_recovery_pass+0x6d/0x1e0 [ 70.660913][ T5302] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 70.660926][ T5302] bch2_run_recovery_pass+0xf0/0x1e0 [ 70.660936][ T5302] bch2_run_recovery_passes+0x2ad/0xa90 [ 70.660950][ T5302] bch2_fs_recovery+0x265a/0x3de0 [ 70.660964][ T5302] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 70.660980][ T5302] ? __pfx_lock_release+0x10/0x10 [ 70.660992][ T5302] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 70.661003][ T5302] ? __pfx_lock_release+0x10/0x10 [ 70.661013][ T5302] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 70.661026][ T5302] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 70.661039][ T5302] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 70.661052][ T5302] ? llist_reverse_order+0x72/0x90 [ 70.661063][ T5302] bch2_fs_start+0x37c/0x610 [ 70.661077][ T5302] bch2_fs_get_tree+0xd8d/0x1740 [ 70.661093][ T5302] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 70.661108][ T5302] ? generic_parse_monolithic+0x387/0x400 [ 70.661127][ T5302] ? apparmor_capable+0x13b/0x1b0 [ 70.661140][ T5302] vfs_get_tree+0x90/0x2b0 [ 70.661153][ T5302] do_new_mount+0x2be/0xb40 [ 70.661169][ T5302] ? __pfx_do_new_mount+0x10/0x10 [ 70.661184][ T5302] __se_sys_mount+0x2d6/0x3c0 [ 70.661201][ T5302] ? __pfx___se_sys_mount+0x10/0x10 [ 70.661214][ T5302] ? do_syscall_64+0x100/0x230 [ 70.661227][ T5302] ? __x64_sys_mount+0x20/0xc0 [ 70.661239][ T5302] do_syscall_64+0xf3/0x230 [ 70.661250][ T5302] ? clear_bhb_loop+0x35/0x90 [ 70.661265][ T5302] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.661278][ T5302] RIP: 0033:0x7f1cf368bdea [ 70.661289][ T5302] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 70.661298][ T5302] RSP: 002b:00007fff3d007968 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 70.661309][ T5302] RAX: ffffffffffffffda RBX: 00007fff3d007980 RCX: 00007f1cf368bdea [ 70.661317][ T5302] RDX: 00000000200000c0 RSI: 0000000020000180 RDI: 00007fff3d007980 [ 70.661324][ T5302] RBP: 0000000000000004 R08: 00007fff3d0079c0 R09: 0000000000005995 [ 70.661330][ T5302] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000 [ 70.661336][ T5302] R13: 00007fff3d0079c0 R14: 0000000000000003 R15: 0000000001000000 [ 70.661346][ T5302] VM DIAGNOSIS: 16:44:42 Registers: info registers vcpu 0 CPU#0 RAX=000000000000006b RBX=ffffffff9a71d940 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000d12db70 R8 =ffffffff8555889b R9 =1ffff110067e9046 R10=dffffc0000000000 R11=ffffffff85558850 R12=dffffc0000000000 R13=ffffffff9a417f42 R14=000000000000006b 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 0000555563ecf380 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=000055f5132d50c8 CR3=0000000044112000 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=000000000a000000 Opmask01=0000000000001900 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 00007ffd5e2b7bd0 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 2525252525252525 2525252525252525 2525252525252525 2525252525252525 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4f6e3a6d5e007325 2e73250064252e73 2500656c6f736e6f 632f7665642f000a ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4f4b1f485e005600 0b56000041000b56 000040494a564b4a 460a5340410a000a ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 2036353220534f20 206c656b5f6e202c 20203300000a3a00 0a676e6365695f20 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