Skip to content

Kexec: Sign Image before packing into EFI STUB

Pingfan Liu kexec linux-efi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Makefile.zboot: Sign Image before packing into EFI-STUB shelldrivers/firmware/efi/libstub/Makefile.zboot+13 -06 replies
2/2kexec: Introduce KEXEC_SIGN_IMAGE config optionkernel/Kconfig.kexec+9 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Kexec: Sign Image before packing into EFI STUB

At present, the kexec_file_load of either zboot or UKI kernel relies on the user space to parse and extract the Image, and then pass the Image through that syscall. During this process, the outmost signature on zboot or UKI kernel is stripped and discarded.

On the other hand, a secure boot platform enforces the signature verfiication on the kernel image passed through the kexec_file_load syscall. To cater to this requirement, this patch applies signature on the PE format 'Image' before padding.

The key used to sign is the same as module sign key, and the signing tool is sbsign.

Cc: Ard Biesheuvel <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Eric Biederman <[email protected]>
To: [email protected]
To: [email protected]

Pingfan Liu (2):
Makefile.zboot: Sign Image before packing into EFI-STUB shell
kexec: Introduce KEXEC_SIGN_IMAGE config option

 drivers/firmware/efi/libstub/Makefile.zboot | 13 +++++++++++++
 kernel/Kconfig.kexec                        |  9 +++++++++
 2 files changed, 22 insertions(+)
Signature · 1 line
2.41.0