Skip to content

EFI/x86 updates for secure boot

Ard Biesheuvel stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/head/64: Move the __head definition to <asm/init.h>arch/x86/include/asm/init.h arch/x86/kernel/head64.c+3 -20 replies
2/6efi/libstub: Add generic support for parsing mem_encrypt=drivers/firmware/efi/libstub/efi-stub-helper.c drivers/firmware/efi/libstub/efistub.h+9 -10 replies
3/6x86/boot: Move mem_encrypt= parsing to the decompressorarch/x86/boot/compressed/misc.c arch/x86/include/uapi/asm/bootparam.h arch/x86/lib/Makefile +2 more+22 -422 replies
4/6x86/sme: Move early SME kernel encryption handling into .head.textarch/x86/include/asm/mem_encrypt.h arch/x86/mm/mem_encrypt_identity.c+21 -290 replies
5/6x86/sev: Move early startup code into .head.text sectionarch/x86/boot/compressed/sev.c arch/x86/include/asm/sev.h arch/x86/kernel/sev-shared.c +1 more+26 -240 replies
6/6x86/efistub: Remap kernel text read-only before dropping NX attributearch/x86/boot/compressed/Makefile arch/x86/boot/compressed/misc.c arch/x86/include/asm/boot.h +1 more+13 -20 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchTom Lendacky
1/6
2/6T-b
3/6T-b
4/6T-b
5/6T-b
6/6

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 -for-stable-v6.6+ 0/6] EFI/x86 updates for secure boot

From: Ard Biesheuvel <[email protected]>

Please merge the attached series into stable branches v6.6 and v6.8. They backport changes that are part of the work to harden the EFI stub and make it compatible with MS requirements on EFI memory protections on secure boot enabled systems.

Note that the first patch by Hou Wenlong is already in v6.8. The remaining ones should apply equally to v6.6 and v6.8. Only patch #5 was tweaked for context changes due to backports that overtook this one.

Thanks.

Ard Biesheuvel (5):
efi/libstub: Add generic support for parsing mem_encrypt= x86/boot: Move mem_encrypt= parsing to the decompressor x86/sme: Move early SME kernel encryption handling into .head.text x86/sev: Move early startup code into .head.text section x86/efistub: Remap kernel text read-only before dropping NX attribute

Hou Wenlong (1):
x86/head/64: Move the __head definition to <asm/init.h>

 arch/x86/boot/compressed/Makefile              |  2 +-
 arch/x86/boot/compressed/misc.c                | 16 +++++
 arch/x86/boot/compressed/sev.c                 |  3 +
 arch/x86/include/asm/boot.h                    |  1 +
 arch/x86/include/asm/init.h                    |  2 +
 arch/x86/include/asm/mem_encrypt.h             |  8 +--
 arch/x86/include/asm/sev.h                     | 10 +--
 arch/x86/include/uapi/asm/bootparam.h          |  1 +
 arch/x86/kernel/head64.c                       |  3 +-
 arch/x86/kernel/sev-shared.c                   | 23 +++---
 arch/x86/kernel/sev.c                          | 14 ++--
 arch/x86/lib/Makefile                          | 13 ----
 arch/x86/mm/mem_encrypt_identity.c             | 74 ++++++--------------
 drivers/firmware/efi/libstub/efi-stub-helper.c |  8 +++
 drivers/firmware/efi/libstub/efistub.h         |  2 +-
 drivers/firmware/efi/libstub/x86-stub.c        | 14 +++-
 16 files changed, 94 insertions(+), 100 deletions(-)
Signature · 1 line
2.44.0.478.gd926399ef9-goog