Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 867fad874a019b629ee55aff2b0ef9af0fe1358c https://github.com/tianocore/edk2/commit/867fad874a019b629ee55aff2b0ef9af0fe1358c Author: Oliver Smith-Denny <o...@microsoft.com> Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths: M MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c Log Message: ----------- MdeModulePkg: Fix Image Memory Protection Applying Commit 5ccb5fff02a66b21898bd57f48bbd7c3cd6f4e8d updated the image memory protection code to set the protection attributes through the GCD instead of directly to the page table. However, this code had an implicit assumption that each base address passed to it was the beginning of a GCD descriptor. On the virtual platforms tested, this was the case. However, on a physical platform, a scenario was encountered where the base address was not the beginning of a GCD descriptor, thus causing memory attributes to be applied incorrectly. This assumption does not need to be made and this patch updates the code to handle the case where the base address is not the beginning of a GCD descriptor. Signed-off-by: Oliver Smith-Denny <o...@microsoft.com> To unsubscribe from these emails, change your notification settings at https://github.com/tianocore/edk2/settings/notifications _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits