+1
−0
+17
−10
Loading
mainline inclusion from mainline-v6.12-rc1 commit a2187431c395cdfbf144e3536f25468c64fc7cfa category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYR8N CVE: CVE-2024-49968 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a2187431c395cdfbf144e3536f25468c64fc7cfa -------------------------------- Commit 985b67cd8639 ("ext4: filesystems without casefold feature cannot be mounted with siphash") properly rejects volumes where s_def_hash_version is set to DX_HASH_SIPHASH, but the check and the error message should not look into casefold setup - a filesystem should never have DX_HASH_SIPHASH as the default hash. Fix it and, since we are there, move the check to ext4_hash_info_init. Fixes:985b67cd8639 ("ext4: filesystems without casefold feature cannot be mounted with siphash") Signed-off-by:Gabriel Krisman Bertazi <krisman@suse.de> Link: https://patch.msgid.link/87jzg1en6j.fsf_-_@mailhost.krisman.be Signed-off-by:
Theodore Ts'o <tytso@mit.edu> Conflicts: fs/ext4/super.c [Context differences.] Signed-off-by:
Yongjian Sun <sunyongjian1@huawei.com>