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

Catalin Marinas catalin.marinas at arm.com
Tue Nov 10 14:24:51 EST 2020


On Tue, Nov 03, 2020 at 03:01:52PM +0000, Will Deacon wrote:
> 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.

I queued it but couldn't convince "b4 ty" to reply to patch 2:

https://git.kernel.org/arm64/c/ba090f9cafd53dbabe0f0a8c4ccae44203d3731b

-- 
Catalin



More information about the linux-arm-kernel mailing list