]> git.baikalelectronics.ru Git - kernel.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)
commitfdc7148569a002104dd37561d50607ab917be361
tree1be87ec5258d9b6cf3ab877c3b3e723db8f98aad
parent9ef15c861991a2574783ffaaecef2fbffb6dbefe
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