kernel - Implement NX
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 3 Apr 2017 20:38:56 +0000 (13:38 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 3 Apr 2017 20:38:56 +0000 (13:38 -0700)
commit3e925ec29b07a64bb2cfc9ef3dc9731b223b7d28
treea54d08ab412244cbf7b12d22e812ec912f5aac64
parent2c7152a8069955e338590100b4acabc0725b328c
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.
sys/kern/kern_exec.c
sys/kern/kern_proc.c
sys/platform/pc64/include/pmap.h
sys/platform/pc64/vmm/ept.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/pmap.c
sys/platform/pc64/x86_64/sigtramp.s
sys/platform/pc64/x86_64/trap.c
sys/platform/vkernel64/x86_64/cpu_regs.c