]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation: Make all RETbleed mitigations 64-bit only
authorBen Hutchings <ben@decadent.org.uk>
Sat, 23 Jul 2022 15:22:47 +0000 (17:22 +0200)
committerBorislav Petkov <bp@suse.de>
Sat, 23 Jul 2022 16:45:11 +0000 (18:45 +0200)
commit241fbd3ea886d2593a52ae4ba5db7b04788cc4ed
tree9731e6188db1d88ade89c18f31db30faba007bf9
parent4d70d0dab29dea00dc350c104571c2c160ed6357
x86/speculation: Make all RETbleed mitigations 64-bit only

The mitigations for RETBleed are currently ineffective on x86_32 since
entry_32.S does not use the required macros.  However, for an x86_32
target, the kconfig symbols for them are still enabled by default and
/sys/devices/system/cpu/vulnerabilities/retbleed will wrongly report
that mitigations are in place.

Make all of these symbols depend on X86_64, and only enable RETHUNK by
default on X86_64.

Fixes: 647c1deea862 ("x86/retbleed: Add fine grained Kconfig knobs")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YtwSR3NNsWp1ohfV@decadent.org.uk
arch/x86/Kconfig