Skip to content

Commit 03b0970

Browse files
fs/ntfs3: Fix possible deadlock in mi_read
Mutex lock with another subclass used in ni_lock_dir(). Reported-by: syzbot+bc7ca0ae4591cb2550f9@syzkaller.appspotmail.com Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent 589996b commit 03b0970

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/ntfs3/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry,
8181
if (err < 0)
8282
inode = ERR_PTR(err);
8383
else {
84-
ni_lock(ni);
84+
ni_lock_dir(ni);
8585
inode = dir_search_u(dir, uni, NULL);
8686
ni_unlock(ni);
8787
}

0 commit comments

Comments
 (0)