Warning: Permanently added '10.128.0.135' (ED25519) to the list of known hosts. executing program [ 51.352666][ T6420] loop0: detected capacity change from 0 to 32768 [ 51.420715][ T6420] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,no_data_io [ 51.425227][ T6420] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 51.426981][ T6420] bcachefs (loop0): Version upgrade required: [ 51.426981][ T6420] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 51.426981][ T6420] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 51.426981][ T6420] 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 [ 51.442106][ T6420] bcachefs (loop0): dropping and reconstructing all alloc info [ 51.450575][ T6420] bcachefs (loop0): check_topology... done [ 51.451941][ T6420] bcachefs (loop0): accounting_read... done [ 51.492456][ T6420] bcachefs (loop0): alloc_read... done [ 51.493525][ T6420] bcachefs (loop0): stripes_read... done [ 51.494610][ T6420] bcachefs (loop0): snapshots_read... done [ 51.495924][ T6420] bcachefs (loop0): check_allocations... done [ 51.508957][ T6420] bcachefs (loop0): going read-write [ 51.513321][ T6420] bcachefs (loop0): done starting filesystem [ 51.522394][ T6432] [ 51.522959][ T6432] ====================================================== [ 51.524279][ T6432] WARNING: possible circular locking dependency detected [ 51.525592][ T6432] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 51.526757][ T6432] ------------------------------------------------------ [ 51.528089][ T6432] syz-executor131/6432 is trying to acquire lock: [ 51.529302][ T6432] ffff0000dc888128 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked+0x5c/0x21c [ 51.531051][ T6432] [ 51.531051][ T6432] but task is already holding lock: [ 51.532555][ T6432] ffff0000dcbe1548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 51.534510][ T6432] [ 51.534510][ T6432] which lock already depends on the new lock. [ 51.534510][ T6432] [ 51.536476][ T6432] [ 51.536476][ T6432] the existing dependency chain (in reverse order) is: [ 51.538192][ T6432] [ 51.538192][ T6432] -> #1 (&c->fsck_error_msgs_lock){+.+.}-{3:3}: [ 51.539817][ T6432] __mutex_lock_common+0x190/0x21a0 [ 51.540960][ T6432] mutex_lock_nested+0x2c/0x38 [ 51.541990][ T6432] __bch2_fsck_err+0x344/0x2544 [ 51.543009][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 51.544313][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 51.545471][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 51.546575][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 51.547823][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 51.549060][ T6432] thread_with_stdio_fn+0x64/0x134 [ 51.550159][ T6432] kthread+0x288/0x310 [ 51.551072][ T6432] ret_from_fork+0x10/0x20 [ 51.552021][ T6432] [ 51.552021][ T6432] -> #0 (bcachefs_btree){+.+.}-{0:0}: [ 51.553452][ T6432] __lock_acquire+0x33f8/0x77c8 [ 51.554475][ T6432] lock_acquire+0x240/0x728 [ 51.555427][ T6432] trans_set_locked+0x88/0x21c [ 51.556545][ T6432] __bch2_trans_relock+0x2a0/0x394 [ 51.557623][ T6432] bch2_trans_relock+0x24/0x34 [ 51.558623][ T6432] __bch2_fsck_err+0x1664/0x2544 [ 51.559679][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 51.560980][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 51.562117][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 51.563232][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 51.564498][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 51.565765][ T6432] thread_with_stdio_fn+0x64/0x134 [ 51.566855][ T6432] kthread+0x288/0x310 [ 51.567732][ T6432] ret_from_fork+0x10/0x20 [ 51.568709][ T6432] [ 51.568709][ T6432] other info that might help us debug this: [ 51.568709][ T6432] [ 51.570675][ T6432] Possible unsafe locking scenario: [ 51.570675][ T6432] [ 51.572113][ T6432] CPU0 CPU1 [ 51.573124][ T6432] ---- ---- [ 51.574230][ T6432] lock(&c->fsck_error_msgs_lock); [ 51.575226][ T6432] lock(bcachefs_btree); [ 51.576533][ T6432] lock(&c->fsck_error_msgs_lock); [ 51.578044][ T6432] lock(bcachefs_btree); [ 51.578900][ T6432] [ 51.578900][ T6432] *** DEADLOCK *** [ 51.578900][ T6432] [ 51.580472][ T6432] 3 locks held by syz-executor131/6432: [ 51.581549][ T6432] #0: ffff0000dcb80278 (&c->state_lock){++++}-{3:3}, at: bch2_run_online_recovery_passes+0x3c/0x174 [ 51.583715][ T6432] #1: ffff0000dcb84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 [ 51.585744][ T6432] #2: ffff0000dcbe1548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 51.587898][ T6432] [ 51.587898][ T6432] stack backtrace: [ 51.589037][ T6432] CPU: 1 UID: 0 PID: 6432 Comm: syz-executor131 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 51.591017][ T6432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 51.593004][ T6432] Call trace: [ 51.593646][ T6432] show_stack+0x2c/0x3c (C) [ 51.594564][ T6432] dump_stack_lvl+0xe4/0x150 [ 51.595451][ T6432] dump_stack+0x1c/0x28 [ 51.596262][ T6432] print_circular_bug+0x154/0x1c0 [ 51.597253][ T6432] check_noncircular+0x310/0x404 [ 51.598214][ T6432] __lock_acquire+0x33f8/0x77c8 [ 51.599155][ T6432] lock_acquire+0x240/0x728 [ 51.600035][ T6432] trans_set_locked+0x88/0x21c [ 51.600983][ T6432] __bch2_trans_relock+0x2a0/0x394 [ 51.602004][ T6432] bch2_trans_relock+0x24/0x34 [ 51.603072][ T6432] __bch2_fsck_err+0x1664/0x2544 [ 51.604075][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 51.605272][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 51.606408][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 51.607435][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 51.608614][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 51.609702][ T6432] thread_with_stdio_fn+0x64/0x134 [ 51.610728][ T6432] kthread+0x288/0x310 [ 51.611520][ T6432] ret_from_fork+0x10/0x20 [ 51.633535][ T6418] bcachefs (loop0): shutting down [ 51.634505][ T6418] bcachefs (loop0): going read-only [ 51.635563][ T6418] bcachefs (loop0): finished waiting for writes to stop [ 51.691514][ T6418] bcachefs (loop0): flushing journal and stopping allocators, journal seq 21 [ 51.694554][ T6418] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 23 [ 51.697108][ T6418] bcachefs (loop0): unshutdown complete, journal seq 24 [ 51.698729][ T6418] bcachefs (loop0): done going read-only, filesystem not clean [ 51.704117][ T6418] bcachefs (loop0): shutdown complete executing program [ 52.677724][ T6435] loop0: detected capacity change from 0 to 32768 [ 52.741556][ T6435] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,no_data_io [ 52.746073][ T6435] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 52.747731][ T6435] bcachefs (loop0): Version upgrade required: [ 52.747731][ T6435] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 52.747731][ T6435] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 52.747731][ T6435] 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 [ 52.762449][ T6435] bcachefs (loop0): dropping and reconstructing all alloc info [ 52.767704][ T6435] bcachefs (loop0): check_topology... done [ 52.768888][ T6435] bcachefs (loop0): accounting_read... done [ 52.770050][ T6435] bcachefs (loop0): alloc_read... done [ 52.771192][ T6435] bcachefs (loop0): stripes_read... done [ 52.772294][ T6435] bcachefs (loop0): snapshots_read... done [ 52.773453][ T6435] bcachefs (loop0): check_allocations... done [ 52.780928][ T6435] bcachefs (loop0): going read-write [ 52.783554][ T6435] bcachefs (loop0): done starting filesystem [ 52.803893][ T6418] bcachefs (loop0): shutting down [ 52.804888][ T6418] bcachefs (loop0): going read-only [ 52.806043][ T6418] bcachefs (loop0): finished waiting for writes to stop [ 52.851549][ T6418] bcachefs (loop0): flushing journal and stopping allocators, journal seq 21 [ 52.854615][ T6418] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 23 [ 52.857139][ T6418] bcachefs (loop0): unshutdown complete, journal seq 24 [ 52.858911][ T6418] bcachefs (loop0): done going read-only, filesystem not clean [ 52.864597][ T6418] bcachefs (loop0): shutdown complete executing program [ 53.970095][ T6449] loop0: detected capacity change from 0 to 32768 [ 54.022356][ T6449] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,no_data_io [ 54.026865][ T6449] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 54.028596][ T6449] bcachefs (loop0): Version upgrade required: [ 54.028596][ T6449] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 54.028596][ T6449] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 54.028596][ T6449] 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 [ 54.043865][ T6449] bcachefs (loop0): dropping and reconstructing all alloc info [ 54.049329][ T6449] bcachefs (loop0): check_topology... done [ 54.050585][ T6449] bcachefs (loop0): accounting_read... done [ 54.052029][ T6449] bcachefs (loop0): alloc_read... done [ 54.053180][ T6449] bcachefs (loop0): stripes_read... done [ 54.054327][ T6449] bcachefs (loop0): snapshots_read... done [ 54.055545][ T6449] bcachefs (loop0): check_allocations... done [ 54.063104][ T6449] bcachefs (loop0): going read-write [ 54.065591][ T6449] bcachefs (loop0): done starting filesystem [ 54.078375][ T6418] bcachefs (loop0): shutting down [ 54.079457][ T6418] bcachefs (loop0): going read-only [ 54.080612][ T6418] bcachefs (loop0): finished waiting for writes to stop [ 54.131577][ T6418] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 54.133500][ T6418] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 54.135923][ T6418] bcachefs (loop0): unshutdown complete, journal seq 11 [ 54.137657][ T6418] bcachefs (loop0): done going read-only, filesystem not clean