============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.7.462/11532 is trying to acquire lock: ffff888066b180f0 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] ffff888066b180f0 (&ni->ni_lock/5){+.+.}-{4:4}, at: mi_read+0x312/0x600 fs/ntfs3/record.c:148 but task is already holding lock: ffff88805fc34d80 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] ffff88805fc34d80 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_readdir+0x717/0xf70 fs/ntfs3/dir.c:541 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.7.462/11532: 3, last CPU#1: #0: ffff888025b3a528 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x252/0x320 fs/file.c:1259 #1: ffff88805fc35048 (&type->i_mutex_dir_key#16){++++}-{4:4}, at: iterate_dir+0x215/0x4e0 fs/readdir.c:103 #2: ffff88805fc34d80 (&ni->ni_lock/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] #2: ffff88805fc34d80 (&ni->ni_lock/5){+.+.}-{4:4}, at: ntfs_readdir+0x717/0xf70 fs/ntfs3/dir.c:541 stack backtrace: CPU: 1 UID: 0 PID: 11532 Comm: syz.7.462 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/08/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x27a/0x290 kernel/locking/lockdep.c:3085 check_deadlock kernel/locking/lockdep.c:3137 [inline] validate_chain kernel/locking/lockdep.c:3939 [inline] __lock_acquire+0x25db/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/rtmutex_api.c:561 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:580 ni_lock fs/ntfs3/ntfs_fs.h:1247 [inline] mi_read+0x312/0x600 fs/ntfs3/record.c:148 ntfs_read_mft fs/ntfs3/inode.c:76 [inline] ntfs_iget5_flags+0x936/0x4710 fs/ntfs3/inode.c:728 ntfs_iget5 fs/ntfs3/ntfs_fs.h:800 [inline] ntfs_dir_emit fs/ntfs3/dir.c:381 [inline] ntfs_read_hdr+0x78a/0xc10 fs/ntfs3/dir.c:429 ntfs_readdir+0x9ab/0xf70 fs/ntfs3/dir.c:589 iterate_dir+0x2f1/0x4e0 fs/readdir.c:110 __do_sys_getdents64 fs/readdir.c:399 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:384 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:0x7f656a08e159 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:00007f65682e6028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f656a315fa0 RCX: 00007f656a08e159 RDX: 00000000000000e0 RSI: 0000200000000fc0 RDI: 0000000000000004 RBP: 00007f656a12506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f656a316038 R14: 00007f656a315fa0 R15: 00007ffda7388d38