Skip to content

efi: measure kernel command line

Ard Biesheuvel linux-efi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi/libstub: refactor the initrd measuring functionsdrivers/firmware/efi/libstub/efi-stub-helper.c+77 -430 replies
2/2efi/libstub: measure EFI LoadOptionsdrivers/firmware/efi/libstub/efi-stub-helper.c drivers/firmware/efi/libstub/efistub.h+11 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] efi: measure kernel command line

Measuring the kernel command line (or more generically, image load options in EFI parlance) is not covered by the TCG spec, which only reasons about images started as boot options.

Let's work around this oversight by measuring the kernel command line from the EFI stub itself. Since load options is essentially just a sequence of bytes, which happens to be interpreted as UTF-16 and subsequently converted into ASCII before being used as the kernel command line, let's just measure the whole thing and not the resulting ASCII string.

Cc Peter Jones <[email protected]>
Cc Matthew Garrett <[email protected]>
Cc Daniel Kiper <[email protected]>
Cc Ilias Apalodimas <[email protected]>
Cc "Xu, Min M" <[email protected]>

Ilias Apalodimas (2):
efi/libstub: refactor the initrd measuring functions efi/libstub: measure EFI LoadOptions

 drivers/firmware/efi/libstub/efi-stub-helper.c | 130 +++++++++++++-------
 drivers/firmware/efi/libstub/efistub.h         |   1 +
 2 files changed, 88 insertions(+), 43 deletions(-)
Signature · 1 line
2.35.1