git: kernel - Implement NX
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Apr 3 14:29:31 PDT 2017
commit 3e925ec29b07a64bb2cfc9ef3dc9731b223b7d28
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Apr 3 13:38:56 2017 -0700
kernel - Implement NX
* Implement the NX (no-execute) pmap bit.
* Shift sigtramp down to a page-bound and protect it prot|VM_PROT_EXECUTE.
* Map the rest of the user stack VM_PROT_READ|VM_PROT_WRITE without
VM_PROT_EXECUTE.
Summary of changes:
sys/kern/kern_exec.c | 47 ++++++++++++++++++++++----------
sys/kern/kern_proc.c | 9 ++++--
sys/platform/pc64/include/pmap.h | 5 ++--
sys/platform/pc64/vmm/ept.c | 4 +--
sys/platform/pc64/x86_64/machdep.c | 2 +-
sys/platform/pc64/x86_64/pmap.c | 35 ++++++++++++++++++++----
sys/platform/pc64/x86_64/sigtramp.s | 7 -----
sys/platform/pc64/x86_64/trap.c | 9 ++++--
sys/platform/vkernel64/x86_64/cpu_regs.c | 2 +-
9 files changed, 82 insertions(+), 38 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3e925ec29b07a64bb2cfc9ef3dc9731b223b7d28
--
DragonFly BSD source repository
More information about the Commits
mailing list