summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-11 20:05:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-11 20:05:52 +0000
commit22514951f940ed31d129a74cc365f721908c6812 (patch)
tree6b502d9f9e8e2ada2a937e3341cc9d8e7e7167c3 /sys/kern
parentdb2bd862883ac8f48e0f1809dadf8ee20977fb6d (diff)
pull in new MD STACKGAP_RANDOM
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 1e31b84c477..3eb4cee8eb8 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.91 2005/03/09 17:41:29 miod Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.92 2005/04/11 20:05:51 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -82,7 +82,7 @@ int exec_sigcode_map(struct proc *, struct emul *);
* to it. Must be a n^2. If non-zero, the stack gap will be calculated as:
* (arc4random() * ALIGNBYTES) & (stackgap_random - 1) + STACKGAPLEN.
*/
-int stackgap_random = 64*1024;
+int stackgap_random = STACKGAP_RANDOM;
/*
* check exec: