Warning: Permanently added '[localhost]:4705' (ED25519) to the list of known hosts. executing program [ 64.416227][ T5310] loop0: detected capacity change from 0 to 4096 [ 64.483640][ T5310] [ 64.484655][ T5310] ============================================ [ 64.487019][ T5310] WARNING: possible recursive locking detected [ 64.489398][ T5310] 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Not tainted [ 64.492850][ T5310] -------------------------------------------- [ 64.495145][ T5310] syz-executor295/5310 is trying to acquire lock: [ 64.497540][ T5310] ffff888044e79e60 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: mi_read+0x2e1/0x5a0 [ 64.500925][ T5310] [ 64.500925][ T5310] but task is already holding lock: [ 64.503630][ T5310] ffff888044e7ef28 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: ntfs_link+0xf4/0x270 [ 64.506872][ T5310] [ 64.506872][ T5310] other info that might help us debug this: [ 64.509778][ T5310] Possible unsafe locking scenario: [ 64.509778][ T5310] [ 64.512521][ T5310] CPU0 [ 64.513799][ T5310] ---- [ 64.515111][ T5310] lock(&ni->ni_lock#3/5); [ 64.516818][ T5310] lock(&ni->ni_lock#3/5); [ 64.518583][ T5310] [ 64.518583][ T5310] *** DEADLOCK *** [ 64.518583][ T5310] [ 64.521594][ T5310] May be due to missing lock nesting notation [ 64.521594][ T5310] [ 64.524700][ T5310] 6 locks held by syz-executor295/5310: [ 64.526890][ T5310] #0: ffff888036954420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 64.530379][ T5310] #1: ffff888044e7ea68 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 [ 64.534375][ T5310] #2: ffff888044e7f1c0 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: vfs_link+0x3b2/0x6e0 [ 64.538178][ T5310] #3: ffff888044e7e7d0 (&ni->ni_lock/6){+.+.}-{3:3}, at: ntfs_link+0xd9/0x270 [ 64.541516][ T5310] #4: ffff888044e7ef28 (&ni->ni_lock#3/5){+.+.}-{3:3}, at: ntfs_link+0xf4/0x270 [ 64.544584][ T5310] #5: ffff8880349d6128 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_look_free_mft+0x1e5/0x10c0 [ 64.548342][ T5310] [ 64.548342][ T5310] stack backtrace: [ 64.550624][ T5310] CPU: 0 UID: 0 PID: 5310 Comm: syz-executor295 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 [ 64.554652][ T5310] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 64.558466][ T5310] Call Trace: [ 64.559692][ T5310] [ 64.560765][ T5310] dump_stack_lvl+0x241/0x360 [ 64.562556][ T5310] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.564488][ T5310] ? __pfx__printk+0x10/0x10 [ 64.566223][ T5310] ? lockdep_unlock+0x16a/0x300 [ 64.568037][ T5310] print_deadlock_bug+0x483/0x620 [ 64.569921][ T5310] validate_chain+0x15e2/0x5920 [ 64.571881][ T5310] ? __pfx_validate_chain+0x10/0x10 [ 64.573845][ T5310] ? look_up_lock_class+0x77/0x170 [ 64.575818][ T5310] ? register_lock_class+0x102/0x980 [ 64.577823][ T5310] ? __pfx_register_lock_class+0x10/0x10 [ 64.579933][ T5310] ? mark_lock+0x9a/0x360 [ 64.581576][ T5310] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 64.583977][ T5310] __lock_acquire+0x1384/0x2050 [ 64.585802][ T5310] lock_acquire+0x1ed/0x550 [ 64.587502][ T5310] ? mi_read+0x2e1/0x5a0 [ 64.589103][ T5310] ? __pfx_lock_acquire+0x10/0x10 [ 64.591008][ T5310] ? __pfx___might_resched+0x10/0x10 [ 64.592921][ T5310] ? ntfs_look_free_mft+0x878/0x10c0 [ 64.594881][ T5310] ? ni_create_attr_list+0x9bd/0x1480 [ 64.596832][ T5310] ? ntfs_link+0x116/0x270 [ 64.598554][ T5310] ? do_linkat+0x555/0x6f0 [ 64.600220][ T5310] __mutex_lock+0x136/0xd70 [ 64.601902][ T5310] ? mi_read+0x2e1/0x5a0 [ 64.603341][ T5310] ? mi_read+0x1be/0x5a0 [ 64.604807][ T5310] ? mi_read+0x2e1/0x5a0 [ 64.606346][ T5310] ? __pfx___mutex_lock+0x10/0x10 [ 64.608264][ T5310] ? __up_read+0x2c2/0x6b0 [ 64.609894][ T5310] ? __pfx___up_read+0x10/0x10 [ 64.611395][ T5310] mi_read+0x2e1/0x5a0 [ 64.612831][ T5310] mi_format_new+0x1ab/0x5d0 [ 64.614502][ T5310] ni_add_subrecord+0xe2/0x430 [ 64.616223][ T5310] ntfs_look_free_mft+0x878/0x10c0 [ 64.618118][ T5310] ? __pfx_ntfs_look_free_mft+0x10/0x10 [ 64.620136][ T5310] ? ni_create_attr_list+0x1f4/0x1480 [ 64.622158][ T5310] ? ni_create_attr_list+0x1f4/0x1480 [ 64.624178][ T5310] ? ni_create_attr_list+0x1f4/0x1480 [ 64.626242][ T5310] ? mi_enum_attr+0x1ea/0xa10 [ 64.628041][ T5310] ni_create_attr_list+0x9bd/0x1480 [ 64.630041][ T5310] ? __pfx_ni_create_attr_list+0x10/0x10 [ 64.632175][ T5310] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 64.634417][ T5310] ? lockdep_hardirqs_on+0x99/0x150 [ 64.636350][ T5310] ? stack_trace_save+0x118/0x1d0 [ 64.638256][ T5310] ? __lock_acquire+0x1384/0x2050 [ 64.640164][ T5310] ni_ins_attr_ext+0x369/0xbe0 [ 64.641985][ T5310] ? ni_find_attr+0x390/0x8d0 [ 64.643809][ T5310] ? __pfx_ni_ins_attr_ext+0x10/0x10 [ 64.645805][ T5310] ? __pfx_ni_find_attr+0x10/0x10 [ 64.647667][ T5310] ni_add_name+0x809/0xe90 [ 64.649349][ T5310] ? __pfx_ni_add_name+0x10/0x10 [ 64.651188][ T5310] ? __pfx_ntfs_set_state+0x10/0x10 [ 64.653136][ T5310] ? ntfs_link_inode+0x8c/0x170 [ 64.654951][ T5310] ? fill_name_de+0x135/0x340 [ 64.656710][ T5310] ntfs_link_inode+0x130/0x170 [ 64.658543][ T5310] ntfs_link+0x116/0x270 [ 64.660119][ T5310] ? bpf_lsm_inode_link+0x9/0x10 [ 64.662031][ T5310] ? security_inode_link+0xdb/0x350 [ 64.664007][ T5310] vfs_link+0x4f0/0x6e0 [ 64.665572][ T5310] do_linkat+0x555/0x6f0 [ 64.667155][ T5310] ? __pfx_do_linkat+0x10/0x10 [ 64.668696][ T5310] ? strncpy_from_user+0x13a/0x260 [ 64.670599][ T5310] ? getname_flags+0x1e3/0x540 [ 64.672430][ T5310] __x64_sys_link+0x82/0x90 [ 64.674166][ T5310] do_syscall_64+0xf3/0x230 [ 64.675902][ T5310] ? clear_bhb_loop+0x35/0x90 [ 64.677699][ T5310] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.679921][ T5310] RIP: 0033:0x7f05ba60b779 [ 64.681567][ T5310] 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 [ 64.688797][ T5310] RSP: 002b:00007ffd308e91b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 [ 64.691928][ T5310] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f05ba60b779 [ 64.694924][ T5310] RDX: 0000000000000000 RSI: 0000000020000bc0 RDI: 0000000020001240 [ 64.697896][ T5310] RBP: 00007f05ba69e610 R08: 0000000000000000 R09: 0000000000000000 [ 64.700815][ T5310] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 64.703748][ T5310] R13: 00007ffd308e9388 R14: 0000000000000001 R15: 0000000000000001 [ 64.706634][ T5310] VM DIAGNOSIS: 08:45:04 Registers: info registers vcpu 0 CPU#0 RAX=000000000000007a RBX=ffffffff9a719ec0 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000d106750 R8 =ffffffff854b056b R9 =1ffff11006785046 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 0000555583439380 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=0000000041e10000 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 00007f05ba68f9c4 00007f05ba6a3240 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffd308e87b0 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffd308e88f0 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffd308e88f0 00007ffd308e8770 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffd308e87b0 00007ffd308e8790 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