Re: [CHECKER] large stack variables (>=1K) in 2.4.4 and 2.4.4-ac8

Jeff Dike
2001-05-25T18:49:44Z

dean-list-linux-kernel@arctic.org said:
> also you don't need the task struct at the top to do this -- you just
> allocate 16k instead of 8k, put the task struct on page 0 of the
> allocation, unmap page 1, and put the stack frame on pages 2 and 3.
> (you'd probably have to do a 16k allocation regardless to get the
> guard page.)

This is exactly what UML does. My stacks are larger than the host's stacks
and I was having stack overflow problems when the Linux started saving SSE
state on signal frames.

So I doubled the stack size and put in a guard page while I was at it.

Jeff