public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Kexec: Sign Image before packing into EFI STUB
@ 2024-12-06  2:09 Pingfan Liu
  2024-12-06  2:09 ` [PATCH 1/2] Makefile.zboot: Sign Image before packing into EFI-STUB shell Pingfan Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Pingfan Liu @ 2024-12-06  2:09 UTC (permalink / raw)
  To: kexec, linux-efi
  Cc: Pingfan Liu, Ard Biesheuvel, Will Deacon, Masahiro Yamada,
	Baoquan He, Dave Young, Eric Biederman

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 <ardb@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>   
Cc: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
To: kexec@lists.infradead.org
To: linux-efi@vger.kernel.org


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

-- 
2.41.0


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

end of thread, other threads:[~2024-12-09 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-06  2:09 [PATCH 0/2] Kexec: Sign Image before packing into EFI STUB Pingfan Liu
2024-12-06  2:09 ` [PATCH 1/2] Makefile.zboot: Sign Image before packing into EFI-STUB shell Pingfan Liu
2024-12-06  8:03   ` Ard Biesheuvel
2024-12-06  9:24     ` Gerd Hoffmann
2024-12-06 10:40       ` Ard Biesheuvel
2024-12-09  2:59       ` Pingfan Liu
2024-12-09 10:10       ` Dave Young
2024-12-09  2:47     ` Pingfan Liu

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