]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Increase stack size of userspace threads to 32k.
authorJustin Husted <sigstop@gmail.com>
Sun, 15 Dec 2019 00:25:05 +0000 (16:25 -0800)
committerJustin Husted <sigstop@gmail.com>
Sun, 15 Dec 2019 00:51:54 +0000 (16:51 -0800)
Certain fuse tests crashed inside of libc calls such as fprintf() with
only 16k of stack.

Signed-off-by: Justin Husted <sigstop@gmail.com>
linux/kthread.c

index ce3e2a18f2ef2bb07d37dea3fdc876caa516aa72..65e824b4cc0843c36d0b905e7b9c266dabcb98d7 100644 (file)
@@ -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)