Skip to content

SRSO fixes/cleanups

Josh Poimboeuf lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest20 patches 2 repliesApplied
  2. v223 patches 21 repliesApplied
  3. v122 patches 40 repliesSuperseded

Changes in v3 from the cover letter

- drop kvm patches (to be picked up by Sean)
- fix "no microcode, no microcode" printk
- fix "Safe Ret" capitalization in documentation
- fix chopped line in commit log
- drop "x86/srso: Remove redundant X86_FEATURE_ENTRY_IBPB check" patch

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/20x86/srso: Fix srso_show_state() side effectarch/x86/kernel/cpu/bugs.c+1 -10 replies
2/20x86/srso: Set CPUID feature bits independently of bug or mitigation statusarch/x86/include/asm/processor.h arch/x86/kernel/cpu/amd.c arch/x86/kernel/cpu/bugs.c+10 -330 replies
3/20x86/srso: Don't probe microcode in a guestarch/x86/kernel/cpu/amd.c+1 -10 replies
4/20x86/srso: Fix SBPB enablement for spec_rstack_overflow=offarch/x86/kernel/cpu/bugs.c+1 -10 replies
5/20x86/srso: Fix SBPB enablement for (possible) future fixed HWarch/x86/kernel/cpu/bugs.c+1 -10 replies
6/20x86/srso: Print actual mitigation if requested mitigation isn't possiblearch/x86/kernel/cpu/bugs.c+0 -30 replies
7/20x86/srso: Print mitigation for retbleed IBPB casearch/x86/kernel/cpu/bugs.c+3 -30 replies
8/20x86/srso: Fix vulnerability reporting for missing microcodeDocumentation/admin-guide/hw-vuln/srso.rst arch/x86/kernel/cpu/bugs.c+39 -210 replies
9/20x86/srso: Fix unret validation dependenciesarch/x86/include/asm/nospec-branch.h include/linux/objtool.h scripts/Makefile.vmlinux_o+6 -40 replies
10/20x86/alternatives: Remove faulty optimizationarch/x86/kernel/alternative.c+0 -80 replies
11/20x86/srso: Improve i-cache locality for alias mitigationarch/x86/lib/retpoline.S+2 -30 replies
12/20x86/srso: Unexport untraining functionsarch/x86/include/asm/nospec-branch.h arch/x86/lib/retpoline.S+2 -90 replies
13/20x86/srso: Remove 'pred_cmd' labelarch/x86/kernel/cpu/bugs.c+13 -80 replies
14/20x86/bugs: Remove default case for fully switched enumsarch/x86/kernel/cpu/bugs.c+7 -100 replies
15/20x86/srso: Move retbleed IBPB check into existing 'has_microcode' code blockarch/x86/kernel/cpu/bugs.c+1 -30 replies
16/20x86/srso: Disentangle rethunk-dependent optionsarch/x86/include/asm/nospec-branch.h arch/x86/kernel/cpu/bugs.c arch/x86/kernel/vmlinux.lds.S +1 more+109 -850 replies
17/20x86/rethunk: Use SYM_CODE_START[_LOCAL]_NOALIGN macrosarch/x86/lib/retpoline.S+4 -40 replies
18/20x86/retpoline: Remove .text..__x86.return_thunk sectionarch/x86/kernel/vmlinux.lds.S arch/x86/lib/retpoline.S+0 -50 replies
19/20x86/nospec: Refactor UNTRAIN_RET[_*]arch/x86/include/asm/nospec-branch.h+10 -210 replies
20/20x86/calldepth: Rename __x86_return_skl() to call_depth_return_thunk()arch/x86/include/asm/nospec-branch.h arch/x86/kernel/cpu/bugs.c arch/x86/lib/retpoline.S+8 -120 replies

Reviews trailers per patch

4 of 20 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNikolay BorisovBorislav Petkov (AMD)Andrew Cooper
SeriesA-b
1/20R-b
2/20R-b R-b
3/20R-b
4/20
5/20
6/20R-b
7/20
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/20] SRSO fixes/cleanups

v3:
- drop kvm patches (to be picked up by Sean)
- fix "no microcode, no microcode" printk
- fix "Safe Ret" capitalization in documentation
- fix chopped line in commit log
- drop "x86/srso: Remove redundant X86_FEATURE_ENTRY_IBPB check" patch

Josh Poimboeuf (20):
x86/srso: Fix srso_show_state() side effect
x86/srso: Set CPUID feature bits independently of bug or mitigation
status
x86/srso: Don't probe microcode in a guest
x86/srso: Fix SBPB enablement for spec_rstack_overflow=off x86/srso: Fix SBPB enablement for (possible) future fixed HW x86/srso: Print actual mitigation if requested mitigation isn't
possible
x86/srso: Print mitigation for retbleed IBPB case x86/srso: Fix vulnerability reporting for missing microcode x86/srso: Fix unret validation dependencies x86/alternatives: Remove faulty optimization
x86/srso: Improve i-cache locality for alias mitigation x86/srso: Unexport untraining functions
x86/srso: Remove 'pred_cmd' label
x86/bugs: Remove default case for fully switched enums x86/srso: Move retbleed IBPB check into existing 'has_microcode' code
block
x86/srso: Disentangle rethunk-dependent options x86/rethunk: Use SYM_CODE_START[_LOCAL]_NOALIGN macros x86/retpoline: Remove .text..__x86.return_thunk section x86/nospec: Refactor UNTRAIN_RET[_*]
x86/calldepth: Rename __x86_return_skl() to call_depth_return_thunk()

 Documentation/admin-guide/hw-vuln/srso.rst |  24 ++-
 arch/x86/include/asm/nospec-branch.h       |  69 ++++-----
 arch/x86/include/asm/processor.h           |   2 -
 arch/x86/kernel/alternative.c              |   8 -
 arch/x86/kernel/cpu/amd.c                  |  28 ++--
 arch/x86/kernel/cpu/bugs.c                 | 102 ++++++------
 arch/x86/kernel/vmlinux.lds.S              |  10 +-
 arch/x86/lib/retpoline.S                   | 171 +++++++++++----------
 include/linux/objtool.h                    |   3 +-
 scripts/Makefile.vmlinux_o                 |   3 +-
 10 files changed, 201 insertions(+), 219 deletions(-)
Signature · 1 line
2.41.0