Date: Wed, 13 Nov 2013 01:37:53 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258078 - head/sys/powerpc/include Message-ID: <201311130137.rAD1brQU096717@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Wed Nov 13 01:37:52 2013 New Revision: 258078 URL: http://svnweb.freebsd.org/changeset/base/258078 Log: 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 MFC after: 1 week Modified: head/sys/powerpc/include/param.h Modified: head/sys/powerpc/include/param.h ============================================================================== --- head/sys/powerpc/include/param.h Wed Nov 13 01:04:02 2013 (r258077) +++ head/sys/powerpc/include/param.h Wed Nov 13 01:37:52 2013 (r258078) @@ -104,7 +104,11 @@ #define MAXPAGESIZES 1 /* maximum number of supported page sizes */ #ifndef KSTACK_PAGES -#define KSTACK_PAGES 4 /* includes pcb */ +#ifdef __powerpc64__ +#define KSTACK_PAGES 8 /* includes pcb */ +#else +#define KSTACK_PAGES 8 /* 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311130137.rAD1brQU096717>