From 56281aa497f08354edecb4a06fd0c76e1dd13da5 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 3 Jul 2017 08:16:58 +0200 Subject: [PATCH] Revert "HBSD: Harden per-thread stack guard" This reverts commit da1579dfc831c352b2a9b19d7362ab7dd8d945fb. --- lib/libthr/thread/thr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 2f62619ce07..e5393c05f2c 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -477,7 +477,7 @@ init_private(void) sysctlbyname("kern.smp.cpus", &_thr_is_smp, &len, NULL, 0); _thr_is_smp = (_thr_is_smp > 1); _thr_page_size = getpagesize(); - _thr_guard_default = (2 * 1024 * 1024); + _thr_guard_default = _thr_page_size; _pthread_attr_default.guardsize_attr = _thr_guard_default; _pthread_attr_default.stacksize_attr = _thr_stack_default; env = getenv("LIBPTHREAD_SPINLOOPS");