]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] kprobes breaks BUG_ON
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Mar 2007 22:35:38 +0000 (23:35 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Mar 2007 22:35:38 +0000 (23:35 +0100)
commitf794c8279d02ccd69429d816eb03fa12c130d06d
treee062a37c5dfa908599b98724778bb78228a85abf
parentc3442e296517aee733d62fc3fe03211598902c7d
[S390] kprobes breaks BUG_ON

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: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/kprobes.c