From d0b5ee0339e3c2822975c220a42ea1bf2778b745 Mon Sep 17 00:00:00 2001 From: Justin Husted Date: Sat, 14 Dec 2019 16:25:05 -0800 Subject: [PATCH] Increase stack size of userspace threads to 32k. Certain fuse tests crashed inside of libc calls such as fprintf() with only 16k of stack. Signed-off-by: Justin Husted --- linux/kthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/kthread.c b/linux/kthread.c index ce3e2a18..65e824b4 100644 --- a/linux/kthread.c +++ b/linux/kthread.c @@ -76,7 +76,7 @@ struct task_struct *kthread_create(int (*thread_fn)(void *data), pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, 16 << 10); + pthread_attr_setstacksize(&attr, 32 << 10); ret = pthread_create(&p->thread, &attr, kthread_start_fn, p); if (ret)