svn commit: r258078 - head/sys/powerpc/include
Justin Hibbits
jhibbits at FreeBSD.org
Wed Nov 13 01:37:53 UTC 2013
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 */
More information about the svn-src-head
mailing list