summaryrefslogtreecommitdiff
path: root/linux/kthread.c
diff options
context:
space:
mode:
authorJustin Husted <sigstop@gmail.com>2019-12-14 16:25:05 -0800
committerJustin Husted <sigstop@gmail.com>2019-12-14 16:51:54 -0800
commitd0b5ee0339e3c2822975c220a42ea1bf2778b745 (patch)
tree726bf298cedc6075098e98a07451ffea26f4d4d1 /linux/kthread.c
parentf712a866a474d70bfbe3a43aad2b04ceec13ddd3 (diff)
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 <sigstop@gmail.com>
Diffstat (limited to 'linux/kthread.c')
-rw-r--r--linux/kthread.c2
1 files changed, 1 insertions, 1 deletions
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)