Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/kern revert ticket 50
details: https://anonhg.NetBSD.org/src/rev/2924f15365ad
branches: netbsd-8
changeset: 434027:2924f15365ad
user: snj <snj%NetBSD.org@localhost>
date: Wed Jun 21 18:26:42 2017 +0000
description:
revert ticket 50
diffstat:
sys/kern/exec_subr.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diffs (45 lines):
diff -r d98e8a62ee17 -r 2924f15365ad sys/kern/exec_subr.c
--- a/sys/kern/exec_subr.c Wed Jun 21 18:24:26 2017 +0000
+++ b/sys/kern/exec_subr.c Wed Jun 21 18:26:42 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_subr.c,v 1.78.2.1 2017/06/21 18:12:40 snj Exp $ */
+/* $NetBSD: exec_subr.c,v 1.78.2.2 2017/06/21 18:26:42 snj Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.78.2.1 2017/06/21 18:12:40 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.78.2.2 2017/06/21 18:26:42 snj Exp $");
#include "opt_pax.h"
@@ -67,8 +67,6 @@
#define DPRINTF(a)
#endif
-uint32_t user_stack_guard_size = 1024 * 1024;
-
/*
* new_vmcmd():
* create a new vmcmd structure and fill in its fields based
@@ -442,17 +440,6 @@
(uintmax_t)access_size, (uintmax_t)access_linear_min,
(uintmax_t)noaccess_size, (uintmax_t)noaccess_linear_min));
- if (user_stack_guard_size > 0) {
-#ifdef __MACHINE_STACK_GROWS_UP
- vsize_t guard_size = MIN(VM_MAXUSER_ADDRESS - epp->ep_maxsaddr, user_stack_guard_size);
- if (guard_size > 0)
- NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, guard_size,
- epp->ep_maxsaddr, NULL, 0, VM_PROT_NONE);
-#else
- NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, user_stack_guard_size,
- epp->ep_maxsaddr - user_stack_guard_size, NULL, 0, VM_PROT_NONE);
-#endif
- }
if (noaccess_size > 0 && noaccess_size <= MAXSSIZ) {
NEW_VMCMD2(&epp->ep_vmcmds, vmcmd_map_zero, noaccess_size,
noaccess_linear_min, NULL, 0, VM_PROT_NONE, VMCMD_STACK);
Home |
Main Index |
Thread Index |
Old Index