Skip to content

x86/bugs: RSB mitigation fixes and documentation

Josh Poimboeuf kvm lkml 2 versions – 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 · linked by author and title

  1. v4 Latest6 patches 0 repliesApplied
  2. v36 patches 25 repliesSuperseded

Changes in v4 from the cover letter

- improve document
- remove C++ comment
- "__write_ibpb" -> "write-ibpb"
- improve commit logs

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6x86/bugs: Rename entry_ibpb() to write_ibpb()arch/x86/entry/entry.S arch/x86/include/asm/nospec-branch.h arch/x86/kernel/cpu/bugs.c+10 -90 replies
2/6x86/bugs: Use SBPB in write_ibpb() if applicablearch/x86/entry/entry.S+1 -10 replies
3/6x86/bugs: Fix RSB clearing in indirect_branch_prediction_barrier()arch/x86/include/asm/nospec-branch.h arch/x86/kernel/cpu/bugs.c+3 -40 replies
4/6x86/bugs: Don't fill RSB on VMEXIT with eIBRS+retpolinearch/x86/kernel/cpu/bugs.c+4 -40 replies
5/6x86/bugs: Don't fill RSB on context switch with eIBRSarch/x86/kernel/cpu/bugs.c arch/x86/mm/tlb.c+15 -150 replies
6/6x86/bugs: Add RSB mitigation documentDocumentation/admin-guide/hw-vuln/index.rst Documentation/admin-guide/hw-vuln/rsb.rst arch/x86/kernel/cpu/bugs.c+282 -510 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchNikolay BorisovPawan GuptaAmit Shah
1/6
2/6
3/6R-b
4/6R-b R-b R-b
5/6R-b R-b R-b
6/6

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 v4 thread

Cover letter [PATCH v4 0/6] x86/bugs: RSB mitigation fixes and documentation

v4:
- improve document
- remove C++ comment
- "__write_ibpb" -> "write-ibpb"
- improve commit logs

v3: https://lore.kernel.org/[email protected]

Josh Poimboeuf (6):
x86/bugs: Rename entry_ibpb() to write_ibpb()
x86/bugs: Use SBPB in write_ibpb() if applicable x86/bugs: Fix RSB clearing in indirect_branch_prediction_barrier() x86/bugs: Don't fill RSB on VMEXIT with eIBRS+retpoline x86/bugs: Don't fill RSB on context switch with eIBRS x86/bugs: Add RSB mitigation document

 Documentation/admin-guide/hw-vuln/index.rst |   1 +
 Documentation/admin-guide/hw-vuln/rsb.rst   | 268 ++++++++++++++++++++
 arch/x86/entry/entry.S                      |   9 +-
 arch/x86/include/asm/nospec-branch.h        |  12 +-
 arch/x86/kernel/cpu/bugs.c                  | 107 +++-----
 arch/x86/mm/tlb.c                           |   6 +-
 6 files changed, 317 insertions(+), 86 deletions(-)
 create mode 100644 Documentation/admin-guide/hw-vuln/rsb.rst
Signature · 1 line
2.49.0