s390/unwind: correct stack switching during unwind
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 6 Jun 2019 14:58:45 +0000 (16:58 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 7 Jun 2019 13:20:44 +0000 (15:20 +0200)
commit0ab0d7ac2090eae30f1c0b01ae981bb7a368f598
tree570e93f72c416403b352d38128ce45dbca408d7c
parent962f0af83c239c0aef05639631e871c874b00f99
s390/unwind: correct stack switching during unwind

Adjust conditions in on_stack function. That fixes backchain unwinder
which was unable to read pt_regs at the very bottom of the stack and
hence couldn't follow stacks (e.g. from async stack to a task stack).

Fixes: 78c98f907413 ("s390/unwind: introduce stack unwind API")
Reported-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/include/asm/stacktrace.h