]> err.no Git - linux-2.6/commit
[POWERPC] Make emergency stack safe for current_thread_info() use
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 30 Apr 2008 03:21:45 +0000 (13:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 30 Apr 2008 09:49:48 +0000 (19:49 +1000)
commit3243d87441bf7f97c5c9f7dd46b35f5783ec6740
tree7765277523d0146bccb5bde64df67b13723211a9
parent595f403c1af37b1339e64b89040528b8cd48c5a3
[POWERPC] Make emergency stack safe for current_thread_info() use

The current_thread_info() macro, used by preempt_count(), assumes the
base address and size of the stack are THREAD_SIZE aligned.

The emergency stack currently isn't either of these things, which
could potentially cause problems anytime we're running on the
emergency stack.  That includes when we detect a bad kernel stack
pointer, and also during early_setup_secondary().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/setup_64.c