]> err.no Git - linux-2.6/commit
[PATCH] powerpc/kprobes: fix singlestep out-of-line
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Fri, 28 Apr 2006 12:08:42 +0000 (17:38 +0530)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 May 2006 13:06:41 +0000 (23:06 +1000)
commit0ccde0a290b44b8296b82a7683b4c299eb51ba6b
treecc586aa319da07dcda8f91e3ee03d9da960d5fac
parent054d8ff37710efaebd1998ce94d366df315a354f
[PATCH] powerpc/kprobes: fix singlestep out-of-line

We currently single-step inline if the instruction on which a kprobe is
inserted is a trap variant.

- variants (such as tdnei, used by BUG()) typically evaluate a condition
  and cause a trap only if the condition is satisfied.
- kprobes uses the unconditional "trap" (0x7fe00008) and single-stepping
  again on this instruction, resulting in another trap without
  evaluating the condition is obviously incorrect.

Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/kprobes.c