Warning: Permanently added '10.128.0.159' (ED25519) to the list of known hosts. executing program [ 35.200788][ T6420] loop0: detected capacity change from 0 to 32768 [ 35.279315][ 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 [ 35.283619][ T6420] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 35.285300][ T6420] bcachefs (loop0): Version upgrade required: [ 35.285300][ T6420] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 35.285300][ T6420] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 35.285300][ 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 [ 35.300420][ T6420] bcachefs (loop0): dropping and reconstructing all alloc info [ 35.308579][ T6420] bcachefs (loop0): check_topology... done [ 35.310097][ T6420] bcachefs (loop0): accounting_read... done [ 35.400777][ T6420] bcachefs (loop0): alloc_read... done [ 35.401916][ T6420] bcachefs (loop0): stripes_read... done [ 35.403057][ T6420] bcachefs (loop0): snapshots_read... done [ 35.404448][ T6420] bcachefs (loop0): check_allocations... done [ 35.417327][ T6420] bcachefs (loop0): going read-write [ 35.421573][ T6420] bcachefs (loop0): done starting filesystem [ 35.619129][ T6420] Zero length message leads to an empty skb [ 35.621856][ T6432] [ 35.622426][ T6432] ====================================================== [ 35.623809][ T6432] WARNING: possible circular locking dependency detected [ 35.625134][ T6432] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 35.626295][ T6432] ------------------------------------------------------ [ 35.627606][ T6432] syz-executor203/6432 is trying to acquire lock: [ 35.628790][ T6432] ffff0000da100128 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked+0x5c/0x21c [ 35.630538][ T6432] [ 35.630538][ T6432] but task is already holding lock: [ 35.631959][ T6432] ffff0000dc661548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 35.633903][ T6432] [ 35.633903][ T6432] which lock already depends on the new lock. [ 35.633903][ T6432] [ 35.635905][ T6432] [ 35.635905][ T6432] the existing dependency chain (in reverse order) is: [ 35.637658][ T6432] [ 35.637658][ T6432] -> #1 (&c->fsck_error_msgs_lock){+.+.}-{3:3}: [ 35.639259][ T6432] __mutex_lock_common+0x190/0x21a0 [ 35.640513][ T6432] mutex_lock_nested+0x2c/0x38 [ 35.641529][ T6432] __bch2_fsck_err+0x344/0x2544 [ 35.642562][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.643856][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 35.645012][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.646123][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.647385][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.648578][ T6432] thread_with_stdio_fn+0x64/0x134 [ 35.649661][ T6432] kthread+0x288/0x310 [ 35.650541][ T6432] ret_from_fork+0x10/0x20 [ 35.651513][ T6432] [ 35.651513][ T6432] -> #0 (bcachefs_btree){+.+.}-{0:0}: [ 35.652978][ T6432] __lock_acquire+0x33f8/0x77c8 [ 35.654026][ T6432] lock_acquire+0x240/0x728 [ 35.655000][ T6432] trans_set_locked+0x88/0x21c [ 35.656042][ T6432] __bch2_trans_relock+0x2a0/0x394 [ 35.657168][ T6432] bch2_trans_relock+0x24/0x34 [ 35.658466][ T6432] __bch2_fsck_err+0x1664/0x2544 [ 35.659566][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.660841][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 35.662004][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.663121][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.664389][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.665589][ T6432] thread_with_stdio_fn+0x64/0x134 [ 35.666671][ T6432] kthread+0x288/0x310 [ 35.667556][ T6432] ret_from_fork+0x10/0x20 [ 35.668516][ T6432] [ 35.668516][ T6432] other info that might help us debug this: [ 35.668516][ T6432] [ 35.670465][ T6432] Possible unsafe locking scenario: [ 35.670465][ T6432] [ 35.671916][ T6432] CPU0 CPU1 [ 35.672953][ T6432] ---- ---- [ 35.673988][ T6432] lock(&c->fsck_error_msgs_lock); [ 35.675035][ T6432] lock(bcachefs_btree); [ 35.676347][ T6432] lock(&c->fsck_error_msgs_lock); [ 35.677988][ T6432] lock(bcachefs_btree); [ 35.678829][ T6432] [ 35.678829][ T6432] *** DEADLOCK *** [ 35.678829][ T6432] [ 35.680459][ T6432] 3 locks held by syz-executor203/6432: [ 35.681515][ T6432] #0: ffff0000dc600278 (&c->state_lock){++++}-{3:3}, at: bch2_run_online_recovery_passes+0x3c/0x174 [ 35.683619][ T6432] #1: ffff0000dc604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 [ 35.685650][ T6432] #2: ffff0000dc661548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 35.687677][ T6432] [ 35.687677][ T6432] stack backtrace: [ 35.688810][ T6432] CPU: 1 UID: 0 PID: 6432 Comm: syz-executor203 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 35.690769][ T6432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 35.692697][ T6432] Call trace: [ 35.693335][ T6432] show_stack+0x2c/0x3c (C) [ 35.694208][ T6432] dump_stack_lvl+0xe4/0x150 [ 35.695087][ T6432] dump_stack+0x1c/0x28 [ 35.695901][ T6432] print_circular_bug+0x154/0x1c0 [ 35.696907][ T6432] check_noncircular+0x310/0x404 [ 35.697939][ T6432] __lock_acquire+0x33f8/0x77c8 [ 35.699001][ T6432] lock_acquire+0x240/0x728 [ 35.699875][ T6432] trans_set_locked+0x88/0x21c [ 35.700804][ T6432] __bch2_trans_relock+0x2a0/0x394 [ 35.701791][ T6432] bch2_trans_relock+0x24/0x34 [ 35.702707][ T6432] __bch2_fsck_err+0x1664/0x2544 [ 35.703655][ T6432] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.704844][ T6432] bch2_check_alloc_info+0x1174/0x26f8 [ 35.705915][ T6432] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.706941][ T6432] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.708119][ T6432] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.709240][ T6432] thread_with_stdio_fn+0x64/0x134 [ 35.710240][ T6432] kthread+0x288/0x310 [ 35.711038][ T6432] ret_from_fork+0x10/0x20