* [RFC PATCH] x86_64: double the x86_64 kernel stack size?
@ 2013-12-11 6:28 Zhouyi Zhou
2013-12-11 20:29 ` H. Peter Anvin
0 siblings, 1 reply; 2+ messages in thread
From: Zhouyi Zhou @ 2013-12-11 6:28 UTC (permalink / raw)
To: linux-kernel, tglx, mingo, hpa, x86, bp, keescook, zhangyanfei
Cc: Zhouyi Zhou
Somethings I compiled the Linux network modules (especially bridge and netfilter)
without optimization, the kernel always crashes because of exhausted kernel stack.
The similar problem has been discussed in
http://lists.linuxfoundation.org/pipermail/bridge/2005-January/004402.html
Is it OK the double the x86_64 kernel stack size?
Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Tested-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
---
arch/x86/include/asm/page_64_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h
index 43dcd80..dc4c629 100644
--- a/arch/x86/include/asm/page_64_types.h
+++ b/arch/x86/include/asm/page_64_types.h
@@ -1,7 +1,7 @@
#ifndef _ASM_X86_PAGE_64_DEFS_H
#define _ASM_X86_PAGE_64_DEFS_H
-#define THREAD_SIZE_ORDER 1
+#define THREAD_SIZE_ORDER 2
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
#define CURRENT_MASK (~(THREAD_SIZE - 1))
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH] x86_64: double the x86_64 kernel stack size?
2013-12-11 6:28 [RFC PATCH] x86_64: double the x86_64 kernel stack size? Zhouyi Zhou
@ 2013-12-11 20:29 ` H. Peter Anvin
0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2013-12-11 20:29 UTC (permalink / raw)
To: Zhouyi Zhou, linux-kernel, tglx, mingo, x86, bp, keescook,
zhangyanfei
Cc: Zhouyi Zhou
On 12/10/2013 10:28 PM, Zhouyi Zhou wrote:
> Somethings I compiled the Linux network modules (especially bridge and netfilter)
> without optimization, the kernel always crashes because of exhausted kernel stack.
>
> The similar problem has been discussed in
> http://lists.linuxfoundation.org/pipermail/bridge/2005-January/004402.html
>
> Is it OK the double the x86_64 kernel stack size?
>
Hell no.
-hpa
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-11 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 6:28 [RFC PATCH] x86_64: double the x86_64 kernel stack size? Zhouyi Zhou
2013-12-11 20:29 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox