git: mmap - add mmap offset randomization

Alex Hornung alexh at crater.dragonflybsd.org
Thu Nov 25 01:24:45 PST 2010


commit 911e30e25724984efec56accba87f739cfca2937
Author: Alex Hornung <ahornung at gmail.com>
Date:   Thu Nov 25 08:18:15 2010 +0000

    mmap - add mmap offset randomization
    
    * mmap offset randomization, based upon OpenBSD's implementation in
      sys/uvm/uvm_map.c and sys/uvm/uvm_mmap.c.
    
    * The randomization is controllable via the sysctl vm.randomize_mmap,
      which by default is 0 (off).
    
    Obtained-from: OpenBSD

Summary of changes:
 sys/vm/vm_map.c  |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sys/vm/vm_map.h  |    1 +
 sys/vm/vm_mmap.c |   10 ++------
 3 files changed, 60 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/911e30e25724984efec56accba87f739cfca2937


-- 
DragonFly BSD source repository





More information about the Commits mailing list