edk2/MdeModulePkg
Oliver Smith-Denny 0f2dc75587 MdeModulePkg: Don't Allow Guard Pages to Cross Bin Boundaries
Currently, the DXE page allocator does not ensure that guard
page allocations stay within the bin that it is attempting to
allocate within. As a result, S4 resume is jeopardized by
bins expanding due to guard pages, either into other bins or
out of bins. This is caught by a new assert in CoreGetMemoryMap()
to ensure the bins are correct.

This fixes this by changing the internal heap guard API to return
the adjusted size and start address of a proposed allocation. The
page allocator then can ensure that the adjusted allocation still
fits within the bin it is attempting to allocate within; if not,
it will search for another descriptor.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2026-04-23 02:42:12 +00:00
..
Application MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Bus MdeModulePkg/NetworkCommon: Add PCD for USB network periodic timer 2026-04-21 13:29:12 +00:00
Core MdeModulePkg: Don't Allow Guard Pages to Cross Bin Boundaries 2026-04-23 02:42:12 +00:00
Include MdeModulePkg: IpmiCommandLib: Add IPMI mailbox declarations 2026-03-13 15:02:28 +00:00
Library MdeModulePkg: : revert EndofDxeEvent TPLs to TPL_NOTIFY for FPDT 2026-03-19 03:39:15 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg: Added several mock libraries for google test 2026-04-02 03:27:19 +00:00
Universal MdeModulePkg: VariableSmmRuntimeDxe: Fix MM communicate v3 buffer sizing 2026-03-25 17:47:59 +00:00
MdeModulePkg.ci.yaml MdeModulePkg: Add duplicate exception for gUiAppFileGuid 2025-03-06 14:18:10 +01:00
MdeModulePkg.dec MdeModulePkg: Don't Allow Guard Pages to Cross Bin Boundaries 2026-04-23 02:42:12 +00:00
MdeModulePkg.dsc MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
MdeModulePkg.uni MdeModulePkg: Add platform limit for size in Resizable BAR 2026-02-25 03:40:14 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00