* [GIT PULL] x86/boot for v6.6-rc1
@ 2023-08-28 5:35 Borislav Petkov
2023-08-28 23:10 ` pr-tracker-bot
0 siblings, 1 reply; 2+ messages in thread
From: Borislav Petkov @ 2023-08-28 5:35 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Ard Biesheuvel, x86-ml, lkml
Hi Linus,
please pull the set of x86/boot changes for 6.6.
Thx.
---
The following changes since commit bee6cf1a80b54548a039e224c651bb15b644a480:
x86/sev: Do not try to parse for the CC blob on non-AMD hardware (2023-08-07 18:05:13 +0200)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_boot_for_v6.6_rc1
for you to fetch changes up to a1b87d54f4e45ff5e0d081fb1d9db3bf1a8fb39a:
x86/efistub: Avoid legacy decompressor when doing EFI boot (2023-08-07 21:07:43 +0200)
----------------------------------------------------------------
- Avoid the baremetal decompressor code when booting on an EFI machine.
This is mandated by the current tightening of EFI executables
requirements when used in a secure boot scenario. More specifically,
an EFI executable cannot have a single section with RWX permissions,
which conflicts with the in-place kernel decompression that is done
today. Instead, the things required by the booting kernel image are
done in the EFI stub now. Work by Ard Biesheuvel.
----------------------------------------------------------------
Ard Biesheuvel (23):
x86/decompressor: Don't rely on upper 32 bits of GPRs being preserved
x86/head_64: Store boot_params pointer in callee save register
x86/efistub: Branch straight to kernel entry point from C code
x86/efistub: Simplify and clean up handover entry code
x86/decompressor: Avoid magic offsets for EFI handover entrypoint
x86/efistub: Clear BSS in EFI handover protocol entrypoint
x86/decompressor: Store boot_params pointer in callee save register
x86/decompressor: Assign paging related global variables earlier
x86/decompressor: Call trampoline as a normal function
x86/decompressor: Use standard calling convention for trampoline
x86/decompressor: Avoid the need for a stack in the 32-bit trampoline
x86/decompressor: Call trampoline directly from C code
x86/decompressor: Only call the trampoline when changing paging levels
x86/decompressor: Pass pgtable address to trampoline directly
x86/decompressor: Merge trampoline cleanup with switching code
x86/efistub: Perform 4/5 level paging switch from the stub
x86/efistub: Prefer EFI memory attributes protocol over DXE services
decompress: Use 8 byte alignment
x86/decompressor: Move global symbol references to C code
x86/decompressor: Factor out kernel decompression and relocation
efi/libstub: Add limit argument to efi_random_alloc()
x86/efistub: Perform SNP feature test while running in the firmware
x86/efistub: Avoid legacy decompressor when doing EFI boot
Documentation/arch/x86/boot.rst | 2 +-
arch/x86/boot/compressed/Makefile | 5 +
arch/x86/boot/compressed/efi_mixed.S | 107 ++++------
arch/x86/boot/compressed/head_32.S | 32 ---
arch/x86/boot/compressed/head_64.S | 280 ++++++++----------------
arch/x86/boot/compressed/misc.c | 44 ++--
arch/x86/boot/compressed/misc.h | 2 -
arch/x86/boot/compressed/pgtable.h | 10 +-
arch/x86/boot/compressed/pgtable_64.c | 87 ++++----
arch/x86/boot/compressed/sev.c | 112 ++++++----
arch/x86/include/asm/boot.h | 8 +
arch/x86/include/asm/efi.h | 7 +-
arch/x86/include/asm/sev.h | 6 +
arch/x86/kernel/head_64.S | 32 ++-
drivers/firmware/efi/libstub/Makefile | 1 +
drivers/firmware/efi/libstub/arm64-stub.c | 2 +-
drivers/firmware/efi/libstub/efi-stub-helper.c | 2 +
drivers/firmware/efi/libstub/efistub.h | 3 +-
drivers/firmware/efi/libstub/randomalloc.c | 10 +-
drivers/firmware/efi/libstub/x86-5lvl.c | 95 +++++++++
drivers/firmware/efi/libstub/x86-stub.c | 281 ++++++++++++++-----------
drivers/firmware/efi/libstub/x86-stub.h | 17 ++
drivers/firmware/efi/libstub/zboot.c | 2 +-
include/linux/decompress/mm.h | 2 +-
24 files changed, 587 insertions(+), 562 deletions(-)
create mode 100644 drivers/firmware/efi/libstub/x86-5lvl.c
create mode 100644 drivers/firmware/efi/libstub/x86-stub.h
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GIT PULL] x86/boot for v6.6-rc1
2023-08-28 5:35 [GIT PULL] x86/boot for v6.6-rc1 Borislav Petkov
@ 2023-08-28 23:10 ` pr-tracker-bot
0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2023-08-28 23:10 UTC (permalink / raw)
To: Borislav Petkov; +Cc: Linus Torvalds, Ard Biesheuvel, x86-ml, lkml
The pull request you sent on Mon, 28 Aug 2023 07:35:43 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_boot_for_v6.6_rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/bd9e99f790f21374b831a7dcf638156beacf3bf4
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-28 23:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28 5:35 [GIT PULL] x86/boot for v6.6-rc1 Borislav Petkov
2023-08-28 23:10 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®