Re: Question about UEFI, AddressSanitizer and MMU mappings
From an UEFI point of view if you own the memory you can do what you want with it. The UEFI Spec does not deal with paging but the PI Spec does have abstractions for how the CPU operates via the CPU ARCH Protocol [1]. So for example if you want to write protect the page tables, add guard page, or add a stack guard all that is OK and exists today [2]. PcdNullPointerDetectionPropertyMask PcdInitValueInTempStack PcdHeapGuardPageType PcdHeapGuardPoolType PcdHeapGuardPropertyMask PcdHeapGuardPageType PcdHeapGuardPropertyMask PcdCpuStackGuard Does Asan just need to force page faults? Or does it want to make virtual address mappings? If someone wants to work on ASan (or any of the other sanitizers) I’m happy to volunteer to consult. Thanks, Andrew Fish
|
|