Skip to content

EFI 1:1 mapping

Borislav Petkov linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 45 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4efi: Convert runtime services function ptrsarch/x86/boot/compressed/eboot.c arch/x86/include/asm/efi.h include/linux/efi.h+29 -293 replies
2/4x86, cpa: Map in an arbitrary pgdarch/x86/include/asm/pgtable_types.h arch/x86/mm/pageattr.c+67 -180 replies
3/4x86, efi: Add an efi= kernel command line parameterarch/x86/platform/efi/efi.c+19 -00 replies
4/4x86, efi: Map runtime services 1:1arch/x86/include/asm/efi.h arch/x86/platform/efi/efi.c arch/x86/platform/efi/efi_stub_64.S+240 -482 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -v2 0/4] EFI 1:1 mapping

From: Borislav Petkov <[email protected]>

Hi all,

this is just a snapshot of the current state of affairs. The patchset starts to boot successfully on real hardware now but we're far away from the coverage we'd like to have before we even consider upstreaming it.

And yes, considering the sick f*ck EFI is, we're keeping the 1:1 mapping optional and off by default (you need to boot with "efi=1:1_map" to enable it).

Matt has picked up 1/4 already so I'll drop it when it lands into -tip and so on...

Thanks for any suggestions, as always.

Borislav Petkov (4):
efi: Convert runtime services function ptrs x86, cpa: Map in an arbitrary pgd
x86, efi: Add an efi= kernel command line parameter x86, efi: Map runtime services 1:1

 arch/x86/boot/compressed/eboot.c     |   2 +-
 arch/x86/include/asm/efi.h           |  81 ++++++++++-----
 arch/x86/include/asm/pgtable_types.h |   3 +-
 arch/x86/mm/pageattr.c               |  82 ++++++++++++----
 arch/x86/platform/efi/efi.c          | 184 +++++++++++++++++++++++++++++------
 arch/x86/platform/efi/efi_stub_64.S  |  56 +++++++++++
 include/linux/efi.h                  |  28 +++---
 7 files changed, 348 insertions(+), 88 deletions(-)
Signature · 1 line
1.8.3