Warning: Permanently added '10.128.1.253' (ED25519) to the list of known hosts. executing program [ 35.509739][ T6413] loop0: detected capacity change from 0 to 32768 [ 35.599698][ T6413] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,nojournal_transaction_names [ 35.602663][ T6413] [ 35.603147][ T6413] ============================================ [ 35.604378][ T6413] WARNING: possible recursive locking detected [ 35.605723][ T6413] 6.12.0-rc3-syzkaller-gd2b1b3bccef6 #0 Not tainted [ 35.607036][ T6413] -------------------------------------------- [ 35.608274][ T6413] syz-executor199/6413 is trying to acquire lock: [ 35.609628][ T6413] ffff0000dee00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x34/0x88 [ 35.611573][ T6413] [ 35.611573][ T6413] but task is already holding lock: [ 35.613062][ T6413] ffff0000dee00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x44/0x444 [ 35.615024][ T6413] [ 35.615024][ T6413] other info that might help us debug this: [ 35.616637][ T6413] Possible unsafe locking scenario: [ 35.616637][ T6413] [ 35.618127][ T6413] CPU0 [ 35.618771][ T6413] ---- [ 35.619429][ T6413] lock(&c->sb_lock); [ 35.620264][ T6413] lock(&c->sb_lock); [ 35.621103][ T6413] [ 35.621103][ T6413] *** DEADLOCK *** [ 35.621103][ T6413] [ 35.622701][ T6413] May be due to missing lock nesting notation [ 35.622701][ T6413] [ 35.624458][ T6413] 2 locks held by syz-executor199/6413: [ 35.625626][ T6413] #0: ffff0000dee00278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x50/0x53c [ 35.627619][ T6413] #1: ffff0000dee00908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x44/0x444 [ 35.629808][ T6413] [ 35.629808][ T6413] stack backtrace: [ 35.631144][ T6413] CPU: 0 UID: 0 PID: 6413 Comm: syz-executor199 Not tainted 6.12.0-rc3-syzkaller-gd2b1b3bccef6 #0 [ 35.633250][ T6413] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 35.635343][ T6413] Call trace: [ 35.636059][ T6413] dump_backtrace+0x1b8/0x1e4 [ 35.637031][ T6413] show_stack+0x2c/0x3c [ 35.637933][ T6413] dump_stack_lvl+0xe4/0x150 [ 35.638889][ T6413] dump_stack+0x1c/0x28 [ 35.639736][ T6413] print_deadlock_bug+0x4e8/0x668 [ 35.640819][ T6413] __lock_acquire+0x6180/0x77c8 [ 35.641889][ T6413] lock_acquire+0x240/0x728 [ 35.642829][ T6413] __mutex_lock_common+0x190/0x21a0 [ 35.644013][ T6413] mutex_lock_nested+0x2c/0x38 [ 35.644999][ T6413] bch2_replicas_entry_validate+0x34/0x88 [ 35.646146][ T6413] journal_entry_data_usage_validate+0x268/0x5ac [ 35.647488][ T6413] bch2_journal_entry_validate+0xb8/0xec [ 35.648639][ T6413] bch2_read_superblock_clean+0x1ac/0x444 [ 35.649768][ T6413] bch2_fs_recovery+0x1b8/0x55a0 [ 35.650791][ T6413] bch2_fs_start+0x30c/0x53c [ 35.651747][ T6413] bch2_fs_get_tree+0x938/0x1030 [ 35.652789][ T6413] vfs_get_tree+0x90/0x28c [ 35.653850][ T6413] do_new_mount+0x278/0x900 [ 35.654775][ T6413] path_mount+0x590/0xe04 [ 35.655660][ T6413] __arm64_sys_mount+0x45c/0x5a8 [ 35.656625][ T6413] invoke_syscall+0x98/0x2b8 [ 35.657602][ T6413] el0_svc_common+0x130/0x23c [ 35.658617][ T6413] do_el0_svc+0x48/0x58 [ 35.659504][ T6413] el0_svc+0x54/0x168 [ 35.660324][ T6413] el0t_64_sync_handler+0x84/0x108 [ 35.661504][ T6413] el0t_64_sync+0x190/0x194