]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc/unwind: fix unwinder when CONFIG_64BIT is enabled
authorSven Schnelle <svens@stackframe.org>
Sat, 9 Oct 2021 21:15:17 +0000 (23:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:07 +0000 (11:36 +0100)
commit4847dcb44233beb8a73a35709f1a5296b25e72a1
tree1880e00b03bfd85d07df3746261063a694e720fc
parentca6b1b3e032cf6ae2a61303eba04848b10bd6efc
parisc/unwind: fix unwinder when CONFIG_64BIT is enabled

[ Upstream commit 8e0ba125c2bf1030af3267058019ba86da96863f ]

With 64 bit kernels unwind_special() is not working because
it compares the pc to the address of the function descriptor.
Add a helper function that compares pc with the dereferenced
address. This fixes all of the backtraces on my c8000. Without
this changes, a lot of backtraces are missing in kdb or the
show-all-tasks command from /proc/sysrq-trigger.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/kernel/unwind.c