loop3: detected capacity change from 0 to 4096 ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.3.352/6052 is trying to acquire lock: ffff888070514ac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1102 [inline] ffff888070514ac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: mi_read+0x2d0/0x590 fs/ntfs3/record.c:148 but task is already holding lock: ffff8880706acac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1102 [inline] ffff8880706acac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: ntfs_rename+0x6fe/0xc50 fs/ntfs3/namei.c:315 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 6 locks held by syz.3.352/6052: #0: ffff88807d5da460 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:402 #1: ffff888070512120 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: lock_rename include/linux/fs.h:-1 [inline] #1: ffff888070512120 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: do_renameat2+0x423/0xc70 fs/namei.c:4974 #2: ffff8880706acd60 (&sb->s_type->i_mutex_key#24/4){+.+.}-{3:3}, at: vfs_rename+0x7dc/0x10d0 fs/namei.c:4853 #3: ffff888070511e80 (&ni->ni_lock/6){+.+.}-{3:3}, at: ni_lock_dir fs/ntfs3/ntfs_fs.h:1107 [inline] #3: ffff888070511e80 (&ni->ni_lock/6){+.+.}-{3:3}, at: ntfs_rename+0x6e8/0xc50 fs/ntfs3/namei.c:314 #4: ffff8880706acac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1102 [inline] #4: ffff8880706acac0 (&ni->ni_lock/5){+.+.}-{3:3}, at: ntfs_rename+0x6fe/0xc50 fs/ntfs3/namei.c:315 #5: ffff88807d5dc120 (&wnd->rw_lock/1){+.+.}-{3:3}, at: ntfs_look_free_mft+0x160/0xd40 fs/ntfs3/fsntfs.c:542 stack backtrace: CPU: 0 PID: 6052 Comm: syz.3.352 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 __lock_acquire+0x122f/0x7c50 kernel/locking/lockdep.c:-1 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x120/0xaf0 kernel/locking/mutex.c:747 ni_lock fs/ntfs3/ntfs_fs.h:1102 [inline] mi_read+0x2d0/0x590 fs/ntfs3/record.c:148 mi_format_new+0x1ba/0x5d0 fs/ntfs3/record.c:414 ni_add_subrecord+0xcc/0x440 fs/ntfs3/frecord.c:373 ntfs_look_free_mft+0x6a4/0xd40 fs/ntfs3/fsntfs.c:686 ni_create_attr_list+0x8a2/0x12c0 fs/ntfs3/frecord.c:875 ni_ins_attr_ext+0x31a/0xa00 fs/ntfs3/frecord.c:976 ni_insert_attr fs/ntfs3/frecord.c:1143 [inline] ni_insert_resident fs/ntfs3/frecord.c:1527 [inline] ni_add_name+0x4fb/0xa00 fs/ntfs3/frecord.c:3105 ni_rename+0x4b/0x130 fs/ntfs3/frecord.c:3145 ntfs_rename+0x728/0xc50 fs/ntfs3/namei.c:318 vfs_rename+0xbbf/0x10d0 fs/namei.c:4882 do_renameat2+0x89d/0xc70 fs/namei.c:5035 __do_sys_rename fs/namei.c:5081 [inline] __se_sys_rename fs/namei.c:5079 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5079 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7a3b78f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7a3c6a7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f7a3b9e5fa0 RCX: 00007f7a3b78f749 RDX: 0000000000000000 RSI: 0000200000000180 RDI: 00002000000003c0 RBP: 00007f7a3b813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7a3b9e6038 R14: 00007f7a3b9e5fa0 R15: 00007ffd28afee28