]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Fix __get_wchan() for !STACKTRACE
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Oct 2021 14:53:02 +0000 (16:53 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 26 Oct 2021 19:10:12 +0000 (21:10 +0200)
commit80472ff2479d639d20670290e5556ee98a803456
treea450eb37142355819b28bfc98233f6ae8d10bdf3
parent874dfc21d6d35b6dd30c182e8a62a0d6059e99fc
x86: Fix __get_wchan() for !STACKTRACE

Use asm/unwind.h to implement wchan, since we cannot always rely on
STACKTRACE=y.

Fixes: 27fd10423be0 ("x86: Fix get_wchan() to support the ORC unwinder")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20211022152104.137058575@infradead.org
arch/x86/kernel/process.c