[PATCH] Kprobes: Incorrect handling of probes on ret/lret instruction
authorPrasanna S Panchamukhi <prasanna@in.ibm.com>
Thu, 5 May 2005 23:15:40 +0000 (16:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 May 2005 23:36:39 +0000 (16:36 -0700)
commit0b9e2cac8a56e197d0a9e06268db4c8652d23dd5
tree6bab2badad512d39c2b606e8c2c12d271c1bee35
parent3a0a64e6c917b2ccc311cf978cc9d7eef7b31c47
[PATCH] Kprobes: Incorrect handling of probes on ret/lret instruction

Kprobes could not handle the insertion of a probe on the ret/lret
instruction and used to oops after single stepping since kprobes was
modifying eip/rip incorrectly.  Adjustment of eip/rip is not required after
single stepping in case of ret/lret instruction, because eip/rip points to
the correct location after execution of the ret/lret instruction.  This
patch fixes the above problem.

Signed-off-by: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/kprobes.c
arch/x86_64/kernel/kprobes.c