提交 2b9ee60d 编写于 作者: C Cheng Jian 提交者: Zheng Zengkai

livepatch/core: Add livepatch consistency depends

euler inclusion
category: feature
Bugzilla: 51921
CVE: N/A

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

Now, arm64 don't support DYNAMIC_FTRACE_WITH_REGS and RELIABLE_STACKTRACE.
which the first is necessary to implement livepatch with ftrace and the
second allow to implement per-task consistency.

So. arm64 only support LIVEPATCH_WO_FTRACE and STOP_MACHINE_CONSISTENCY.
but other architectures can work under LIVEPATCH_FTRACE with
PER_TASK_CONSISTENCY. commit the depends to avoid incorrect configuration.
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: NLi Bin <huawei.libin@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NDong Kai <dongkai11@huawei.com>
Signed-off-by: NYe Weihua <yeweihua4@huawei.com>
Reviewed-by: NYang Jihong <yangjihong1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 853bec28
...@@ -39,12 +39,14 @@ config LIVEPATCH_FTRACE ...@@ -39,12 +39,14 @@ config LIVEPATCH_FTRACE
bool "based on ftrace" bool "based on ftrace"
depends on HAVE_LIVEPATCH_FTRACE depends on HAVE_LIVEPATCH_FTRACE
depends on DYNAMIC_FTRACE_WITH_REGS depends on DYNAMIC_FTRACE_WITH_REGS
select LIVEPATCH_PER_TASK_CONSISTENCY
help help
Supports kernel live patching based on ftrace Supports kernel live patching based on ftrace
config LIVEPATCH_WO_FTRACE config LIVEPATCH_WO_FTRACE
bool "without ftrace" bool "without ftrace"
depends on HAVE_LIVEPATCH_WO_FTRACE depends on HAVE_LIVEPATCH_WO_FTRACE
select LIVEPATCH_STOP_MACHINE_CONSISTENCY
help help
Supports kernel live patching without ftrace Supports kernel live patching without ftrace
...@@ -60,6 +62,7 @@ choice ...@@ -60,6 +62,7 @@ choice
config LIVEPATCH_PER_TASK_CONSISTENCY config LIVEPATCH_PER_TASK_CONSISTENCY
bool "per task consistency" bool "per task consistency"
depends on LIVEPATCH_FTRACE
help help
Use basic per-task consistency model Use basic per-task consistency model
It's a hybrid of kGraft and kpatch: It's a hybrid of kGraft and kpatch:
...@@ -70,6 +73,7 @@ config LIVEPATCH_PER_TASK_CONSISTENCY ...@@ -70,6 +73,7 @@ config LIVEPATCH_PER_TASK_CONSISTENCY
config LIVEPATCH_STOP_MACHINE_CONSISTENCY config LIVEPATCH_STOP_MACHINE_CONSISTENCY
bool "stop machine consistency" bool "stop machine consistency"
depends on LIVEPATCH_WO_FTRACE
help help
Use stop machine consistency model Use stop machine consistency model
stop-machine consistency and kpatch's stack stop-machine consistency and kpatch's stack
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册