============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.1.6/5784 is trying to acquire lock: ffff888060783688 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] ffff888060783688 (&ni->ni_lock/5){+.+.}-{4:4}, at: mi_read+0x312/0x600 fs/ntfs3/record.c:148 but task is already holding lock: ffff8880607a97e8 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] ffff8880607a97e8 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_rename+0x654/0xab0 fs/ntfs3/namei.c:351 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ni->ni_lock/5); lock(&ni->ni_lock/5); *** DEADLOCK *** May be due to missing lock nesting notation locks held by syz.1.6/5784: 5, last CPU#0: #0: ffff888040240510 (sb_writers#11){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:494 #1: ffff888060769308 (&type->i_mutex_dir_key#9/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1069 [inline] #1: ffff888060769308 (&type->i_mutex_dir_key#9/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3785 [inline] #1: ffff888060769308 (&type->i_mutex_dir_key#9/1){+.+.}-{4:4}, at: __start_renaming+0x148/0x410 fs/namei.c:3878 #2: ffff888060769040 (&ni->ni_lock#2/6){+.+.}-{4:4}, at: ni_lock_dir fs/ntfs3/ntfs_fs.h:1252 [inline] #2: ffff888060769040 (&ni->ni_lock#2/6){+.+.}-{4:4}, at: ntfs_rename+0x606/0xab0 fs/ntfs3/namei.c:350 #3: ffff8880607a97e8 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] #3: ffff8880607a97e8 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_rename+0x654/0xab0 fs/ntfs3/namei.c:351 #4: ffff888040242120 (&wnd->rw_lock/1){+.+.}-{4:4}, at: ntfs_look_free_mft+0x170/0xd90 fs/ntfs3/fsntfs.c:600 stack backtrace: CPU: 0 UID: 0 PID: 5784 Comm: syz.1.6 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x27a/0x290 kernel/locking/lockdep.c:3057 check_deadlock kernel/locking/lockdep.c:3109 [inline] validate_chain kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x261c/0x2e40 kernel/locking/lockdep.c:5254 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 __mutex_lock_common kernel/locking/rtmutex_api.c:559 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:578 ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] mi_read+0x312/0x600 fs/ntfs3/record.c:148 mi_format_new+0x1a1/0x610 fs/ntfs3/record.c:462 ni_add_subrecord+0x107/0x4a0 fs/ntfs3/frecord.c:336 ntfs_look_free_mft+0x4e5/0xd90 fs/ntfs3/fsntfs.c:744 ni_create_attr_list+0xb0a/0x1750 fs/ntfs3/frecord.c:859 ni_ins_attr_ext+0x4a0/0xba0 fs/ntfs3/frecord.c:958 ni_insert_attr fs/ntfs3/frecord.c:1126 [inline] ni_insert_resident fs/ntfs3/frecord.c:1514 [inline] ni_add_name+0x73f/0xd30 fs/ntfs3/frecord.c:2817 ni_rename+0x4a/0x110 fs/ntfs3/frecord.c:2857 ntfs_rename+0x6be/0xab0 fs/ntfs3/namei.c:355 vfs_rename+0xbd9/0xef0 fs/namei.c:6208 filename_renameat2+0x533/0x9b0 fs/namei.c:6326 __do_sys_rename fs/namei.c:6370 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6366 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc8e0b1e159 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:00007fc8ded55028 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fc8e0da6090 RCX: 00007fc8e0b1e159 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 00002000000003c0 RBP: 00007fc8e0bb5024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc8e0da6128 R14: 00007fc8e0da6090 R15: 00007ffd98ee7ab8