Skip to content

Commit 67f5593

Browse files
author
Vasily Gorbik
committed
s390/unwind: report an error if pt_regs are not on stack
If unwinder is looking at pt_regs which is not on stack then something went wrong and an error has to be reported rather than successful unwinding termination. Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 7bcaad1 commit 67f5593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/s390/kernel/unwind_bc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bool unwind_next_frame(struct unwind_state *state)
7676
/* No back-chain, look for a pt_regs structure */
7777
sp = state->sp + STACK_FRAME_OVERHEAD;
7878
if (!on_stack(info, sp, sizeof(struct pt_regs)))
79-
goto out_stop;
79+
goto out_err;
8080
regs = (struct pt_regs *) sp;
8181
if (READ_ONCE_NOCHECK(regs->psw.mask) & PSW_MASK_PSTATE)
8282
goto out_stop;

0 commit comments

Comments
 (0)