* [patch] Fix stack overflow test for non-8k stacks
@ 2004-03-14 23:56 Matt Mackall
0 siblings, 0 replies; only message in thread
From: Matt Mackall @ 2004-03-14 23:56 UTC (permalink / raw)
To: linux-kernel, Andrew Morton
This is needed to work properly with 4k and 16k stacks. Please apply.
test-mpm/arch/i386/kernel/entry.S | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/i386/kernel/entry.S~stack_overflow arch/i386/kernel/entry.S
--- test/arch/i386/kernel/entry.S~stack_overflow 2004-03-14 17:37:47.000000000 -0600
+++ test-mpm/arch/i386/kernel/entry.S 2004-03-14 17:49:25.000000000 -0600
@@ -55,7 +55,7 @@
*/
#ifdef CONFIG_STACK_OVERFLOW_TEST
#define STACK_OVERFLOW_TEST \
- testl $7680,%esp; \
+ testl $(THREAD_SIZE - 512),%esp; \
jnz 10f; \
call stack_overflow; \
10:
_
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-14 23:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-14 23:56 [patch] Fix stack overflow test for non-8k stacks Matt Mackall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®