public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] EFI mixed mode fixes
@ 2024-03-22 16:17 Ard Biesheuvel
  2024-03-22 16:17 ` [PATCH 1/2] x86/efistub: Call mixed mode boot services on the firmware's stack Ard Biesheuvel
  2024-03-22 16:17 ` [PATCH 2/2] x86/efistub: Don't clear BSS twice in mixed mode Ard Biesheuvel
  0 siblings, 2 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2024-03-22 16:17 UTC (permalink / raw)
  To: linux-efi; +Cc: x86, Ard Biesheuvel, Clayton Craft

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(-)

-- 
2.44.0.396.g6e790dbe36-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-22 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 16:17 [PATCH 0/2] EFI mixed mode fixes Ard Biesheuvel
2024-03-22 16:17 ` [PATCH 1/2] x86/efistub: Call mixed mode boot services on the firmware's stack Ard Biesheuvel
2024-03-22 16:17 ` [PATCH 2/2] x86/efistub: Don't clear BSS twice in mixed mode Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox