]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix recursion in stack overflow detection handling.
authorDavid S. Miller <davem@davemloft.net>
Tue, 12 Aug 2008 09:03:49 +0000 (02:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Aug 2008 09:03:49 +0000 (02:03 -0700)
commita8dc468ed93682c2f8e3839fb9232fbab1034a90
treef23d27a2c973d0b0542f84cdd0b39be5e4ba406d
parent14ffa41921c48a76214078a09b4cf1a3f8548b64
sparc64: Fix recursion in stack overflow detection handling.

The calls down into prom_printf() when we detect an overflowed stack
can recurse again since the overflow stack will be "below" the current
kernel stack limit.

Prevent this by just returning straight if we are on the stack
overflow safe stack already.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/lib/mcount.S