git: DragonFly_RELEASE_4_8 kernel - Implement NX
    Matthew Dillon 
    dillon at crater.dragonflybsd.org
       
    Wed Apr 12 11:56:33 PDT 2017
    
    
  
commit a537ea9cc3f535b854f17517d1f535ef6b43f18f
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      |  5 ----
 sys/platform/pc64/x86_64/trap.c          |  9 ++++--
 sys/platform/vkernel64/x86_64/cpu_regs.c |  2 +-
 9 files changed, 82 insertions(+), 36 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a537ea9cc3f535b854f17517d1f535ef6b43f18f
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list