riscv: kprobes: Remove redundant kprobe_step_ctx
mainline inclusion from mainline-v5.19 commit 8c9f4940 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5QM0N CVE: NA ------------------------------------------------- Inspired by commit ba090f9c ("arm64: kprobes: Remove redundant kprobe_step_ctx"), the ss_pending and match_addr of kprobe_step_ctx are redundant because those can be replaced by KPROBE_HIT_SS and &cur_kprobe->ainsn.api.insn[0] + GET_INSN_LENGTH(cur->opcode) respectively. Remove the kprobe_step_ctx to simplify the code. Signed-off-by: NJisheng Zhang <jszhang@kernel.org> Reviewed-by: NMasami Hiramatsu <mhiramat@kernel.org> Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
Showing
想要评论请 注册 或 登录