Warning: Permanently added '[localhost]:64736' (ED25519) to the list of known hosts. executing program [ 80.022237][ T5308] loop0: detected capacity change from 0 to 4096 [ 80.084509][ T5308] [ 80.085303][ T5308] ============================================ [ 80.087442][ T5308] WARNING: possible recursive locking detected [ 80.089454][ T5308] 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Not tainted [ 80.092841][ T5308] -------------------------------------------- [ 80.094912][ T5308] syz-executor280/5308 is trying to acquire lock: [ 80.097301][ T5308] ffff88805f336a28 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 80.100321][ T5308] [ 80.100321][ T5308] but task is already holding lock: [ 80.103157][ T5308] ffff88804753e7d0 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: ntfs_link+0xf4/0x270 [ 80.106366][ T5308] [ 80.106366][ T5308] other info that might help us debug this: [ 80.109367][ T5308] Possible unsafe locking scenario: [ 80.109367][ T5308] [ 80.112103][ T5308] CPU0 [ 80.113419][ T5308] ---- [ 80.114841][ T5308] lock(&ni->ni_lock#3/5); [ 80.116581][ T5308] lock(&ni->ni_lock#3/5); [ 80.118360][ T5308] [ 80.118360][ T5308] *** DEADLOCK *** [ 80.118360][ T5308] [ 80.121600][ T5308] May be due to missing lock nesting notation [ 80.121600][ T5308] [ 80.124815][ T5308] 6 locks held by syz-executor280/5308: [ 80.126888][ T5308] #0: ffff888032b28420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 80.130306][ T5308] #1: ffff88804753e310 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 [ 80.134245][ T5308] #2: ffff88804753ea68 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_link+0x3b2/0x6e0 [ 80.137889][ T5308] #3: ffff88804753e078 (&ni->ni_lock/6){+.+.}-{3:3}, at: ntfs_link+0xd9/0x270 [ 80.140943][ T5308] #4: ffff88804753e7d0 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: ntfs_link+0xf4/0x270 [ 80.144162][ T5308] #5: ffff888032b2e128 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_look_free_mft+0x1e5/0x10c0 [ 80.147707][ T5308] [ 80.147707][ T5308] stack backtrace: [ 80.149735][ T5308] CPU: 0 UID: 0 PID: 5308 Comm: syz-executor280 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 [ 80.153710][ T5308] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 80.157370][ T5308] Call Trace: [ 80.158561][ T5308] [ 80.159644][ T5308] dump_stack_lvl+0x241/0x360 [ 80.161454][ T5308] ? __pfx_dump_stack_lvl+0x10/0x10 [ 80.163386][ T5308] ? __pfx__printk+0x10/0x10 [ 80.165135][ T5308] ? lockdep_unlock+0x16a/0x300 [ 80.166865][ T5308] print_deadlock_bug+0x483/0x620 [ 80.168658][ T5308] validate_chain+0x15e2/0x5920 [ 80.170518][ T5308] ? __pfx_validate_chain+0x10/0x10 [ 80.172210][ T5308] ? look_up_lock_class+0x77/0x170 [ 80.174049][ T5308] ? register_lock_class+0x102/0x980 [ 80.175973][ T5308] ? __pfx_register_lock_class+0x10/0x10 [ 80.178000][ T5308] ? mark_lock+0x9a/0x360 [ 80.179568][ T5308] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 80.181871][ T5308] __lock_acquire+0x1384/0x2050 [ 80.183609][ T5308] lock_acquire+0x1ed/0x550 [ 80.185238][ T5308] ? mi_read+0x2e1/0x5a0 [ 80.186823][ T5308] ? __pfx_lock_acquire+0x10/0x10 [ 80.188627][ T5308] ? __pfx___might_resched+0x10/0x10 [ 80.190552][ T5308] ? ntfs_look_free_mft+0x878/0x10c0 [ 80.192466][ T5308] ? ni_create_attr_list+0x9bd/0x1480 [ 80.194467][ T5308] ? ntfs_link+0x116/0x270 [ 80.196106][ T5308] ? do_linkat+0x555/0x6f0 [ 80.197633][ T5308] __mutex_lock+0x136/0xd70 [ 80.199233][ T5308] ? mi_read+0x2e1/0x5a0 [ 80.200821][ T5308] ? mi_read+0x1be/0x5a0 [ 80.202383][ T5308] ? mi_read+0x2e1/0x5a0 [ 80.203964][ T5308] ? __pfx___mutex_lock+0x10/0x10 [ 80.205735][ T5308] ? __up_read+0x2c2/0x6b0 [ 80.207244][ T5308] ? __pfx___up_read+0x10/0x10 [ 80.208980][ T5308] mi_read+0x2e1/0x5a0 [ 80.210589][ T5308] mi_format_new+0x1ab/0x5d0 [ 80.212358][ T5308] ni_add_subrecord+0xe2/0x430 [ 80.214071][ T5308] ntfs_look_free_mft+0x878/0x10c0 [ 80.215778][ T5308] ? __pfx_ntfs_look_free_mft+0x10/0x10 [ 80.217625][ T5308] ? ni_create_attr_list+0x1f4/0x1480 [ 80.219439][ T5308] ? ni_create_attr_list+0x1f4/0x1480 [ 80.221215][ T5308] ? ni_create_attr_list+0x1f4/0x1480 [ 80.223028][ T5308] ? mi_enum_attr+0x1ea/0xa10 [ 80.224769][ T5308] ni_create_attr_list+0x9bd/0x1480 [ 80.226635][ T5308] ? __pfx_ni_create_attr_list+0x10/0x10 [ 80.228702][ T5308] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 80.230872][ T5308] ? lockdep_hardirqs_on+0x99/0x150 [ 80.232910][ T5308] ? stack_trace_save+0x118/0x1d0 [ 80.234746][ T5308] ni_ins_attr_ext+0x369/0xbe0 [ 80.236523][ T5308] ? ni_find_attr+0x390/0x8d0 [ 80.238159][ T5308] ? __pfx_ni_ins_attr_ext+0x10/0x10 [ 80.240173][ T5308] ? __pfx_ni_find_attr+0x10/0x10 [ 80.242104][ T5308] ni_add_name+0x809/0xe90 [ 80.243712][ T5308] ? __pfx_ni_add_name+0x10/0x10 [ 80.245411][ T5308] ? __pfx_ntfs_set_state+0x10/0x10 [ 80.247280][ T5308] ? ntfs_link_inode+0x8c/0x170 [ 80.249081][ T5308] ? fill_name_de+0x135/0x340 [ 80.250885][ T5308] ntfs_link_inode+0x130/0x170 [ 80.252723][ T5308] ntfs_link+0x116/0x270 [ 80.254228][ T5308] ? bpf_lsm_inode_link+0x9/0x10 [ 80.256017][ T5308] ? security_inode_link+0xdb/0x350 [ 80.257928][ T5308] vfs_link+0x4f0/0x6e0 [ 80.259456][ T5308] do_linkat+0x555/0x6f0 [ 80.260983][ T5308] ? __pfx_do_linkat+0x10/0x10 [ 80.262735][ T5308] ? strncpy_from_user+0x13a/0x260 [ 80.264639][ T5308] ? getname_flags+0x1e3/0x540 [ 80.266402][ T5308] __x64_sys_link+0x82/0x90 [ 80.268059][ T5308] do_syscall_64+0xf3/0x230 [ 80.269679][ T5308] ? clear_bhb_loop+0x35/0x90 [ 80.271405][ T5308] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.273538][ T5308] RIP: 0033:0x7f927e890779 [ 80.275201][ T5308] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 80.281824][ T5308] RSP: 002b:00007fff63b3c098 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 [ 80.284658][ T5308] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f927e890779 [ 80.287280][ T5308] RDX: 0000000000000000 RSI: 0000000020000bc0 RDI: 0000000020001240 [ 80.290035][ T5308] RBP: 00007f927e923610 R08: 0000000000000000 R09: 0000000000000000 [ 80.292830][ T5308] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 80.295686][ T5308] R13: 00007fff63b3c268 R14: 0000000000000001 R15: 0000000000000001 [ 80.298557][ T5308] [ 86.523492][ T52] cfg80211: failed to load regulatory.db VM DIAGNOSIS: 10:09:05 Registers: info registers vcpu 0 CPU#0 RAX=000000000000007a RBX=ffffffff9a719ec0 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000d0b6750 R8 =ffffffff854b056b R9 =1ffff110067a5046 R10=dffffc0000000000 R11=ffffffff854b0520 R12=dffffc0000000000 R13=ffffffff9a414f05 R14=000000000000007a R15=00000000000003f8 RIP=ffffffff854b059e 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 00005555681ef380 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=0000000020001320 CR3=0000000036a96000 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=00000000ffffffff Opmask01=0000000000000000 Opmask02=000000000000001f Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 6161616161616161 6161616161616161 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0061616161616161 6161616161616161 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 6161616161616161 6130656c69662f2e ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007f927e9149c4 00007f927e928240 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff63b3b690 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff63b3b7d0 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff63b3b7d0 00007fff63b3b650 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007fff63b3b690 00007fff63b3b670 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 0000000000000000 0000000000000000 0000000000000000 000000337366746e ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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