mbox series

[0/2] EFI mixed mode fixes

Message ID 20240322161751.3046943-4-ardb+git@google.com
Headers show
Series EFI mixed mode fixes | expand

Message

Ard Biesheuvel March 22, 2024, 4:17 p.m. UTC
From: Ard Biesheuvel <ardb@kernel.org>

Two fixes for mixed mode:
- run EFI boot services from the firmware's stack, to avoid overruns
- don't wipe BSS twice in mixed mode

Whether or not this fixes Clayton's issue remains to be seen, but these
need to be fixed in any case.

Link: https://lkml.kernel.org/r/20240321144541.GD8211%40craftyguy.net

Cc: Clayton Craft <clayton@craftyguy.net>

Ard Biesheuvel (2):
  x86/efistub: Call mixed mode boot services on the firmware's stack
  x86/efistub: Don't clear BSS twice in mixed mode

 arch/x86/boot/compressed/efi_mixed.S    | 10 +++++++++-
 drivers/firmware/efi/libstub/x86-stub.c |  3 ++-
 2 files changed, 11 insertions(+), 2 deletions(-)