[PATCH 0/7] x86/bugs: BHI fixes / improvements

From: Josh Poimboeuf
Date: Thu Apr 11 2024 - 01:42:03 EST


An assortment of BHI fixes.

Josh Poimboeuf (7):
x86/bugs: BHI documentation fixes
x86/bugs: Cache the value of MSR_IA32_ARCH_CAPABILITIES
x86/bugs: Fix BHI handling of RRSBA
x86/bugs: Clarify that syscall hardening isn't a BHI mitigation
x86/bugs: Only harden syscalls when needed
x86/bugs: Remove CONFIG_BHI_MITIGATION_AUTO and spectre_bhi=auto
x86/bugs: Replace CONFIG_SPECTRE_BHI_{ON,OFF} with
CONFIG_MITIGATION_SPECTRE_BHI

Documentation/admin-guide/hw-vuln/spectre.rst | 22 ++---
.../admin-guide/kernel-parameters.txt | 12 +--
arch/x86/Kconfig | 22 +----
arch/x86/entry/common.c | 30 +++++-
arch/x86/entry/syscall_32.c | 11 +--
arch/x86/entry/syscall_64.c | 8 +-
arch/x86/entry/syscall_x32.c | 7 +-
arch/x86/include/asm/cpufeatures.h | 1 +
arch/x86/include/asm/syscall.h | 8 +-
arch/x86/kernel/cpu/bugs.c | 98 +++++++++++--------
10 files changed, 119 insertions(+), 100 deletions(-)

--
2.44.0