Warning: Permanently added '[localhost]:21599' (ED25519) to the list of known hosts. executing program syzkaller login: [ 91.361240][ T5111] loop0: detected capacity change from 0 to 32768 [ 91.382741][ T5111] bcachefs (/dev/loop0): error reading default superblock: Invalid superblock: too big (got 4696 bytes, layout max 512) [ 91.477771][ T5111] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,compression=lz4,nojournal_transaction_names [ 91.483657][ T5111] [ 91.484721][ T5111] ============================================ [ 91.487121][ T5111] WARNING: possible recursive locking detected [ 91.489996][ T5111] 6.12.0-rc2-syzkaller-00307-g36c254515dc6 #0 Not tainted [ 91.494398][ T5111] -------------------------------------------- [ 91.496805][ T5111] syz-executor158/5111 is trying to acquire lock: [ 91.498873][ T5111] ffff888041800908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_replicas_entry_validate+0x2a/0x80 [ 91.502408][ T5111] [ 91.502408][ T5111] but task is already holding lock: [ 91.504897][ T5111] ffff888041800908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 91.508134][ T5111] [ 91.508134][ T5111] other info that might help us debug this: [ 91.511328][ T5111] Possible unsafe locking scenario: [ 91.511328][ T5111] [ 91.514746][ T5111] CPU0 [ 91.516228][ T5111] ---- [ 91.517523][ T5111] lock(&c->sb_lock); [ 91.519090][ T5111] lock(&c->sb_lock); [ 91.520430][ T5111] [ 91.520430][ T5111] *** DEADLOCK *** [ 91.520430][ T5111] [ 91.522680][ T5111] May be due to missing lock nesting notation [ 91.522680][ T5111] [ 91.525043][ T5111] 2 locks held by syz-executor158/5111: [ 91.527250][ T5111] #0: ffff888041800278 (&c->state_lock){+.+.}-{3:3}, at: bch2_fs_start+0x45/0x5b0 [ 91.532007][ T5111] #1: ffff888041800908 (&c->sb_lock){+.+.}-{3:3}, at: bch2_read_superblock_clean+0x36/0x520 [ 91.536301][ T5111] [ 91.536301][ T5111] stack backtrace: [ 91.538135][ T5111] CPU: 0 UID: 0 PID: 5111 Comm: syz-executor158 Not tainted 6.12.0-rc2-syzkaller-00307-g36c254515dc6 #0 [ 91.541989][ T5111] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 91.546098][ T5111] Call Trace: [ 91.547349][ T5111] [ 91.548667][ T5111] dump_stack_lvl+0x241/0x360 [ 91.550453][ T5111] ? __pfx_dump_stack_lvl+0x10/0x10 [ 91.552290][ T5111] ? __pfx__printk+0x10/0x10 [ 91.554187][ T5111] ? lockdep_unlock+0x16a/0x300 [ 91.556126][ T5111] print_deadlock_bug+0x483/0x620 [ 91.558029][ T5111] validate_chain+0x15e2/0x5920 [ 91.559521][ T5111] ? __pfx___bfs+0x10/0x10 [ 91.561003][ T5111] ? __pfx_validate_chain+0x10/0x10 [ 91.562731][ T5111] ? mark_lock+0x9a/0x360 [ 91.564402][ T5111] ? __lock_acquire+0x1384/0x2050 [ 91.566343][ T5111] ? mark_lock+0x9a/0x360 [ 91.568112][ T5111] __lock_acquire+0x1384/0x2050 [ 91.570140][ T5111] lock_acquire+0x1ed/0x550 [ 91.572249][ T5111] ? bch2_replicas_entry_validate+0x2a/0x80 [ 91.574989][ T5111] ? __pfx_lock_acquire+0x10/0x10 [ 91.577589][ T5111] ? lockdep_hardirqs_on+0x99/0x150 [ 91.580107][ T5111] ? __pfx___might_resched+0x10/0x10 [ 91.582196][ T5111] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 91.584494][ T5111] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 91.586908][ T5111] ? stack_trace_save+0x118/0x1d0 [ 91.588959][ T5111] __mutex_lock+0x136/0xd70 [ 91.590891][ T5111] ? bch2_replicas_entry_validate+0x2a/0x80 [ 91.593385][ T5111] ? kasan_save_track+0x51/0x80 [ 91.595553][ T5111] ? kasan_save_track+0x3f/0x80 [ 91.598277][ T5111] ? __kasan_kmalloc+0x98/0xb0 [ 91.601764][ T5111] ? __kmalloc_node_track_caller_noprof+0x225/0x440 [ 91.604899][ T5111] ? kmemdup_noprof+0x2a/0x60 [ 91.606658][ T5111] ? bch2_read_superblock_clean+0xd6/0x520 [ 91.608928][ T5111] ? bch2_replicas_entry_validate+0x2a/0x80 [ 91.611409][ T5111] ? bch2_fs_start+0x356/0x5b0 [ 91.613238][ T5111] ? __pfx___mutex_lock+0x10/0x10 [ 91.615192][ T5111] ? do_syscall_64+0xf3/0x230 [ 91.616988][ T5111] bch2_replicas_entry_validate+0x2a/0x80 [ 91.619776][ T5111] journal_entry_data_usage_validate+0x2b6/0x690 [ 91.622735][ T5111] ? __pfx_journal_entry_data_usage_validate+0x10/0x10 [ 91.626061][ T5111] ? journal_entry_usage_validate+0xc2/0x360 [ 91.628222][ T5111] ? __pfx_journal_entry_usage_validate+0x10/0x10 [ 91.630594][ T5111] ? rcu_is_watching+0x15/0xb0 [ 91.632469][ T5111] ? trace_kmalloc+0x1f/0xd0 [ 91.634156][ T5111] ? __kmalloc_node_track_caller_noprof+0x242/0x440 [ 91.636731][ T5111] ? kmemdup_noprof+0x45/0x60 [ 91.638816][ T5111] ? bch2_journal_entry_validate+0x6a/0xf0 [ 91.641788][ T5111] bch2_read_superblock_clean+0x207/0x520 [ 91.644310][ T5111] bch2_fs_recovery+0x1f4/0x39c0 [ 91.646371][ T5111] ? mark_lock+0x9a/0x360 [ 91.648112][ T5111] ? __lock_acquire+0x1384/0x2050 [ 91.649900][ T5111] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 91.651947][ T5111] ? __pfx_lock_release+0x10/0x10 [ 91.653956][ T5111] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 91.656246][ T5111] ? __pfx_lock_release+0x10/0x10 [ 91.658313][ T5111] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 91.660931][ T5111] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 91.664575][ T5111] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 91.667045][ T5111] ? llist_reverse_order+0x72/0x90 [ 91.669178][ T5111] bch2_fs_start+0x356/0x5b0 [ 91.670849][ T5111] bch2_fs_get_tree+0xd68/0x1710 [ 91.672451][ T5111] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 91.674339][ T5111] ? generic_parse_monolithic+0x387/0x400 [ 91.676198][ T5111] ? apparmor_capable+0x13b/0x1b0 [ 91.678125][ T5111] vfs_get_tree+0x90/0x2b0 [ 91.679708][ T5111] do_new_mount+0x2be/0xb40 [ 91.681478][ T5111] ? __pfx_do_new_mount+0x10/0x10 [ 91.683458][ T5111] __se_sys_mount+0x2d6/0x3c0 [ 91.685380][ T5111] ? __pfx___se_sys_mount+0x10/0x10 [ 91.687682][ T5111] ? do_syscall_64+0x100/0x230 [ 91.690164][ T5111] ? __x64_sys_mount+0x20/0xc0 [ 91.692432][ T5111] do_syscall_64+0xf3/0x230 [ 91.694239][ T5111] ? clear_bhb_loop+0x35/0x90 [ 91.695968][ T5111] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 91.698422][ T5111] RIP: 0033:0x7fd96a444dea [ 91.701657][ T5111] 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 [ 91.710757][ T5111] RSP: 002b:00007ffd7c53b8e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 91.714183][ T5111] RAX: ffffffffffffffda RBX: 00007ffd7c53b900 RCX: 00007fd96a444dea [ 91.717363][ T5111] RDX: 0000000020005d80 RSI: 0000000020005dc0 RDI: 00007ffd7c53b900 [ 91.722553][ T5111] RBP: 0000000000000004 R08: 00007ffd7c53b940 R09: 0000000000005da2 [ 91.726043][ T5111] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000 [ 91.729320][ T5111] R13: 00007ffd7c53b940 R14: 0000000000000003 R15: 0000000001000000 [ 91.732486][ T5111] [ 96.958995][ T1213] cfg80211: failed to load regulatory.db VM DIAGNOSIS: 17:59:52 Registers: info registers vcpu 0 CPU#0 RAX=000000000000006c RBX=ffffffff9a713e40 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc90000e46570 R8 =ffffffff8549a7bb R9 =1ffff110065f7046 R10=dffffc0000000000 R11=ffffffff8549a770 R12=dffffc0000000000 R13=ffffffff9a40ef09 R14=000000000000006c R15=00000000000003f8 RIP=ffffffff8549a7ee 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 000055556c8f6380 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=0000564e9c0bcb68 CR3=0000000039c0a000 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=0000000000440401 Opmask01=0000000000000001 Opmask02=00000000fff7ffff Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffd7c53ba80 0000003000000018 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fd96a4c8560 00007fd96a4bc5d8 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fd96a4ae064 00007fd96a4c1240 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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 65723d73726f7272 6500747865003036 36396f7369007265 6c6c616b7a797300 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 40571856574a5757 4000515d40001513 131c4a564c005740 4949444e5f5c5600 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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