]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Kernel: Mitigate Straight-Line-Speculation on x86_64
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 11 Jun 2022 18:42:08 +0000 (18:42 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 13 Jun 2022 15:39:35 +0000 (15:39 +0000)
See https://lwn.net/Articles/877845/ for the rationale behind this. The
feature is currently only available on the x86_64 platform.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
config/kernel/kernel.config.x86_64-ipfire

index e8b48de57701b7e8a3730739cd517fd1d01f5906..68c6e7b34177d6f19835c9f38345d032eb2167ca 100644 (file)
@@ -322,6 +322,8 @@ CONFIG_X86_X2APIC=y
 CONFIG_X86_MPPARSE=y
 # CONFIG_GOLDFISH is not set
 CONFIG_RETPOLINE=y
+CONFIG_CC_HAS_SLS=y
+CONFIG_SLS=y
 # CONFIG_X86_CPU_RESCTRL is not set
 CONFIG_X86_EXTENDED_PLATFORM=y
 # CONFIG_X86_VSMP is not set