svn commit: r237185 - stable/9/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Sun Jun 17 07:14:58 UTC 2012
Author: kib
Date: Sun Jun 17 07:14:58 2012
New Revision: 237185
URL: http://svn.freebsd.org/changeset/base/237185
Log:
MFC r236848:
Use the previous stack entry protection and max protection to correctly
propagate the stack execution permissions when stack is grown down.
Modified:
stable/9/sys/vm/vm_map.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/vm/vm_map.c
==============================================================================
--- stable/9/sys/vm/vm_map.c Sun Jun 17 05:56:27 2012 (r237184)
+++ stable/9/sys/vm/vm_map.c Sun Jun 17 07:14:58 2012 (r237185)
@@ -3530,7 +3530,7 @@ Retry:
}
rv = vm_map_insert(map, NULL, 0, addr, stack_entry->start,
- p->p_sysent->sv_stackprot, VM_PROT_ALL, 0);
+ next_entry->protection, next_entry->max_protection, 0);
/* Adjust the available stack space by the amount we grew. */
if (rv == KERN_SUCCESS) {
More information about the svn-src-stable-9
mailing list