lkml.org 
[lkml]   [2023]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/1] x86/kexec: UKI support
Date
Hello,

this patch implements UKI support for kexec_file_load. It will require support
in the kexec-tools userspace utility. For testing purposes the following can be used:
https://github.com/Cydox/kexec-test/

There has been discussion on this topic in an issue on GitHub that is linked below
for reference.


Some links:
- Related discussion: https://github.com/systemd/systemd/issues/28538
- Documentation of UKIs: https://uapi-group.org/specifications/specs/unified_kernel_image/

Jan Hendrik Farr (1):
x86/kexec: UKI support

arch/x86/include/asm/kexec-uki.h | 7 ++
arch/x86/include/asm/parse_pefile.h | 32 +++++++
arch/x86/kernel/Makefile | 2 +
arch/x86/kernel/kexec-uki.c | 113 +++++++++++++++++++++++++
arch/x86/kernel/machine_kexec_64.c | 2 +
arch/x86/kernel/parse_pefile.c | 110 ++++++++++++++++++++++++
crypto/asymmetric_keys/mscode_parser.c | 2 +-
crypto/asymmetric_keys/verify_pefile.c | 110 +++---------------------
crypto/asymmetric_keys/verify_pefile.h | 16 ----
9 files changed, 278 insertions(+), 116 deletions(-)
create mode 100644 arch/x86/include/asm/kexec-uki.h
create mode 100644 arch/x86/include/asm/parse_pefile.h
create mode 100644 arch/x86/kernel/kexec-uki.c
create mode 100644 arch/x86/kernel/parse_pefile.c

--
2.40.1

\
 
 \ /
  Last update: 2023-09-09 18:27    [W:0.214 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site