Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: Increase thread and stack size to 32kb

Since kernel 4.11 the thread and irq stacks on parisc randomly overflow
the default size of 16k. The reason why stack usage suddenly grew is yet
unknown.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Helge Deller <deller@gmx.de>

+2 -2
+1 -1
arch/parisc/include/asm/thread_info.h
··· 34 34 35 35 /* thread information allocation */ 36 36 37 - #define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */ 37 + #define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */ 38 38 /* Be sure to hunt all references to this down when you change the size of 39 39 * the kernel stack */ 40 40 #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
+1 -1
arch/parisc/kernel/irq.c
··· 380 380 /* 381 381 * IRQ STACK - used for irq handler 382 382 */ 383 - #define IRQ_STACK_SIZE (4096 << 2) /* 16k irq stack size */ 383 + #define IRQ_STACK_SIZE (4096 << 3) /* 32k irq stack size */ 384 384 385 385 union irq_stack_union { 386 386 unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];