[PATCH v2 2/2] arm64: kprobes: Remove redundant kprobe_step_ctx

Will Deacon will at kernel.org
Tue Nov 3 10:01:52 EST 2020


On Tue, Nov 03, 2020 at 02:49:04PM +0100, Jean-Philippe Brucker wrote:
> From: Masami Hiramatsu <mhiramat at kernel.org>
> 
> The kprobe_step_ctx (kcb->ss_ctx) has ss_pending and match_addr, but
> those are redundant because those can be replaced by KPROBE_HIT_SS and
> &cur_kprobe->ainsn.api.insn[1] respectively.
> To simplify the code, remove the kprobe_step_ctx.
> 
> Reviewed-by: Jean-Philippe Brucker <jean-philippe at linaro.org>
> Signed-off-by: Masami Hiramatsu <mhiramat at kernel.org>
> ---
>  arch/arm64/include/asm/kprobes.h   |  7 ----
>  arch/arm64/kernel/probes/kprobes.c | 53 +++++++-----------------------
>  2 files changed, 12 insertions(+), 48 deletions(-)

Acked-by: Will Deacon <will at kernel.org>

Catalin should be able to queue this at -rc3, once the first patch has
landed in mainline.

Cheers,

Will



More information about the linux-arm-kernel mailing list