There are patches to make i386 do this (and use 4K stacks as a config option)
from Dave Hansen and Ben LaHaise in 2.5-mjb tree.
>> One thing that would help (aside from separate interrupt stacks)
>> would be a guard page below the stack. That wouldn't require any
>> physical memory to be reserved, and would provide positive indication
>> of stack overflow without significant runtime overhead.
>
> Yes, that should work. It needs some additional code in the page fault
> handler to detect this case, but that shouldn't slow the system down
> too much.
There's stack overflow detection in there as well.
M.
-
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/