Commit 7a64eb33 authored by Li Huafei's avatar Li Huafei Committed by Zheng Zengkai
Browse files

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: default avatarLi Huafei <lihuafei1@huawei.com>
Reviewed-by: default avatarXu Kuohai <xukuohai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 27d852d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment