summaryrefslogtreecommitdiff
path: root/sys/kern/stack_protector.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2009-10-24 04:55:14 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2009-10-24 04:55:14 +0000
commitf47552e770ac51134e605d93efd6c534b2809388 (patch)
tree0483c4d2594c00ada1aeb80547a753779f4480c9 /sys/kern/stack_protector.c
parent115753ce9eb755279fea668547d1692b4ec06ddf (diff)
Notes
Diffstat (limited to 'sys/kern/stack_protector.c')
-rw-r--r--sys/kern/stack_protector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/stack_protector.c b/sys/kern/stack_protector.c
index 554d47d0a833..b5f9973e24cf 100644
--- a/sys/kern/stack_protector.c
+++ b/sys/kern/stack_protector.c
@@ -28,5 +28,4 @@ __stack_chk_init(void *dummy __unused)
for (i = 0; i < __arraycount(guard); i++)
__stack_chk_guard[i] = guard[i];
}
-/* SI_SUB_EVENTHANDLER is right after SI_SUB_LOCK used by arc4rand() init. */
-SYSINIT(stack_chk, SI_SUB_EVENTHANDLER, SI_ORDER_ANY, __stack_chk_init, NULL);
+SYSINIT(stack_chk, SI_SUB_RANDOM, SI_ORDER_ANY, __stack_chk_init, NULL);