]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: kprobes bugfix
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 18 Dec 2007 17:05:58 +0000 (18:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 Dec 2007 17:05:58 +0000 (18:05 +0100)
commit0b0122faf4833548072d23f3c3063c23bc289746
tree4c5183e0b92142bdfb0f5abf2cab58329e997cbc
parent29b6cd794e73eea7600541d06288a09861ffecb0
x86: kprobes bugfix

Kprobes for x86-64 may cause a kernel crash if it inserted on "iret"
instruction. "call absolute" is invalid on x86-64, so we don't need
treat it.

 - Change the processing order as same as x86-32.
 - Add "iret"(0xcf) case.
 - Remove next_rip local variable.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/kprobes_64.c