livepatch/x86: support livepatch without ftrace
hulk inclusion category: feature bugzilla: 5507 CVE: NA ---------------------------------------- support livepatch without ftrace for x86_64 supported now: livepatch relocation when init_patch after load_module; instruction patched when enable; activeness function check; enforcing the patch stacking principle; x86_64 use variable length instruction, so there's no need to consider extra implementation for long jumps. Signed-off-by:Cheng Jian <cj.chengjian@huawei.com> Signed-off-by:
Li Bin <huawei.libin@huawei.com> Tested-by:
Yang ZuoTing <yangzuoting@huawei.com> Tested-by:
Cheng Jian <cj.chengjian@huawei.com> Reviewed-by:
Xie XiuQi <xiexiuqi@huawei.com> Signed-off-by:
zhangyi (F) <yi.zhang@huawei.com> Reviewed-By:
Xie XiuQi <xiexiuqi@huawei.com> Reviewed-By:
Xie XiuQi <xiexiuqi@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- arch/x86/include/asm/livepatch.h 32 additions, 1 deletionarch/x86/include/asm/livepatch.h
- arch/x86/kernel/livepatch.c 280 additions, 0 deletionsarch/x86/kernel/livepatch.c
- kernel/livepatch/core.c 13 additions, 0 deletionskernel/livepatch/core.c
Please register or sign in to comment