summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2014-09-05 05:07:38 +0000
committerjhibbits <jhibbits@FreeBSD.org>2014-09-05 05:07:38 +0000
commitddbdadae3d18ef7ffae275c8425550bcef723269 (patch)
tree8658715eaf25a104d5d753b376cc25e810ec7286 /sys/powerpc
parent38e6a286e9b72285031197fb086aa9c423347bb7 (diff)
downloadFreeBSD-src-ddbdadae3d18ef7ffae275c8425550bcef723269.zip
FreeBSD-src-ddbdadae3d18ef7ffae275c8425550bcef723269.tar.gz
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
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/param.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 7e7c8f1..5c25e8a 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 */
OpenPOWER on IntegriCloud