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) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"