lkml.org 
[lkml]   [2018]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -tip v6 16/27] ARM: kprobes: Don't call the ->break_handler() in arm kprobes code
    Date
    Don't call the ->break_handler() from the arm kprobes code,
    because it was only used by jprobes which got removed.

    Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Russell King <linux@armlinux.org.uk>
    Cc: linux-arm-kernel@lists.infradead.org
    ---
    arch/arm/probes/kprobes/core.c | 11 -----------
    1 file changed, 11 deletions(-)

    diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c
    index 23562111c511..3192350f389d 100644
    --- a/arch/arm/probes/kprobes/core.c
    +++ b/arch/arm/probes/kprobes/core.c
    @@ -315,17 +315,6 @@ void __kprobes kprobe_handler(struct pt_regs *regs)
    reset_current_kprobe();
    }
    }
    - } else if (cur) {
    - /* We probably hit a jprobe. Call its break handler. */
    - if (cur->break_handler && cur->break_handler(cur, regs)) {
    - kcb->kprobe_status = KPROBE_HIT_SS;
    - singlestep(cur, regs, kcb);
    - if (cur->post_handler) {
    - kcb->kprobe_status = KPROBE_HIT_SSDONE;
    - cur->post_handler(cur, regs, 0);
    - }
    - }
    - reset_current_kprobe();
    } else {
    /*
    * The probe was removed and a race is in progress.
    \
     
     \ /
      Last update: 2018-06-19 18:12    [W:4.064 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site