Skip to content

Fixes for recent x86/boot rip-relative addressing changes

Tom Lendacky lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/boot/64: Apply encryption mask to 5-level pagetable updatearch/x86/kernel/head64.c+1 -10 replies
2/2x86/boot/64: Move 5-level paging global variable assignments backarch/x86/kernel/head64.c+7 -90 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArd Biesheuvel
SeriesR-b
1/2
2/2

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/2] Fixes for recent x86/boot rip-relative addressing changes

This patch series provides fixes for the recent x86/boot rip-relative addressing changes that causes system crashes when booting with 5-level pagetables and SME active.

I thought I had tested 5-level paging with SME, but must have missed it. There are two patches to fix the issues that can be squashed into a single patch with multiple Fixes: tags if desired.

The second patch is sort of a revert, but instead uses the newer RIP_REL_REF() macro instead of reverting the fix and continuing to use the fixup_pointer() support.

---

Patches based on:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master 30052fd948a3 ("Merge branch into tip/master: 'x86/shstk'")

Tom Lendacky (2):
x86/boot/64: Apply encryption mask to 5-level pagetable update x86/boot/64: Move 5-level paging global variable assignments back

 arch/x86/kernel/head64.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.2