Commit 27d852d2 authored by Li Huafei's avatar Li Huafei Committed by Zheng Zengkai
Browse files

livepatch/ppc64: Fix the stack check for exception frames

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5CJ7X



--------------------------------

For exception frames, we need to check NIP in addition to PC. When a
task is interrupted, NIP is the interrupt return address. The function
where the NIP is located is also on the stack.

Fixes: ec2244b5 ("livepatch/ppc64: only check stack top")
Fixes: 2a7c3db6 ("livepatch/powerpc64: 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 ac90783f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment