Date: Fri, 5 Sep 2014 05:07:38 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r271153 - stable/10/sys/powerpc/include Message-ID: <201409050507.s8557cPh082116@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Fri Sep 5 05:07:38 2014 New Revision: 271153 URL: http://svnweb.freebsd.org/changeset/base/271153 Log: 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 Modified: stable/10/sys/powerpc/include/param.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/powerpc/include/param.h ============================================================================== --- stable/10/sys/powerpc/include/param.h Fri Sep 5 03:33:16 2014 (r271152) +++ stable/10/sys/powerpc/include/param.h Fri Sep 5 05:07:38 2014 (r271153) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409050507.s8557cPh082116>