diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index a3930ee07f73..7e45e76b6bc5 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -133,7 +133,9 @@ zk_thread_create(const char *name, void (*func)(void *), void *arg, * multiple of system page size. */ VERIFY0(pthread_attr_setstacksize(&attr, stksize)); +#ifndef __CHERI_PURE_CAPABILITY__ VERIFY0(pthread_attr_setguardsize(&attr, PAGESIZE)); +#endif VERIFY(ztw = malloc(sizeof (*ztw))); ztw->func = func;