From: Jeff D. <jd...@ka...> - 2000-10-06 16:04:37
|
I looked into this a bit, and I found that devfs is putting a 3K structure on the stack, which seems bad to me. I complained at Richard Gooch about it. In the meantime, if you're seeing this problem (especially at boot time) apply the patch below. There is still a problem with interrupts causing stack overflows which I'm trying to track down, but this patch provides some extra room for people who aren't triggering that bug. Jeff --- arch/um/kernel/process_kern.c~ Mon Sep 25 15:34:25 2000 +++ arch/um/kernel/process_kern.c Fri Oct 6 12:07:28 2000 @@ -711,8 +711,13 @@ void check_stack_overflow(void *ptr) { - if((((unsigned long) ptr) & PAGE_MASK) == (unsigned long) current) - panic("Stack overflowed onto current_task page"); + unsigned long addr, c; + + addr = (unsigned long) ptr; + c = (unsigned long) current; + + if(addr - c < PAGE_SIZE / 2) + panic("Stack overflowed well into the current_task page"); } int singlestepping(void *t) |