microsoft / mu_plus

Project Mu Microsoft Core UEFI Value
https://microsoft.github.io/mu/
Other
214 stars 100 forks source link

UefiTestingPkg: DxePagingAuditTestApp Fix Inaccessible Memory Test #528

Closed os-d closed 3 months ago

os-d commented 3 months ago

Description

Security.Misc.MemoryOutsideEfiMemoryMapIsInaccessible was failing because it was not checking the return status of ValidateRegionAttributes, which could return EFI_NO_MAPPING to indicate a given range was not in the page table. There are two independent criteria that can be satisfied to indicate that a region is inaccessible: it is marked EFI_MEMORY_RP or it is not mapped in the page table. This test was only checking the first case and not the second case. With this update it now correctly checks both cases.

How This Was Tested

Tested on Q35 and saw that the formerly failing test is now passing.

Integration Instructions

N/A.