]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc64: Fix recursion in stack overflow detection handling.
authorDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 03:39:08 +0000 (20:39 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:05:11 +0000 (11:05 -0700)
commitfbcd513d29df1398572db0b5bd1cc6cfecd4b2fd
tree1ab78c9e171955328bcfe75c8e0f9d6b216228e8
parentf8bb164b647b559370fdf0bb7941f8b2631ebaea
sparc64: Fix recursion in stack overflow detection handling.

[ Upstream commit c7498081a6f5d96c9f3243b6b5e020352903bfd2 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc64/lib/mcount.S