On Fri, 16 Feb 1996 09:00:13 +0100, Ulrich Windl
<Ulrich.Windl@rz.uni-regensburg.de> said:
> Isn't the stack for i386 located in the stack segment which has its
> own size limit. I imagine that a stack overflow will be detected by
> hardware (i886), causes a trap, and then the stack grows. This would
> require that the kernel uses virtual addresses. I'm not sure about
> this.
The user-mode stack is, but the kernel stack is a separate, static
data structure preallocated for each process. If your kernel stack
overflows, then you don't have any stack space left on which to set up
the call for a kernel trap! Bad news...
Cheers,
Stephen.
-- Stephen Tweedie <sct@dcs.ed.ac.uk> Department of Computer Science, Edinburgh University, Scotland.