]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: correct encrypted dentry name hash when not casefolded
authoryao.ly <yao.ly@linux.alibaba.com>
Mon, 1 Jul 2024 06:43:39 +0000 (14:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:37 +0000 (15:11 +0200)
commita1f71afb4f14722c4dd551168e335ce1a11decb0
tree4cca8a183147765704aa9e130a9748e5ecfd915c
parentaca593e6070e21979430c344e9cb0b272a9e7e10
ext4: correct encrypted dentry name hash when not casefolded

commit 70dd7b573afeba9b8f8a33f2ae1e4a9a2ec8c1ec upstream.

EXT4_DIRENT_HASH and EXT4_DIRENT_MINOR_HASH will access struct
ext4_dir_entry_hash followed ext4_dir_entry. But there is no ext4_dir_entry_hash
followed when inode is encrypted and not casefolded

Signed-off-by: yao.ly <yao.ly@linux.alibaba.com>
Link: https://patch.msgid.link/1719816219-128287-1-git-send-email-yao.ly@linux.alibaba.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/dir.c