wolfBoot/tools
Daniele Lacamera a8a9eec96b F-4711: bound e820 entries to prevent boot_params stack overflow
e820_add_entry_cb() appended every FSP-supplied resource descriptor into
boot_params->e820_table[] with no check against E820_MAX_ENTRIES_ZEROPAGE
(128). A HOB list with more than 128 EFI_HOB_TYPE_RESOURCE_DESCRIPTOR
entries therefore wrote FSP-controlled addr/size/type triples past the
fixed-size table into the stack-allocated boot_params in load_linux(),
corrupting adjacent fields and the saved return address.

Reject any entry once the table is full (return non-zero, which aborts the
HOB iteration). e820_entries stays uint8_t since it is a fixed-offset field
in the Linux zero-page layout and the cap makes the 256 wrap unreachable.

Add unit-linux-loader-e820 regression test (x86 32bit, standalone) that
feeds 200 descriptors and asserts the table never overflows.
2026-06-05 19:19:05 +02:00
..
bin-assemble
…
check_config
…
delta
…
efi
…
elf-parser Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
fdt-parser fit: gzip-compressed kernel + ramdisk (initramfs) support 2026-05-05 10:16:16 +02:00
keytools Continue the ML-DSA renaming 2026-05-19 11:21:20 -07:00
lms Addressed copilot's comments 2026-04-29 13:15:52 +02:00
renode Addressed copilot's comments 2026-04-28 15:22:41 +02:00
scripts Add wolfBoot port for STM32N6 (NUCLEO-N657X0-Q) 2026-05-28 16:49:57 +02:00
squashelf
…
test-expect-version Fix NRF52 UART DMA and Renode test infrastructure 2026-04-28 15:04:35 +02:00
test-update-server
…
tpm
…
uart-flash-server Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
unit-tests F-4711: bound e820 entries to prevent boot_params stack overflow 2026-06-05 19:19:05 +02:00
xmss Zeroize XMSS key readback buffer 2026-04-29 12:31:21 +02:00
config.mk Add wolfBoot port for STM32N6 (NUCLEO-N657X0-Q) 2026-05-28 16:49:57 +02:00
test-delta.mk
…
test-enc.mk
…
test-renode.mk review: add additional RSA PSS test and bench coverage 2026-04-28 15:02:57 +02:00
test.mk Update wolfssl submodule to latest master 2026-05-18 23:02:54 -07:00
wolfboot-rpi-devicetree.diff
…