efi/zboot: Put ZSTD output size where it belongs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scripts/Makefile.lib: Capture decompressed size in ZSTD22 metadatascripts/ | +7 | 0 replies | |
| 2/2 | efi/zboot: Use ZSTD frame header for uncompressed payload sizedrivers/ drivers/ drivers/ +2 more | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] efi/zboot: Put ZSTD output size where it belongs
The intent of the EFI zboot format is that non-EFI loaders can access and decompress the payload using standard libraries and tools. However, the ZSTD decompressed payload size is not stored in the header where the standard library would look for it, but appended to the end similar to how GZIP stores it.
Let's fix this, by capturing and storing the input size explicitly.
This is a prerequisite for upcoming ELF support in EFI zboot, which concatenates several payloads, and therefore does not support appending arbitrary data at the end.
Ard Biesheuvel (2):
scripts/Makefile.lib: Capture decompressed size in ZSTD22 metadata efi/zboot: Use ZSTD frame header for uncompressed payload size
drivers/firmware/efi/libstub/Makefile.zboot | 8 +------- drivers/firmware/efi/libstub/zboot-decompress-gzip.c | 5 +++-- drivers/firmware/efi/libstub/zboot-decompress-zstd.c | 17 ++++++++++++++--- drivers/firmware/efi/libstub/zboot-header.S | 2 +- drivers/firmware/efi/libstub/zboot.lds | 1 - scripts/Makefile.lib | 10 +++++++--- 6 files changed, 26 insertions(+), 17 deletions(-)
Signature · 1 line
2.47.3