From 42411f14c1ea4a8fd20b8d20b6ec5a26fd7a6bd3 Mon Sep 17 00:00:00 2001 From: jhibbits Date: Fri, 5 Sep 2014 05:07:38 +0000 Subject: [PATCH] MFC r258078,258079 Increase the stack size for ppc64 from 4 pages to 8. I found a stack overflow when a coredump was taken onto a ZFS volume with heavy network activity. 2 DSI traps, plus one DECR trap, along with several function calls in the stack, overflowed the 4 pages. 8 page stack fixes this. Discussed with: nwhitehorn Approved by: re Relnotes: yes git-svn-id: svn://svn.freebsd.org/base/stable/10@271153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/powerpc/include/param.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h index 7e7c8f153..5c25e8a3d 100644 --- a/sys/powerpc/include/param.h +++ b/sys/powerpc/include/param.h @@ -104,8 +104,12 @@ #define MAXPAGESIZES 1 /* maximum number of supported page sizes */ #ifndef KSTACK_PAGES +#ifdef __powerpc64__ +#define KSTACK_PAGES 8 /* includes pcb */ +#else #define KSTACK_PAGES 4 /* includes pcb */ #endif +#endif #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */ #define USPACE (KSTACK_PAGES * PAGE_SIZE) /* total size of pcb */ -- 2.45.0