wolfBoot/tools
Daniele Lacamera 3bfd7de34d F-5674: cap PCI IO BAR allocator at the 16-bit IO ceiling
A device advertising a 64KB IO BAR pushed the IO allocator cursor
(info->io) past 0x10000 because pci_program_bar used 0xffffffff as the
IO BAR limit. The PCI-to-PCI bridge IO base/limit registers are 8-bit
and only carry address bits [15:8], so io_start >> 8 silently narrows a
0x20000 cursor to 0x00, programming a bogus bridge IO window
0x0000-0x0FFF that forwards legacy IO (8259A PIC, 8254 PIT, MC146818
RTC) to the secondary bus.

x86 IO space is 16-bit, so IO BARs must never be allocated above 0xFFFF.
Cap the IO BAR allocator limit at PCI_IO32_LIMIT (0x10000): oversized IO
BARs are now skipped at allocation time and the bridge IO window is
programmed from the real cursor, never narrowing onto legacy IO.

Add test_program_bridge_io_64k_no_narrow proving the bridge IO window is
no longer mis-programmed. The post-enum IO OOM case is removed as the
cap makes that wrap unreachable.
2026-06-09 15:50:48 +02:00
..
bin-assemble Fix warnings with _MSC_VER and _MSC_VER 2025-10-22 16:04:39 +02:00
check_config Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
delta Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
efi
elf-parser Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
fdt-parser Add wolfBoot FIT support for loading bitstream 2026-06-09 15:30:27 +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 Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
test-expect-version Fix NRF52 UART DMA and Renode test infrastructure 2026-04-28 15:04:35 +02:00
test-update-server Cosmetic fix test-update-server 2026-01-15 21:59:58 +01:00
tpm Updated object list to match latest wolfTPM 2026-04-22 12:17:51 +02:00
uart-flash-server Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
unit-tests F-5674: cap PCI IO BAR allocator at the 16-bit IO ceiling 2026-06-09 15:50:48 +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