Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 0f2dc7558713f1774bb7317e9fdcd371fcbb10cc
https://github.com/tianocore/edk2/commit/0f2dc7558713f1774bb7317e9fdcd371fcbb10cc
Author: Oliver Smith-Denny <[email protected]>
Date: 2026-04-23 (Thu, 23 Apr 2026)
Changed paths:
M MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
M MdeModulePkg/Core/Dxe/Mem/HeapGuard.h
M MdeModulePkg/Core/Dxe/Mem/Page.c
M MdeModulePkg/MdeModulePkg.dec
Log Message:
-----------
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 <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits