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

Jeff Dike (jdike@karaya.com)
Fri, 25 May 2001 13:49:57 -0400


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

-
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/