Messages in this thread | | | Subject | Re: 4k stacks in 2.6 | From | Andi Kleen <> | Date | Wed, 26 May 2004 21:32:32 +0200 |
| |
"David S. Miller" <davem@redhat.com> writes:
>> Change gcc to catch stack overflows before the fact and disallow >> module load unless modules have those checks as well.
It's impossible to do anything but panic, so it's not too helpful in practice. You can only do better for interrupts (not handle an interrupt when the stack is too low).
> That's easy, just enable profiling then implement a suitable > _mcount that checks for stack overflow. I bet someone has done > this already.
I did it for x86-64 a long time ago. Should be easy to port to i386 too.
ftp://ftp.x86-64.org/pub/linux/debug/stackcheck-1
-Andi
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |