diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-08-28 11:55:53 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-10-01 12:19:06 +0300 |
commit | 03b097099eef255fbf85ea6a786ae3c91b11f041 (patch) | |
tree | 63f99d47e9bb7150cfe8500954c1211309b7237f /fs/ntfs3 | |
parent | 589996bf8c459deb5bbc9747d8f1c51658608103 (diff) |
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>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c index 4c35262449d7..abf7e81584a9 100644 --- a/fs/ntfs3/namei.c +++ b/fs/ntfs3/namei.c @@ -81,7 +81,7 @@ static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry, if (err < 0) inode = ERR_PTR(err); else { - ni_lock(ni); + ni_lock_dir(ni); inode = dir_search_u(dir, uni, NULL); ni_unlock(ni); } |