Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2012 07:14:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r237185 - stable/9/sys/vm
Message-ID:  <201206170714.q5H7EwCd091451@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206170714.q5H7EwCd091451>