[POWERPC] Disallow kprobes on emulate_step and branch_taken
authorGui,Jian <guij@cn.ibm.com>
Wed, 1 Nov 2006 02:50:15 +0000 (10:50 +0800)
committerPaul Mackerras <paulus@samba.org>
Wed, 1 Nov 2006 04:14:12 +0000 (15:14 +1100)
commit0d69a052d4d7c4085706b9ac0d1bd28ff90c9fca
tree8dada42c1c58e9450161e88e67d304c68917f3a8
parent292f86f005e3867277b2126c2399eea3e773a4fc
[POWERPC] Disallow kprobes on emulate_step and branch_taken

On powerpc, probing on emulate_step function will crash 2.6.18.1 when
it is triggered.

When kprobe is triggered, emulate_step() is on its kernel path and
will cause recursive kprobe fault.  And branch_taken() is called
in emulate_step().  This disallows kprobes on both of them.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/lib/sstep.c