• Martin Schwidefsky's avatar
    [S390] kprobes breaks BUG_ON · f794c827
    Martin Schwidefsky authored
    The illegal operation handler calls the die notifier with DIE_BPT to
    let kprobes pick up its breakpoint. If kprobes does not find its
    breakpoint it returns NOTIFY_STOP instead of NOTIFY_DONE.
    Since we use stop_machine_run on s390 to arm/disarm the kprobes
    breakpoints the race that kprobe_handler tries to solve by checking
    for the kprobes breakpoints does not exist. Removing the check makes
    BUG_ON working again.
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    f794c827
kprobes.c 18.2 KB