livepatch/arm64: only check stack top
hulk inclusion category: feature bugzilla: 119440 https://gitee.com/openeuler/kernel/issues/I4DDEL -------------------------------- Based on the commit 'livepatch: checks only of the replaced instruction is on the stack', the livepatch only needs to check the replaced instructions during stack check. If the instructions to be replaced do not contain a jump instruction, the instructions may only appear at the top of the stack. Thus, after confirming that the instructions to be replaced do not contain a jump instruction, only the top of the stack instead of entire stack may be checked. Each function in livepatch has a force tag. When the value is KLP_STACK_OPTIMIZE, the function of checking only the top of the stack is enabled to speed up the check. Signed-off-by:Ye Weihua <yeweihua4@huawei.com> Reviewed-by:
Yang Jihong <yangjihong1@huawei.com> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment