summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-12-28 20:52:48 +0000
committerderaadt <deraadt@openbsd.org>2013-12-28 20:52:48 +0000
commitbe3a8cc0ea65cb15c5ac2d40cdf98a1aa844569b (patch)
tree969fab38a8a69ac58f0fb932bc72526f942820cc /sys/kern
parentAlways call PHY_RESET upon attaching eephy(4) so as to do PHY initialization, (diff)
downloadwireguard-openbsd-be3a8cc0ea65cb15c5ac2d40cdf98a1aa844569b.tar.xz
wireguard-openbsd-be3a8cc0ea65cb15c5ac2d40cdf98a1aa844569b.zip
oops, the fallback stack protector code must handle 64-bit guards
spotted by kettenis
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 703727b6985..01061f865ab 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.195 2013/12/28 03:22:52 deraadt Exp $ */
+/* $OpenBSD: init_main.c,v 1.196 2013/12/28 20:52:48 deraadt Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -415,7 +415,7 @@ main(void *framep)
if (__guard_local == 0) {
volatile long newguard;
- newguard = arc4random();
+ arc4random_buf((void *)&newguard, sizeof newguard);
__guard_local = newguard;
}
#endif