Commit 7afb0d96 authored by Zheng Yejian's avatar Zheng Yejian Committed by Zheng Zengkai
Browse files

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: default avatarZheng Yejian <zhengyejian1@huawei.com>
Reviewed-by: default avatarKuohai Xu <xukuohai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 4a8fafe8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,