HomeFreeBSD

Set NX on some non-leaf direct map page table entries.

Description

Set NX on some non-leaf direct map page table entries.

The direct map is never used for execution of code, so we might as well
set NX in the direct map's PML4Es. Also clarify the intent of the code
in create_pagetables() that restricts access protections on the region
of the direct map mapping the kernel text.

Reviewed by: alc, kib (previous version)
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21759

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D21759: Set NX on direct map PML4Es.
Parents
rS352623: Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations.
Branches
Unknown
Tags
Unknown