[PW_SID:1078556] riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer#1741
[PW_SID:1078556] riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer#1741linux-riscv-bot wants to merge 1 commit into
Conversation
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> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
|
Patch 1: "riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer" |
PR for series 1078556 applied to workflow__riscv__fixes
Name: riscv: Fix ftrace_graph_ret_addr() to use the correct task pointer
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1078556
Version: 1