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)
Wed, May 13, 9:42 AM
Unknown Object (File)
Thu, May 7, 12:47 PM
Unknown Object (File)
Thu, Apr 30, 4:22 PM
Unknown Object (File)
Tue, Apr 28, 11:27 AM
Unknown Object (File)
Sun, Apr 26, 2:09 AM
Unknown Object (File)
Apr 19 2026, 5:30 AM
Unknown Object (File)
Apr 16 2026, 8:43 PM
Unknown Object (File)
Mar 30 2026, 4:06 AM
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