arm64: kprobes: Remove redundant kprobe_step_ctx
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 3 Nov 2020 13:49:04 +0000 (14:49 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 10 Nov 2020 17:12:30 +0000 (17:12 +0000)
commitba090f9cafd53dbabe0f0a8c4ccae44203d3731b
tree007b9a05464fa6f7eb18ab92e4cc3f1b316196b3
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
arm64: kprobes: Remove redundant kprobe_step_ctx

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.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20201103134900.337243-2-jean-philippe@linaro.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/kprobes.h
arch/arm64/kernel/probes/kprobes.c