]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
We shouldn't need to execute code in the recursive page table mappings;
authorjtl <jtl@FreeBSD.org>
Mon, 5 Mar 2018 15:12:35 +0000 (15:12 +0000)
committerjtl <jtl@FreeBSD.org>
Mon, 5 Mar 2018 15:12:35 +0000 (15:12 +0000)
commit5a8fb2b9d60e92f8868a61effb9f3ca47ec34da6
tree0a6ec59cb73bf2dd18ccdfb326eadf482427b4ca
parent886958fbdb615be64b3902f64ab21d5c011aaf21
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
recursive 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.

Reviewed by: kib, markj
MFC after: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D14333
sys/amd64/amd64/pmap.c