Warning: Permanently added '10.128.1.124' (ED25519) to the list of known hosts. [ 34.799805][ T6420] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 34.801833][ T5990] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 34.803516][ T5990] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 34.805379][ T5990] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 34.807625][ T5990] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 34.809206][ T5990] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 executing program [ 35.001061][ T6424] loop0: detected capacity change from 0 to 32768 [ 35.067480][ T6424] 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.071766][ T6424] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 35.073523][ T6424] bcachefs (loop0): Version upgrade required: [ 35.073523][ T6424] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 35.073523][ T6424] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 35.073523][ T6424] 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.088635][ T6424] bcachefs (loop0): dropping and reconstructing all alloc info [ 35.097441][ T6424] bcachefs (loop0): check_topology... done [ 35.098653][ T6424] bcachefs (loop0): accounting_read... done [ 35.147614][ T6424] bcachefs (loop0): alloc_read... done [ 35.148766][ T6424] bcachefs (loop0): stripes_read... done [ 35.149884][ T6424] bcachefs (loop0): snapshots_read... done [ 35.151258][ T6424] bcachefs (loop0): check_allocations... done [ 35.164239][ T6424] bcachefs (loop0): going read-write [ 35.168482][ T6424] bcachefs (loop0): done starting filesystem [ 35.176604][ T6435] [ 35.177188][ T6435] ====================================================== [ 35.178563][ T6435] WARNING: possible circular locking dependency detected [ 35.179932][ T6435] 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted [ 35.181224][ T6435] ------------------------------------------------------ [ 35.182635][ T6435] syz-executor926/6435 is trying to acquire lock: [ 35.184018][ T6435] ffff0000da60c128 (bcachefs_btree){+.+.}-{0:0}, at: trans_set_locked+0x5c/0x21c [ 35.185795][ T6435] [ 35.185795][ T6435] but task is already holding lock: [ 35.187312][ T6435] ffff0000dc4e1548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 35.189357][ T6435] [ 35.189357][ T6435] which lock already depends on the new lock. [ 35.189357][ T6435] [ 35.191622][ T6435] [ 35.191622][ T6435] the existing dependency chain (in reverse order) is: [ 35.193556][ T6435] [ 35.193556][ T6435] -> #1 (&c->fsck_error_msgs_lock){+.+.}-{3:3}: [ 35.195162][ T6435] __mutex_lock_common+0x190/0x21a0 [ 35.196284][ T6435] mutex_lock_nested+0x2c/0x38 [ 35.197513][ T6435] __bch2_fsck_err+0x344/0x2544 [ 35.198649][ T6435] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.200012][ T6435] bch2_check_alloc_info+0x1174/0x26f8 [ 35.201124][ T6435] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.202062][ T6435] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.203126][ T6435] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.204191][ T6435] thread_with_stdio_fn+0x64/0x134 [ 35.205449][ T6435] kthread+0x288/0x310 [ 35.206378][ T6435] ret_from_fork+0x10/0x20 [ 35.207424][ T6435] [ 35.207424][ T6435] -> #0 (bcachefs_btree){+.+.}-{0:0}: [ 35.208949][ T6435] __lock_acquire+0x33f8/0x77c8 [ 35.210001][ T6435] lock_acquire+0x240/0x728 [ 35.211115][ T6435] trans_set_locked+0x88/0x21c [ 35.212171][ T6435] __bch2_trans_relock+0x2a0/0x394 [ 35.213269][ T6435] bch2_trans_relock+0x24/0x34 [ 35.214409][ T6435] __bch2_fsck_err+0x1664/0x2544 [ 35.215624][ T6435] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.217014][ T6435] bch2_check_alloc_info+0x1174/0x26f8 [ 35.218154][ T6435] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.219356][ T6435] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.220750][ T6435] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.222011][ T6435] thread_with_stdio_fn+0x64/0x134 [ 35.223307][ T6435] kthread+0x288/0x310 [ 35.224566][ T6435] ret_from_fork+0x10/0x20 [ 35.225691][ T6435] [ 35.225691][ T6435] other info that might help us debug this: [ 35.225691][ T6435] [ 35.227783][ T6435] Possible unsafe locking scenario: [ 35.227783][ T6435] [ 35.229334][ T6435] CPU0 CPU1 [ 35.230430][ T6435] ---- ---- [ 35.231457][ T6435] lock(&c->fsck_error_msgs_lock); [ 35.232571][ T6435] lock(bcachefs_btree); [ 35.234052][ T6435] lock(&c->fsck_error_msgs_lock); [ 35.235714][ T6435] lock(bcachefs_btree); [ 35.236650][ T6435] [ 35.236650][ T6435] *** DEADLOCK *** [ 35.236650][ T6435] [ 35.238370][ T6435] 3 locks held by syz-executor926/6435: [ 35.239477][ T6435] #0: ffff0000dc480278 (&c->state_lock){++++}-{3:3}, at: bch2_run_online_recovery_passes+0x3c/0x174 [ 35.241766][ T6435] #1: ffff0000dc484398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 [ 35.243729][ T6435] #2: ffff0000dc4e1548 (&c->fsck_error_msgs_lock){+.+.}-{3:3}, at: __bch2_fsck_err+0x344/0x2544 [ 35.245989][ T6435] [ 35.245989][ T6435] stack backtrace: [ 35.247310][ T6435] CPU: 0 UID: 0 PID: 6435 Comm: syz-executor926 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 [ 35.249337][ T6435] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 35.251503][ T6435] Call trace: [ 35.252165][ T6435] show_stack+0x2c/0x3c (C) [ 35.253120][ T6435] dump_stack_lvl+0xe4/0x150 [ 35.254169][ T6435] dump_stack+0x1c/0x28 [ 35.255045][ T6435] print_circular_bug+0x154/0x1c0 [ 35.256011][ T6435] check_noncircular+0x310/0x404 [ 35.257068][ T6435] __lock_acquire+0x33f8/0x77c8 [ 35.258115][ T6435] lock_acquire+0x240/0x728 [ 35.259013][ T6435] trans_set_locked+0x88/0x21c [ 35.260026][ T6435] __bch2_trans_relock+0x2a0/0x394 [ 35.261016][ T6435] bch2_trans_relock+0x24/0x34 [ 35.261921][ T6435] __bch2_fsck_err+0x1664/0x2544 [ 35.262989][ T6435] bch2_check_alloc_hole_freespace+0x5fc/0xd74 [ 35.264347][ T6435] bch2_check_alloc_info+0x1174/0x26f8 [ 35.265515][ T6435] bch2_run_recovery_pass+0xe4/0x1d4 [ 35.266591][ T6435] bch2_run_online_recovery_passes+0xa4/0x174 [ 35.267823][ T6435] bch2_fsck_online_thread_fn+0x150/0x3e8 [ 35.269002][ T6435] thread_with_stdio_fn+0x64/0x134 [ 35.269998][ T6435] kthread+0x288/0x310 [ 35.270821][ T6435] ret_from_fork+0x10/0x20 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.886418][ T5990] Bluetooth: hci0: command tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.976382][ T5990] Bluetooth: hci0: command tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 41.046396][ T5990] Bluetooth: hci0: command tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 43.126466][ T5990] Bluetooth: hci0: command tx timeout executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program