]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: fix singlestep handling in reenter_kprobe
authorAbhishek Sagar <sagar.abhishek@gmail.com>
Wed, 30 Jan 2008 12:33:13 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:13 +0000 (13:33 +0100)
commitfb8830e72d9bd86f1e7b6886cb1886c391130f86
tree1be87ec5258d9b6cf3ab877c3b3e723db8f98aad
parent0723a69a63beec1ca6e792239ef75d0181387ef0
x86: fix singlestep handling in reenter_kprobe

Highlight peculiar cases in singles-step kprobe handling.

In reenter_kprobe(), a breakpoint in KPROBE_HIT_SS case can only occur
when single-stepping a breakpoint on which a probe was installed. Since
such probes are single-stepped inline, identifying these cases is
unambiguous. All other cases leading up to KPROBE_HIT_SS are possible
bugs. Identify and WARN_ON such cases.

Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/kprobes.c