livepatch/ppc32: Fix the stack check for exception frames
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5CJ7X -------------------------------- Currently, the stack check of ppc32 does not consider exception frames, and the interrupted functions are omitted. Similar to ppc64, special processing of exception frames should be added. Because the stack frame structure of ppc32 and ppc64 is the same, we can reuse the unwind_frame() code of ppc64. Then during the stack check, the exception frames need to check the NIP in addition to the PC, which is the function that is interrupted. Fixes: e22fb775 ("livepatch/ppc32: Support livepatch without ftrace") Fixes: 1daef7b0 ("livepatch/powerpc32: Add arch_klp_module_check_calltrace") Signed-off-by:Li Huafei <lihuafei1@huawei.com> Reviewed-by:
Xu Kuohai <xukuohai@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment