diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2023-09-22 09:24:41 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-09-22 20:29:27 +1000 |
commit | c5cc3ca707bc916a3f326364751a41f25040aef3 (patch) | |
tree | 5dbeda1745c02940d6bd715c4e8723426ddd50b8 /tools | |
parent | c3f4309693758b13fbb34b3741c2e2801ad28769 (diff) | |
download | lwn-c5cc3ca707bc916a3f326364751a41f25040aef3.tar.gz lwn-c5cc3ca707bc916a3f326364751a41f25040aef3.zip |
powerpc/stacktrace: Fix arch_stack_walk_reliable()
The changes to copy_thread() made in commit eed7c420aac7 ("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 edbd0387f324 ("powerpc: copy_thread add a back chain to the
switch stack frame"), so remove that as well.
Fixes: eed7c420aac7 ("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
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions