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, Mar 30, 4:06 AM
Unknown Object (File)
Fri, Mar 27, 7:53 AM
Unknown Object (File)
Thu, Mar 26, 8:35 AM
Unknown Object (File)
Thu, Mar 26, 2:17 AM
Unknown Object (File)
Wed, Mar 25, 3:56 PM
Unknown Object (File)
Tue, Mar 24, 7:05 PM
Unknown Object (File)
Mon, Mar 23, 2:10 AM
Unknown Object (File)
Mar 1 2026, 6:16 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