s390/unwind: stop gracefully at task pt_regs
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 22 Nov 2019 15:49:13 +0000 (16:49 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 30 Nov 2019 09:52:45 +0000 (10:52 +0100)
commite76e69611e944ecc38aaf8fe3a7bebdc3c5daf84
tree0f57673f7fb9e0464b6985735009b8425a1541af
parentcb7948e8c3f18f7ff0ab7d0fa1e6b108d938cdd6
s390/unwind: stop gracefully at task pt_regs

Consider reaching task pt_regs graceful unwinder termination. Task
pt_regs itself never contains a valid state to which a task might return
within the kernel context (user task pt_regs is a special case). Since
we already avoid printing user task pt_regs and in most cases we don't
even bother filling task pt_regs psw and r15 with something reasonable
simply skip task pt_regs altogether. With this change unwind_error() now
accurately represent whether unwinder reached task pt_regs successfully
or failed along the way.

Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/unwind_bc.c