linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Relocate GOT before calling EFI stub
@ 2020-01-07 13:54 Arvind Sankar
  2020-01-07 13:54 ` [PATCH 1/3] x86/boot/compressed/64: Make adjust_got easier to use repeatedly Arvind Sankar
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Arvind Sankar @ 2020-01-07 13:54 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: linux-efi

This series performs GOT relocation before calling into C code for the
EFI stub. While the stub does not currently require GOT relocation, it's
quite easy to introduce code that will use the GOT on old toolchains,
but not recent ones, which can lead to unexpected issues.

This is based on
https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/log/?h=next

with commit 4169bb99cd70 ("efi/libstub/x86: use mandatory 16-byte stack
alignment in mixed mode") reverted, as it caused a crash in mixed mode.

Arvind Sankar (3):
  x86/boot/compressed/64: Make adjust_got easier to use repeatedly
  x86/boot/compressed/32: Allow adjust_got to be called repeatedly
  x86/boot: Perform GOT relocation before calling EFI stub

 arch/x86/boot/compressed/eboot.c   |  4 +-
 arch/x86/boot/compressed/head_32.S | 65 +++++++++++++++++++++----
 arch/x86/boot/compressed/head_64.S | 76 +++++++++++++++++-------------
 3 files changed, 99 insertions(+), 46 deletions(-)

-- 
2.24.1


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

end of thread, other threads:[~2020-01-07 20:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 13:54 [PATCH 0/3] Relocate GOT before calling EFI stub Arvind Sankar
2020-01-07 13:54 ` [PATCH 1/3] x86/boot/compressed/64: Make adjust_got easier to use repeatedly Arvind Sankar
2020-01-07 13:54 ` [PATCH 2/3] x86/boot/compressed/32: Allow adjust_got to be called repeatedly Arvind Sankar
2020-01-07 13:55 ` [PATCH 3/3] x86/boot: Perform GOT relocation before calling EFI stub Arvind Sankar
2020-01-07 14:01 ` [PATCH 0/3] Relocate GOT " Ard Biesheuvel
2020-01-07 14:13   ` Ard Biesheuvel
2020-01-07 14:21     ` Arvind Sankar
2020-01-07 14:24       ` Ard Biesheuvel
2020-01-07 14:27         ` Arvind Sankar
2020-01-07 14:28           ` Ard Biesheuvel
2020-01-07 17:58             ` Arvind Sankar
2020-01-07 17:59               ` Ard Biesheuvel
2020-01-07 18:08                 ` Arvind Sankar
2020-01-07 18:10                   ` Ard Biesheuvel
2020-01-07 18:32                     ` Arvind Sankar
2020-01-07 19:03                       ` Ard Biesheuvel
2020-01-07 19:14                         ` Arvind Sankar
2020-01-07 19:23                           ` Ard Biesheuvel
2020-01-07 19:51                             ` Ard Biesheuvel
2020-01-07 20:00                               ` Arvind Sankar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).