wolfBoot/include/x86
Daniele Lacamera 286581cf18 F-5093: fix OOB memset in x86_paging_setup_ptp and non-looping panic
Three related defects:
- panic() halted with a single hlt instruction (no loop), so any
  resumable interrupt (LAPIC timer via iretq) caused it to return,
  allowing callers to continue executing.  Add while(1) and declare
  __attribute__((noreturn)) in both definition and header.
- x86_paging_setup_ptp guarded with == WOLFBOOT_PTP_NUM instead of >=,
  so if the counter ever exceeded that value (after a panic() return)
  the guard was permanently bypassed.
- The ptp pointer was computed before the bounds check, creating an
  out-of-bounds pointer for one-past-end indices; move the assignment
  to after the guard so no invalid pointer is ever formed.

Add unit-x86-paging-oob test that sets page_table_page_used to
WOLFBOOT_PTP_NUM and verifies that every subsequent call to
x86_paging_setup_ptp triggers panic (via longjmp stub) rather than
silently proceeding with an out-of-bounds memset.
2026-06-10 21:01:16 +02:00
..
fsp Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
ahci.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
ata.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
common.h F-5093: fix OOB memset in x86_paging_setup_ptp and non-looping panic 2026-06-10 21:01:16 +02:00
exceptions.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
fsp.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
gdt.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
hob.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
linux_loader.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
mptable.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
paging.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
tgl_fsp.h Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00