[Bug]: MemoryOutsideEfiMemoryMapIsInaccessible() Test Is Broken #531
Labels
state:needs-owner
Needs an issue owner to be assigned
state:needs-triage
Needs to triaged to determine next steps
type:bug
Something isn't working
urgency:low
Little to no impact
Is there an existing issue for this?
Current Behavior
PR 528 updated the MemoryOutsideEfiMemoryMapIsInaccessible() test to check the return status of ValidateRegionAttributes(). ValidateRegionAttributes() returns a boolean, not a status. So, interpreting the FALSE return value is being mistaken for an EFI_SUCCESS return value.
I know, I know... usually we return a status... SOMETIMES I COLORED OUTSIDE THE LINES 😅
Expected Behavior
The AllowUnmappedRegions argument of ValidateRegionAttributes() dictates if EFI_NO_MAPPING is acceptable for the region. So, the MemoryOutsideEfiMemoryMapIsInaccessible() test was already checking for EFI_NO_MAPPING but now the test will only pass if the required conditions are not met.
Steps To Reproduce
N/A
Build Environment
Version Information
Urgency
Low
Are you going to fix this?
Someone else needs to fix it
Do you need maintainer feedback?
No maintainer feedback needed
Anything else?
Miss y'all ❤️ Hope everything is going well 😃
The text was updated successfully, but these errors were encountered: