diff options
author | Paul Mackerras <paulus@samba.org> | 2007-02-19 00:42:42 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-08 04:31:43 (GMT) |
commit | bb72c481e970dc1b4034ddccbe8302ff39e0d948 (patch) | |
tree | 4fa19698d82308c0b293bd3968bfd3b7a5e59ba7 /Documentation/powerpc | |
parent | 99ddef9bfe714c3273e3fce4c6b6a2a99e7d0bf8 (diff) | |
download | linux-bb72c481e970dc1b4034ddccbe8302ff39e0d948.tar.xz |
[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 'Documentation/powerpc')
0 files changed, 0 insertions, 0 deletions