summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-02-17 04:31:26 +0000
committerart <art@openbsd.org>2002-02-17 04:31:26 +0000
commit372a4a1f278cf46011ca012380962347849e658f (patch)
tree19e075447d1a01b39f53af03f1bf1a1085666c96 /sys/kern/kern_exec.c
parentCache vnodes, don't hold on to the root vnode, some cleanups, handle (diff)
downloadwireguard-openbsd-372a4a1f278cf46011ca012380962347849e658f.tar.xz
wireguard-openbsd-372a4a1f278cf46011ca012380962347849e658f.zip
Enable stackgap_random. Set it initially to 1k.
Diffstat (limited to 'sys/kern/kern_exec.c')
-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 2cc8429b7d3..d861374dd13 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.64 2002/02/08 13:53:28 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.65 2002/02/17 04:31:26 art Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -70,7 +70,7 @@
* 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;
+int stackgap_random = 1024;
/*
* check exec: