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 Sep 23 2019, 2:19 PM
Parents
rG38dae42c26d6: Use elf_relocaddr() when handling R_X86_64_RELATIVE relocations.
Branches
Unknown
Tags
Unknown

Event Timeline