]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hfsplus: return EIO when type of hidden directory mismatch in hfsplus_fill_super()
authorYangtao Li <frank.li@vivo.com>
Tue, 5 Aug 2025 16:58:59 +0000 (10:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:36 +0000 (14:04 +0100)
commit50699386d2043bfcc5ac30bb4c3ee91dd92184a2
treea0a22388fb8cf194bcacaa5649c89c2404a09878
parente148ed5cda8fd96d4620c4622fb02f552a2d166a
hfsplus: return EIO when type of hidden directory mismatch in hfsplus_fill_super()

[ Upstream commit 9282bc905f0949fab8cf86c0f620ca988761254c ]

If Catalog File contains corrupted record for the case of
hidden directory's type, regard it as I/O error instead of
Invalid argument.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/20250805165905.3390154-1-frank.li@vivo.com
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/hfsplus/super.c