ntfs3(loop9): ino=1f, mi_enum_attr ntfs3(loop9): ino=1f, mi_enum_attr ============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- syz-executor/15469 is trying to acquire lock: ffff8880438d3978 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1251 [inline] ffff8880438d3978 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: mi_read+0x312/0x600 fs/ntfs3/record.c:148 but task is already holding lock: ffff888043bceae8 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1251 [inline] ffff888043bceae8 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: ntfs_readdir+0x58c/0xe50 fs/ntfs3/dir.c:536 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ni->ni_lock#2/5); lock(&ni->ni_lock#2/5); *** DEADLOCK *** May be due to missing lock nesting notation locks held by syz-executor/15469: 3, last CPU#1: #0: ffff88801311d7b0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160 fs/file.c:1409 #1: ffff888043bced80 (&type->i_mutex_dir_key#12){++++}-{4:4}, at: iterate_dir+0x287/0x880 fs/readdir.c:106 #2: ffff888043bceae8 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: ni_lock fs/ntfs3/ntfs_fs.h:1251 [inline] #2: ffff888043bceae8 (&ni->ni_lock#2/5){+.+.}-{4:4}, at: ntfs_readdir+0x58c/0xe50 fs/ntfs3/dir.c:536 stack backtrace: CPU: 1 UID: 0 PID: 15469 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 ni_lock fs/ntfs3/ntfs_fs.h:1251 [inline] mi_read+0x312/0x600 fs/ntfs3/record.c:148 ntfs_read_mft fs/ntfs3/inode.c:76 [inline] ntfs_iget5_flags+0x936/0x4780 fs/ntfs3/inode.c:734 ntfs_iget5 fs/ntfs3/ntfs_fs.h:804 [inline] ntfs_dir_emit fs/ntfs3/dir.c:393 [inline] ntfs_read_hdr+0x793/0xc10 fs/ntfs3/dir.c:441 ntfs_readdir+0x65f/0xe50 fs/ntfs3/dir.c:562 iterate_dir+0x3db/0x880 fs/readdir.c:114 __do_sys_getdents64 fs/readdir.c:404 [inline] __se_sys_getdents64+0xf1/0x280 fs/readdir.c:389 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:0x7fc36a7c6ef3 Code: c7 c0 e8 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb 9e e8 81 9b fd ff 90 b8 ff ff ff 7f 48 39 c2 48 0f 47 d0 b8 d9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7 d8 RSP: 002b:00007ffedb5d06b8 EFLAGS: 00000293 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 0000555557388a90 RCX: 00007fc36a7c6ef3 RDX: 0000000000008000 RSI: 0000555557388ac0 RDI: 0000000000000006 RBP: 0000555557388ac0 R08: 00007fc36a9f6e20 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000293 R12: 0000555557388a94 R13: ffffffffffffffe8 R14: 0000000000000016 R15: 00007ffedb5d3a50