]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r320498
authoralc <alc@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 22 Jul 2017 04:57:51 +0000 (04:57 +0000)
committeralc <alc@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 22 Jul 2017 04:57:51 +0000 (04:57 +0000)
commit8c0d0495ccb4b755d9343eaa98e648f09191f529
treed47a0ef1fa0adb20397534c56e2bc86cb9459b87
parentd6b008797c92bcb10c95c0f4a03ca48a8e02b322
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@321359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_exec.c
sys/vm/vm_map.c