summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorRui Qi <qirui.001@bytedance.com>2026-06-07 05:17:53 +0300
committerPaul Walmsley <pjw@kernel.org>2026-06-07 05:17:53 +0300
commitecbf894165a2e86b0830eb82be49f861da2a9e0b (patch)
tree19d393e0ce2d9460dd2d5cfc297b0f5d056ea33e /include/linux/debugobjects.h
parent84894ceb3c2ef5c5404359efd4edc6c438aa6d0c (diff)
downloadlinux-ecbf894165a2e86b0830eb82be49f861da2a9e0b.tar.xz
riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer
The walk_stackframe() function is used to unwind the stack of a given task. When function graph tracing is enabled, ftrace_graph_ret_addr() is called to resolve the original return address if it was modified by the tracer. The current code incorrectly passes 'current' instead of 'task' to ftrace_graph_ret_addr(). This causes incorrect return address resolution when unwinding a stack of a different task (e.g., when the task is blocked in __switch_to). Fix this by passing 'task' instead of 'current' to match the behavior of other architectures (arm64, loongarch, powerpc, s390, x86). Signed-off-by: Rui Qi <qirui.001@bytedance.com> Link: https://patch.msgid.link/20260408092915.46408-1-qirui.001@bytedance.com Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions