Skip to content
Commit 00cf046a authored by Eric Biggers's avatar Eric Biggers Committed by Greg Kroah-Hartman
Browse files

x86/cpufeatures: Fix dependencies for GFNI, VAES, and VPCLMULQDQ

[ Upstream commit 9543f6e2 ]

Fix cpuid_deps[] to list the correct dependencies for GFNI, VAES, and
VPCLMULQDQ.  These features don't depend on AVX512, and there exist CPUs
that support these features but not AVX512.  GFNI actually doesn't even
depend on AVX.

This prevents GFNI from being unnecessarily disabled if AVX is disabled
to mitigate the GDS vulnerability.

This also prevents all three features from being unnecessarily disabled
if AVX512VL (or its dependency AVX512F) were to be disabled, but it
looks like there isn't any case where this happens anyway.

Fixes: c128dbfa

 ("x86/cpufeatures: Enable new SSE/AVX/AVX512 CPU features")
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Acked-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20240417060434.47101-1-ebiggers@kernel.org
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5facc042
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment