DF-2674 / fix.diff
--- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -4248,7 +4248,9 @@ 0, NULL, addr, stack_entry->ba.start, VM_MAPTYPE_NORMAL, - VM_SUBSYS_STACK, VM_PROT_ALL, VM_PROT_ALL, 0); + VM_SUBSYS_STACK, + stack_entry->protection, + stack_entry->max_protection, 0); /* Adjust the available stack space by the amount we grew. */ if (rv == KERN_SUCCESS) { |