You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Reject Memory Attribute Changes With No Access Attributes Set #116
A common issue seen in DXE drivers is setting a caching attribute without setting a memory access attribute (XP,RO,XP) which ends up clearing any access attributes set on the memory region and leaving it unprotected.
This is a pattern that is allowed to exist on the C codebase, but the Rust codebase is an opportunity to enforce that access attributes must always be set on every valid page.
Solution Overview
From DXE core, reject any attribute update that does not pass in an access attribute.
From any component setting memory attributes either:
Set the access attribute that the driver knows it should be (i.e. an MMIO range should be XP)
Read the current memory descriptor, take the current access attributes and or on the new caching attribute
Activity
os-d commentedon Apr 1, 2025
This work has not started yet and is not required for the major release. Removing milestone and parent item but leaving issue open.
chore: Release (#116)
chore: Release (#116)
makubacki commentedon May 13, 2025
@os-d, can you please update?
os-d commentedon May 13, 2025
@cfernald , this is more or less taken care of with your API changes, right?
cfernald commentedon May 13, 2025
@os-d only for the rust consumers, the C API would still need to account for this.
chore: Release (#116)
os-d commentedon Feb 23, 2026
I'm going to close this as completed since the Patina API is correct. The C API unfortunately needs to stay open for a few reasons: