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)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Aug 2024 01:20:25 +0000 (21:20 -0400)
commit70dd7b573afeba9b8f8a33f2ae1e4a9a2ec8c1ec
tree062fa6f2281cc159038c02450f562e6176e7d03a
parent5071010ac3aa32a1b0f0b4c14d3ea6b217ba21ba
ext4: correct encrypted dentry name hash when not casefolded

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
fs/ext4/dir.c