[PATCH] s390: show_task oops
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 14 Jan 2006 21:20:57 +0000 (13:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Jan 2006 02:27:08 +0000 (18:27 -0800)
commiteb33c190c2b633f0dfc98481ecf12f62a02c705e
treecb7ec1168d0c9d333adc0d33012c0aefd808e58e
parent7ffbc9da137ef475afd5e01f72e1ce1ce49668b1
[PATCH] s390: show_task oops

The show_task function walks the kernel stack backchain of processes assuming
that the processes are not running.  Since this assumption is not correct
walking the backchain can lead to an addressing exception and therefore to a
kernel hang.  So prevent the kernel hang (you still get incorrect results)
verity that all read accesses are within the bounds of the kernel stack before
performing them.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/process.c