linux-mainline/arch/powerpc
Michael Ellerman c5cc3ca707 powerpc/stacktrace: Fix arch_stack_walk_reliable()
The changes to copy_thread() made in commit eed7c420aa ("powerpc:
copy_thread differentiate kthreads and user mode threads") inadvertently
broke arch_stack_walk_reliable() because it has knowledge of the stack
layout.

Fix it by changing the condition to match the new logic in
copy_thread(). The changes make the comments about the stack layout
incorrect, rather than rephrasing them just refer the reader to
copy_thread().

Also the comment about the stack backchain is no longer true, since
commit edbd0387f3 ("powerpc: copy_thread add a back chain to the
switch stack frame"), so remove that as well.

Fixes: eed7c420aa ("powerpc: copy_thread differentiate kthreads and user mode threads")
Reported-by: Joe Lawrence <joe.lawrence@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230921232441.1181843-1-mpe@ellerman.id.au
2023-09-22 20:29:27 +10:00
..
boot
configs Kbuild updates for v6.6 2023-09-05 11:01:47 -07:00
crypto This push fixes a random config build failure on powerpc. 2023-09-01 15:39:25 -07:00
include ata changes for 6.6 2023-09-05 12:37:28 -07:00
kernel powerpc/stacktrace: Fix arch_stack_walk_reliable() 2023-09-22 20:29:27 +10:00
kexec
kvm powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
lib
math-emu
mm powerpc updates for 6.6 2023-08-31 12:43:10 -07:00
net
perf powerpc/perf/hv-24x7: Update domain value check 2023-09-18 12:23:47 +10:00
platforms powerpc/82xx: Select FSL_SOC 2023-09-18 12:23:48 +10:00
purgatory
sysdev TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
tools
xmon TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
Kbuild
Kconfig powerpc: Fix build issue with LD_DEAD_CODE_DATA_ELIMINATION and FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY 2023-09-18 12:23:47 +10:00
Kconfig.debug
Makefile
Makefile.postlink