Page MenuHomeFreeBSD

Set the NX bit for the PML4 recursive mapping
ClosedPublic

Authored by jtl on Feb 12 2018, 6:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 29, 10:35 AM
Unknown Object (File)
Fri, Sep 26, 10:06 AM
Unknown Object (File)
Fri, Sep 26, 6:17 AM
Unknown Object (File)
Thu, Sep 25, 8:12 PM
Unknown Object (File)
Aug 31 2025, 3:00 AM
Unknown Object (File)
Aug 29 2025, 8:36 PM
Unknown Object (File)
Aug 19 2025, 7:23 PM
Unknown Object (File)
Aug 1 2025, 11:35 PM
Subscribers

Details

Summary

We shouldn't need to execute code in the recursive page table mappings; therefore, it should be safe to set the NX bit on the PML4E for the recurse page table mappings. According to the Intel docs, the effect of the NX bit should propogate to any page reached through a PML4E which has the NX bit set.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable