============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.3.702/11281 is trying to acquire lock: ffff88806703e548 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1217 [inline] ffff88806703e548 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: mi_read+0x2dd/0x5b0 fs/ntfs3/record.c:148 but task is already holding lock: ffff8880671c2f40 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1217 [inline] ffff8880671c2f40 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: ntfs_rename+0x6a7/0xb40 fs/ntfs3/namei.c:327 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ni->ni_lock#3/5); lock(&ni->ni_lock#3/5); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz.3.702/11281: #0: ffff888031f1e480 (sb_writers#17){++++}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:493 #1: ffff88806703e050 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1073 [inline] #1: ffff88806703e050 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3756 [inline] #1: ffff88806703e050 (&type->i_mutex_dir_key#10/1){+.+.}-{4:4}, at: __start_renaming+0x148/0x410 fs/namei.c:3852 #2: ffff88806703dd90 (&ni->ni_lock/6){+.+.}-{4:4}, at: ni_lock_dir fs/ntfs3/ntfs_fs.h:1222 [inline] #2: ffff88806703dd90 (&ni->ni_lock/6){+.+.}-{4:4}, at: ntfs_rename+0x693/0xb40 fs/ntfs3/namei.c:326 #3: ffff8880671c2f40 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1217 [inline] #3: ffff8880671c2f40 (&ni->ni_lock#3/5){+.+.}-{4:4}, at: ntfs_rename+0x6a7/0xb40 fs/ntfs3/namei.c:327 #4: ffff88803491e120 (&wnd->rw_lock/1){+.+.}-{4:4}, at: ntfs_look_free_mft+0x170/0xd70 fs/ntfs3/fsntfs.c:594 stack backtrace: CPU: 0 UID: 0 PID: 11281 Comm: syz.3.702 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x279/0x290 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x253f/0x2cf0 kernel/locking/lockdep.c:5237 lock_acquire+0xf0/0x2e0 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/rtmutex_api.c:533 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:552 ni_lock fs/ntfs3/ntfs_fs.h:1217 [inline] mi_read+0x2dd/0x5b0 fs/ntfs3/record.c:148 mi_format_new+0x1a3/0x610 fs/ntfs3/record.c:434 ni_add_subrecord+0xd1/0x460 fs/ntfs3/frecord.c:323 ntfs_look_free_mft+0x4e1/0xd70 fs/ntfs3/fsntfs.c:738 ni_create_attr_list+0x94b/0x1450 fs/ntfs3/frecord.c:830 ni_ins_attr_ext+0x461/0xba0 fs/ntfs3/frecord.c:928 ni_insert_attr fs/ntfs3/frecord.c:1095 [inline] ni_insert_resident fs/ntfs3/frecord.c:1479 [inline] ni_add_name+0x6df/0xc90 fs/ntfs3/frecord.c:2756 ni_rename+0x4a/0x100 fs/ntfs3/frecord.c:2795 ntfs_rename+0x6ea/0xb40 fs/ntfs3/namei.c:331 vfs_rename+0xa96/0xeb0 fs/namei.c:6026 filename_renameat2+0x539/0x9c0 fs/namei.c:6144 __do_sys_rename fs/namei.c:6188 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6184 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f941c2bc799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f941a4ed028 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f941c536090 RCX: 00007f941c2bc799 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 00002000000003c0 RBP: 00007f941c352c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f941c536128 R14: 00007f941c536090 R15: 00007ffeaed274a8