]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r320498
authoralc <alc@FreeBSD.org>
Sat, 22 Jul 2017 04:20:08 +0000 (04:20 +0000)
committeralc <alc@FreeBSD.org>
Sat, 22 Jul 2017 04:20:08 +0000 (04:20 +0000)
commitc844e357904ffae1a2eaf0cf9bc4b6418205dbd5
tree0a54c0e0aea3474794814bd958187f6998bf7f3f
parentc05b8aec0366d432ae660d397eb973a373ed4b36
MFC r320498
  Clear the MAP_WIREFUTURE flag on the vm map in exec_new_vmspace() when it
  recycles the current vm space.  Otherwise, an mlockall(MCL_FUTURE) could
  still be in effect on the process after an execve(2), which violates the
  specification for mlockall(2).

  It's pointless for vm_map_stack() to check the MEMLOCK limit.  It will
  never be asked to wire the stack.  Moreover, it doesn't even implement
  wiring of the stack.
sys/kern/kern_exec.c
sys/vm/vm_map.c