Skip to content

x86: Further harden function pointers

Andrew Cooper xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 31 repliesIn review
  2. v14 patches 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7xen/altcall: Use __ro_after_init now that it existsxen/include/xen/alternative-call.h+1 -11 reply
2/7x86/altcall: Check and optimise altcall targetsxen/arch/x86/alternative.c+23 -00 replies
3/7x86/altcall: Optimise away endbr64 instruction where possiblexen/arch/x86/alternative.c xen/arch/x86/xen.lds.S xen/include/xen/init.h+47 -08 replies
4/7xsm: Use __initconst_cf_clobber for xsm_opsxen/xsm/dummy.c xen/xsm/flask/hooks.c xen/xsm/silo.c+3 -30 replies
5/7x86/hvm: Use __initdata_cf_clobber for hvm_funcsxen/arch/x86/hvm/hvm.c xen/arch/x86/hvm/svm/svm.c xen/arch/x86/hvm/vmx/vmx.c+3 -34 replies
6/7x86/ucode: Use altcall, and __initconst_cf_clobberxen/arch/x86/cpu/microcode/amd.c xen/arch/x86/cpu/microcode/core.c xen/arch/x86/cpu/microcode/intel.c+22 -201 reply
7/7x86/vpmu: Harden indirect branchesxen/arch/x86/cpu/vpmu_amd.c xen/arch/x86/cpu/vpmu_intel.c+2 -21 reply

Reviews trailers per patch

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

PatchJan BeulichDaniel P. Smith
SeriesR-b R-b
1/7A-b
2/7R-b
3/7R-b
4/7R-b R-b
5/7R-b
6/7R-b
7/7R-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/7] x86: Further harden function pointers

Additional runtime hardning of indirect branches. Depends on the CET-IBT series.

Andrew Cooper (7):
xen/altcall: Use __ro_after_init now that it exists x86/altcall: Check and optimise altcall targets x86/altcall: Optimise away endbr64 instruction where possible
xsm: Use __initconst_cf_clobber for xsm_ops x86/hvm: Use __initdata_cf_clobber for hvm_funcs x86/ucode: Use altcall, and __initconst_cf_clobber x86/vpmu: Harden indirect branches

 xen/arch/x86/alternative.c         | 61 ++++++++++++++++++++++++++++++++++++++
 xen/arch/x86/cpu/microcode/amd.c   |  2 +-
 xen/arch/x86/cpu/microcode/core.c  | 38 +++++++++++++-----------
 xen/arch/x86/cpu/microcode/intel.c |  2 +-
 xen/arch/x86/cpu/vpmu_amd.c        |  2 +-
 xen/arch/x86/cpu/vpmu_intel.c      |  2 +-
 xen/arch/x86/hvm/hvm.c             |  2 +-
 xen/arch/x86/hvm/svm/svm.c         |  2 +-
 xen/arch/x86/hvm/vmx/vmx.c         |  2 +-
 xen/arch/x86/xen.lds.S             |  6 ++++
 xen/include/xen/alternative-call.h |  2 +-
 xen/include/xen/init.h             |  3 ++
 xen/xsm/dummy.c                    |  2 +-
 xen/xsm/flask/hooks.c              |  2 +-
 xen/xsm/silo.c                     |  2 +-
 15 files changed, 101 insertions(+), 29 deletions(-)
Signature · 1 line
2.11.0