git: kernel - Fix vm.max_proc_mmap

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Oct 31 10:49:58 PDT 2017


commit f52708b0e2a001116766cd079f6014ee25d4089f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 20 23:11:30 2017 -0700

    kernel - Fix vm.max_proc_mmap
    
    * The vm.max_proc_mmap calculation always overflowed, and was only
      saved by the result always being some ridiculously large nujmber
      (98M).  vm.max_proc_mmap is an int and the calculation was based on
      KvaSize which is ... a huge number much larger than anything an
      int can hold.
    
    * Replace the mess with a hard-coded value of 1000000.  The value can
      be changed via sysctl as before.

Summary of changes:
 sys/vm/vm_mmap.c | 27 +++------------------------
 1 file changed, 3 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f52708b0e2a001116766cd079f6014ee25d4089f


-- 
DragonFly BSD source repository


More information about the Commits mailing list