diff options
author | Paul Mackerras <paulus@samba.org> | 2007-02-19 01:42:42 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-08 05:31:43 +0100 |
commit | bb72c481e970dc1b4034ddccbe8302ff39e0d948 (patch) | |
tree | 4fa19698d82308c0b293bd3968bfd3b7a5e59ba7 /lib | |
parent | [POWERPC] Fix compile error in prom.h (diff) | |
download | linux-bb72c481e970dc1b4034ddccbe8302ff39e0d948.tar.xz linux-bb72c481e970dc1b4034ddccbe8302ff39e0d948.zip |
[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 'lib')
0 files changed, 0 insertions, 0 deletions