Files
linux-legacy/arch/powerpc/kernel
Paul Mackerras bb72c481e9 [POWERPC] Harden validate_sp against stack corruption
If something has overflowed or corrupted the stack and causes an oops,
and we try to print a stack trace, that will call validate_sp, which
can itself cause an oops if the cpu field of the thread_info struct at
the bottom of the stack has been corrupted (if CONFIG_IRQSTACKS is
set).  This makes debugging harder.

To avoid the second oops, this adds a check to make sure that the cpu
number is reasonable before using it to check whether the stack is on
the softirq or hardirq stack.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-03-08 15:31:43 +11:00
..
2006-09-11 13:32:30 -04:00
2007-02-07 14:03:22 +11:00
2007-03-08 04:09:32 +11:00
2006-08-25 14:56:07 +10:00
2007-02-07 14:03:22 +11:00
2007-02-07 14:03:22 +11:00
2006-12-11 16:35:07 +11:00
2006-08-08 17:08:56 +10:00
2007-02-07 14:03:19 +11:00
2007-02-16 14:00:20 +11:00
2007-02-11 10:51:32 -08:00
2007-02-07 14:03:19 +11:00