提交 7afb0d96 编写于 作者: Z Zheng Yejian 提交者: Zheng Zengkai

livepatch/ppc64: Fix preemption check when enabling

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I60N44
CVE: NA

--------------------------------

Misspelling of 'CONFIG_PREEMPTION' may cause old function not being
checked, which results in a running function being livepatched.

Fixes: 20106abf ("livepatch: Check whole stack when CONFIG_PREEMPT is set")
Signed-off-by: NZheng Yejian <zhengyejian1@huawei.com>
Reviewed-by: NKuohai Xu <xukuohai@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 4a8fafe8
......@@ -174,7 +174,7 @@ static int klp_check_activeness_func(struct klp_patch *patch, int enable,
* excution of instructions to be repalced is
* complete.
*/
if (IS_ENABLED(CONFIG_PREEMTION) ||
if (IS_ENABLED(CONFIG_PREEMPTION) ||
(func->force == KLP_NORMAL_FORCE) ||
check_jump_insn(func_addr)) {
ret = add_func_to_list(check_funcs, &pcheck,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册