]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When MAP_STACK mapping is created, the map entry is created only to
authorkib <kib@FreeBSD.org>
Sat, 21 Apr 2012 18:36:53 +0000 (18:36 +0000)
committerkib <kib@FreeBSD.org>
Sat, 21 Apr 2012 18:36:53 +0000 (18:36 +0000)
commitbc0324054920c1be4d48b9124891155c8e1c6f5c
tree571594de34c51e399f5b504f70e1befbdc0a6a3a
parentad5c747d1de39d9fdd7096a2314b7cb2eecb3448
When MAP_STACK mapping is created, the map entry is created only to
cover the initial stack size. For MCL_WIREFUTURE maps, the subsequent
call to vm_map_wire() to wire the whole stack region fails due to
VM_MAP_WIRE_NOHOLES flag.

Use the VM_MAP_WIRE_HOLESOK to only wire mapped part of the stack.

Reported and tested by: Sushanth Rai <sushanth_rai yahoo com>
Reviewed by: alc
MFC after: 1 week
sys/vm/vm_mmap.c