summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-02-05 23:06:22 +0000
committerderaadt <deraadt@openbsd.org>2015-02-05 23:06:22 +0000
commit63ea68d5cf7a1bcadd72528e574ae9d2764bbf27 (patch)
tree1dd9f6b92b935c4467919fa30f43bd3e2e72a9b8
parentbackout previous for now; issues seen with "tar: Directory vanished before (diff)
downloadwireguard-openbsd-63ea68d5cf7a1bcadd72528e574ae9d2764bbf27.tar.xz
wireguard-openbsd-63ea68d5cf7a1bcadd72528e574ae9d2764bbf27.zip
Expand STACKGAP_RANDOM to 2MB on machines with large user VA
ok kettenis
-rw-r--r--sys/arch/alpha/include/vmparam.h4
-rw-r--r--sys/arch/amd64/include/vmparam.h4
-rw-r--r--sys/arch/sparc64/include/vmparam.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/include/vmparam.h b/sys/arch/alpha/include/vmparam.h
index 3cee4af8579..4384b473b5c 100644
--- a/sys/arch/alpha/include/vmparam.h
+++ b/sys/arch/alpha/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.25 2014/01/30 18:16:41 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.26 2015/02/05 23:06:22 deraadt Exp $ */
/* $NetBSD: vmparam.h,v 1.18 2000/05/22 17:13:54 thorpej Exp $ */
/*
@@ -82,7 +82,7 @@
#define MAXSSIZ (32*1024*1024) /* max stack size */
#endif
-#define STACKGAP_RANDOM 256*1024
+#define STACKGAP_RANDOM 2*1024*1024
/*
* PTEs for mapping user space into the kernel for physio operations.
diff --git a/sys/arch/amd64/include/vmparam.h b/sys/arch/amd64/include/vmparam.h
index 3b3e2af21f8..883d4c9e7cf 100644
--- a/sys/arch/amd64/include/vmparam.h
+++ b/sys/arch/amd64/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.19 2014/03/26 19:39:39 tedu Exp $ */
+/* $OpenBSD: vmparam.h,v 1.20 2015/02/05 23:06:22 deraadt Exp $ */
/* $NetBSD: vmparam.h,v 1.1 2003/04/26 18:39:49 fvdl Exp $ */
/*-
@@ -72,7 +72,7 @@
#define MAXSSIZ ((paddr_t)32*1024*1024) /* max stack size */
#endif
-#define STACKGAP_RANDOM 256*1024
+#define STACKGAP_RANDOM 2*1024*1024
/*
* Size of shared memory map
diff --git a/sys/arch/sparc64/include/vmparam.h b/sys/arch/sparc64/include/vmparam.h
index 28e3eeea104..157e94498f0 100644
--- a/sys/arch/sparc64/include/vmparam.h
+++ b/sys/arch/sparc64/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.28 2014/10/24 20:26:58 kettenis Exp $ */
+/* $OpenBSD: vmparam.h,v 1.29 2015/02/05 23:06:22 deraadt Exp $ */
/* $NetBSD: vmparam.h,v 1.18 2001/05/01 02:19:19 thorpej Exp $ */
/*
@@ -84,7 +84,7 @@
#define MAXSSIZ (32L*1024*1024) /* max stack size */
#endif
-#define STACKGAP_RANDOM 256*1024
+#define STACKGAP_RANDOM 2*1024*1024
/*
* Size of shared memory map