Skip to content

x86/cpu: Fix SPECULATIVE_MITIGATION=n kernels

Sean Christopherson linux-arch linux-arm-kernel linux-doc linux-renesas-soc linuxppc-dev lkml stable 1 version Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=nkernel/cpu.c+2 -111 replies
2/3x86/cpu: Disable BHI mitigation by default when SPECULATION_MITIGATIONS=narch/x86/kernel/cpu/bugs.c+3 -30 replies
3/3x86/cpu: Ignore "mitigations" kernel parameter if SPECULATION_MITIGATIONS=nDocumentation/admin-guide/kernel-parameters.txt arch/x86/Kconfig kernel/cpu.c+12 -31 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel SneddonGeert Uytterhoeven
SeriesR-b
1/3T-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] x86/cpu: Fix SPECULATIVE_MITIGATION=n kernels

Fix the handling of SPECULATION_MITIGATIONS=n so that it actually does what it says it does: disable any and all mitigations.

And because I don't see a way to provide sane behavior for overriding SPECULATION_MITIGATIONS=n at runtime, explicitly disallow doing so via the "mitigations" kernel parameter, e.g. so that the user at least knows that their system is still likely vulnerable to a variety of issues.

Sean Christopherson (3):
x86/cpu: Actually turn off mitigations by default for
SPECULATION_MITIGATIONS=n
x86/cpu: Disable BHI mitigation by default when
SPECULATION_MITIGATIONS=n
x86/cpu: Ignore "mitigations" kernel parameter if
SPECULATION_MITIGATIONS=n

 Documentation/admin-guide/kernel-parameters.txt |  3 +++
 arch/x86/Kconfig                                | 10 +++++++---
 arch/x86/kernel/cpu/bugs.c                      |  6 +++---
 kernel/cpu.c                                    |  5 ++++-
 4 files changed, 17 insertions(+), 7 deletions(-)

base-commit: 2c71fdf02a95b3dd425b42f28fd47fb2b1d22702

Signature · 1 line
2.44.0.478.gd926399ef9-goog