Skip to content

x86/pti: Get rid of entry trampolines and add some docs

Andy Lutomirski lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 14 repliesIn review
  2. v13 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/entry/64: Document idtentryarch/x86/entry/entry_64.S arch/x86/kernel/traps.c+39 -01 reply
2/3x86/entry/64: Use the TSS sp2 slot for SYSCALL/SYSRET scratch spacearch/x86/entry/entry_64.S arch/x86/include/asm/processor.h arch/x86/kernel/asm-offsets.c +2 more+22 -131 reply
3/3x86/pti/64: Remove the SYSCALL64 entry trampolinearch/x86/entry/entry_64.S arch/x86/include/asm/cpu_entry_area.h arch/x86/include/asm/sections.h +6 more+36 -13811 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBorislav Petkov
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] x86/pti: Get rid of entry trampolines and add some docs

This gets rid of entry trampolines. It's more or less the same as the RFC version, except that I rebased it to v4.19-rc1 due to massive conflicts with some perf changes. I have *not* reverted all of the perf support for entry trampolines -- I leave that to the perf crew, if needed.

Changes from v1: Get rid of the rsp_scratch macro

Andy Lutomirski (3):
x86/entry/64: Document idtentry
x86/entry/64: Use the TSS sp2 slot for SYSCALL/SYSRET scratch space x86/pti/64: Remove the SYSCALL64 entry trampoline

 arch/x86/entry/entry_64.S             | 116 ++++++++++----------------
 arch/x86/include/asm/cpu_entry_area.h |   2 -
 arch/x86/include/asm/processor.h      |   6 ++
 arch/x86/include/asm/sections.h       |   1 -
 arch/x86/kernel/asm-offsets.c         |   5 +-
 arch/x86/kernel/cpu/common.c          |  11 +--
 arch/x86/kernel/kprobes/core.c        |  10 +--
 arch/x86/kernel/process_64.c          |   2 -
 arch/x86/kernel/traps.c               |   4 +
 arch/x86/kernel/vmlinux.lds.S         |  10 ---
 arch/x86/mm/cpu_entry_area.c          |  36 --------
 arch/x86/mm/pti.c                     |  33 +++++++-
 arch/x86/xen/xen-asm_64.S             |   8 +-
 13 files changed, 95 insertions(+), 149 deletions(-)
Signature · 1 line
2.17.1