aboutsummaryrefslogtreecommitdiff
path: root/arch/alpha
diff options
context:
space:
mode:
authorQi Zheng2021-09-29 15:02:17 -0700
committerPeter Zijlstra2021-10-15 11:25:14 +0200
commitbc9bbb81730ea667c31c5b284f95ee312bab466f (patch)
treef9f4a5d7a04d22d2b7bb4d0fa4d9d0301b436497 /arch/alpha
parent4e046156792c26bef8a4e30be711777fc8578257 (diff)
x86: Fix get_wchan() to support the ORC unwinder
Currently, the kernel CONFIG_UNWINDER_ORC option is enabled by default on x86, but the implementation of get_wchan() is still based on the frame pointer unwinder, so the /proc/<pid>/wchan usually returned 0 regardless of whether the task <pid> is running. Reimplement get_wchan() by calling stack_trace_save_tsk(), which is adapted to the ORC and frame pointer unwinders. Fixes: ee9f8fce9964 ("x86/unwind: Add the ORC unwinder") Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20211008111626.271115116@infradead.org
Diffstat (limited to 'arch/alpha')
0 files changed, 0 insertions, 0 deletions