]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix error message when rejecting the default hash
authorGabriel Krisman Bertazi <krisman@suse.de>
Thu, 8 Jan 2026 15:03:50 +0000 (12:03 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 14:22:33 +0000 (15:22 +0100)
commit0eb7d3da258b05538f573200fab751420ca93b2f
tree1156c73c0c9abdf5793d40972b0193c526235590
parent52c4538a92da6f3242d4140c03ddc5ee71b39ba8
ext4: fix error message when rejecting the default hash

commit a2187431c395cdfbf144e3536f25468c64fc7cfa upstream.

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>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/super.c