+2
−0
arch/riscv/include/asm/livepatch.h
0 → 100644
+67
−0
arch/riscv/kernel/livepatch.c
0 → 100644
+262
−0
Loading
Merge Pull Request from: @laokz This is a rebased commit of 2536#PR per the 6.6 kernel, see https://gitee.com/openeuler/kernel/pulls/2536 Build log at https://build.tarsier-infra.com/package/show/home:laokz:branches:openEuler:24.03/kernel For 6.6 kernel, I tried apply and test the patch, it worked, such as livepatch-sample.c. The PR already reported at kernel SIG 2023-11-10 conference, please see https://etherpad.openeuler.org/p/Kernel-meetings#L897 To adapt RISC-V specific feature, the PR touched one core code to let architecture to determine whether to do livepatch symbol relocation or not. For arches not having this issue, the changed code looks as a nop. Please see the code. Link:https://gitee.com/openeuler/kernel/pulls/4084 Reviewed-by:Mingzheng Xing <xingmingzheng@iscas.ac.cn> Signed-off-by:
Xie XiuQi <xiexiuqi@huawei.com>