From owner-svn-src-all@FreeBSD.ORG Sun Jun 17 07:14:58 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B58DD106566C; Sun, 17 Jun 2012 07:14:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A02778FC0A; Sun, 17 Jun 2012 07:14:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5H7EwEn091453; Sun, 17 Jun 2012 07:14:58 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5H7EwCd091451; Sun, 17 Jun 2012 07:14:58 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201206170714.q5H7EwCd091451@svn.freebsd.org> From: Konstantin Belousov Date: Sun, 17 Jun 2012 07:14:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237185 - stable/9/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2012 07:14:58 -0000 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) {