aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/kernel/signal.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2007-02-19 11:42:42 +1100
committerPaul Mackerras <paulus@samba.org>2007-03-08 15:31:43 +1100
commitbb72c481e970dc1b4034ddccbe8302ff39e0d948 (patch)
tree4fa19698d82308c0b293bd3968bfd3b7a5e59ba7 /arch/i386/kernel/signal.c
parent99ddef9bfe714c3273e3fce4c6b6a2a99e7d0bf8 (diff)
[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>
Diffstat (limited to 'arch/i386/kernel/signal.c')
0 files changed, 0 insertions, 0 deletions