]> git.baikalelectronics.ru Git - kernel.git/commit
s390/unwind: remove stack recursion warning
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 5 Aug 2019 13:07:19 +0000 (15:07 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 6 Aug 2019 11:58:35 +0000 (13:58 +0200)
commit5a1f1e9116973d2921975da69c4bb63e39ea5daf
tree8dde6bcd8efc34f712a621f1d7435a66663b854e
parentefe06a6abd31b506f117cfb368a2af41a9ba8872
s390/unwind: remove stack recursion warning

Remove pointless stack recursion on stack type ... warning, which
only confuses people. There is no way to make backchain unwinder 100%
reliable. When a task is interrupted in-between stack frame allocation
and backchain write instructions new stack frame backchain pointer is
left uninitialized (there are also sometimes additional instruction
in-between stack frame allocation and backchain write instructions due
to gcc shrink-wrapping). In attempt to unwind such stack the unwinder
would still try to use that invalid backchain value and perform all kind
of sanity checks on it to make sure we are not pointed out of stack. In
some cases that invalid backchain value would be 0 and we would falsely
treat next stackframe as pt_regs and again gprs[15] in those pt_regs
might happen to point at some address within the task's stack.

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