============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.0.838/8181 is trying to acquire lock: ffff888065256b40 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1222 [inline] ffff888065256b40 (&ni->ni_lock/5){+.+.}-{4:4}, at: mi_read+0x2dd/0x5b0 fs/ntfs3/record.c:148 but task is already holding lock: ffff888060e48888 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1222 [inline] ffff888060e48888 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_readdir+0x752/0xec0 fs/ntfs3/dir.c:499 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 3 locks held by syz.0.838/8181: #0: ffff888034bc3728 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x252/0x320 fs/file.c:1259 #1: ffff888060e48b40 (&type->i_mutex_dir_key#19){++++}-{4:4}, at: iterate_dir+0x215/0x4e0 fs/readdir.c:103 #2: ffff888060e48888 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1222 [inline] #2: ffff888060e48888 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_readdir+0x752/0xec0 fs/ntfs3/dir.c:499 stack backtrace: CPU: 0 UID: 0 PID: 8181 Comm: syz.0.838 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x279/0x290 kernel/locking/lockdep.c:3043 check_deadlock kernel/locking/lockdep.c:3095 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x24df/0x2ce0 kernel/locking/lockdep.c:5239 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5870 __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:1222 [inline] mi_read+0x2dd/0x5b0 fs/ntfs3/record.c:148 ntfs_read_mft fs/ntfs3/inode.c:71 [inline] ntfs_iget5+0x433/0x3760 fs/ntfs3/inode.c:542 ntfs_dir_emit fs/ntfs3/dir.c:339 [inline] ntfs_read_hdr+0x787/0xc10 fs/ntfs3/dir.c:387 ntfs_readdir+0x9ea/0xec0 fs/ntfs3/dir.c:547 iterate_dir+0x2f1/0x4e0 fs/readdir.c:110 __do_sys_getdents fs/readdir.c:319 [inline] __se_sys_getdents+0xf1/0x270 fs/readdir.c:304 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff517d2ce59 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:00007ff515f65028 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007ff517fa6090 RCX: 00007ff517d2ce59 RDX: 000000000000003a RSI: 0000200000000080 RDI: 0000000000000005 RBP: 00007ff517dc2e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff517fa6128 R14: 00007ff517fa6090 R15: 00007ffd62085d98 ntfs3(loop0): MFT: r=20, expect seq=1 instead of 0!