x86: Fix __get_wchan() for !STACKTRACE
mainline inclusion from mainline-v5.16-rc1 commit 5d1ceb39 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5BKYL CVE: NA -------------------------------- Use asm/unwind.h to implement wchan, since we cannot always rely on STACKTRACE=y. Fixes: bc9bbb81 ("x86: Fix get_wchan() to support the ORC unwinder") Reported-by: NStephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: NKees Cook <keescook@chromium.org> Link: https://lkml.kernel.org/r/20211022152104.137058575@infradead.orgSigned-off-by: NLin Yujun <linyujun809@huawei.com> Reviewed-by: NZhang Jianhua <chris.zjh@huawei.com> Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
Showing
arch/x86/kernel/process.c
100644 → 100755
想要评论请 注册 或 登录