Skip to content

Fixes for ITS mitigation and execmem

Mike Rapoport lkml oe-kbuild-all stable 1 version 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

  1. v1 Latest5 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5x86/mm/pat: don't collapse pages without PSE setarch/x86/mm/pat/set_memory.c+3 -00 replies
2/5x86/Kconfig: only enable ROX cache in execmem when STRICT_MODULE_RWX is setarch/x86/Kconfig+1 -10 replies
3/5x86/its: move its_pages array to struct mod_arch_specificarch/x86/include/asm/module.h arch/x86/kernel/alternative.c include/linux/module.h+18 -140 replies
4/5x86/its: explicitly manage permissions for ITS pagesarch/x86/kernel/alternative.c+63 -215 replies
5/5Revert "mm/execmem: Unify early execmem_cache behaviour"arch/x86/mm/init_32.c arch/x86/mm/init_64.c include/linux/execmem.h +1 more+4 -500 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchNikolay BorisovJuergen Gross
SeriesT-b
1/5
2/5
3/5
4/5R-b
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] Fixes for ITS mitigation and execmem

From: "Mike Rapoport (Microsoft)" <[email protected]>

Hi,

Jürgen Groß reported some bugs in interaction of ITS mitigation with execmem [1] when running on a Xen PV guest.

These patches fix the issue by moving all the permissions management of ITS memory allocated from execmem into ITS code.

I didn't test on a real Xen PV guest, but I emulated !PSE variant by force-disabling the ROX cache in x86::execmem_arch_setup().

Peter, I took liberty to put your SoB in the patch that actually implements the execmem permissions management in ITS, please let me know if I need to update something about the authorship.

The patches are against v6.15.
They are also available in git:
https://web.git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/log/?h=its-execmem/v1

[1] https://lore.kernel.org/all/[email protected]/

Juergen Gross (1):
x86/mm/pat: don't collapse pages without PSE set

Mike Rapoport (Microsoft) (3):
x86/Kconfig: only enable ROX cache in execmem when STRICT_MODULE_RWX is set x86/its: move its_pages array to struct mod_arch_specific Revert "mm/execmem: Unify early execmem_cache behaviour"

Peter Zijlstra (Intel) (1):
x86/its: explicitly manage permissions for ITS pages

 arch/x86/Kconfig              |  2 +-
 arch/x86/include/asm/module.h |  8 ++++
 arch/x86/kernel/alternative.c | 89 ++++++++++++++++++++++++++---------
 arch/x86/mm/init_32.c         |  3 --
 arch/x86/mm/init_64.c         |  3 --
 arch/x86/mm/pat/set_memory.c  |  3 ++
 include/linux/execmem.h       |  8 +---
 include/linux/module.h        |  5 --
 mm/execmem.c                  | 40 ++--------------
 9 files changed, 82 insertions(+), 79 deletions(-)

base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca

Signature · 1 line
2.47.2