Christophe Leroy wrote:
kprobe does not handle events happening in real mode.
As exception entry points are running with MMU disabled,
blacklist them.
Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxx>
---
Âarch/powerpc/kernel/entry_32.S | 7 +++++++
Â1 file changed, 7 insertions(+)
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S
index 94f78c03cb79..9a1a45d6038a 100644
--- a/arch/powerpc/kernel/entry_32.S
+++ b/arch/powerpc/kernel/entry_32.S
@@ -51,6 +51,7 @@ mcheck_transfer_to_handler:
ÂÂÂÂ mfsprÂÂÂ r0,SPRN_DSRR1
ÂÂÂÂ stwÂÂÂ r0,_DSRR1(r11)
ÂÂÂÂ /* fall through */
+_ASM_NOKPROBE_SYMBOL(mcheck_transfer_to_handler)
ÂÂÂÂ .globlÂÂÂ debug_transfer_to_handler
Âdebug_transfer_to_handler:
@@ -59,6 +60,7 @@ debug_transfer_to_handler:
ÂÂÂÂ mfsprÂÂÂ r0,SPRN_CSRR1
ÂÂÂÂ stwÂÂÂ r0,_CSRR1(r11)
ÂÂÂÂ /* fall through */
+_ASM_NOKPROBE_SYMBOL(debug_transfer_to_handler)
ÂÂÂÂ .globlÂÂÂ crit_transfer_to_handler
Âcrit_transfer_to_handler:
@@ -94,6 +96,7 @@ crit_transfer_to_handler:
ÂÂÂÂ rlwinmÂÂÂ r0,r1,0,0,(31 - THREAD_SHIFT)
ÂÂÂÂ stwÂÂÂ r0,KSP_LIMIT(r8)
ÂÂÂÂ /* fall through */
+_ASM_NOKPROBE_SYMBOL(crit_transfer_to_handler)
Â#endif
Â#ifdef CONFIG_40x
@@ -115,6 +118,7 @@ crit_transfer_to_handler:
ÂÂÂÂ rlwinmÂÂÂ r0,r1,0,0,(31 - THREAD_SHIFT)
ÂÂÂÂ stwÂÂÂ r0,KSP_LIMIT(r8)
ÂÂÂÂ /* fall through */
+_ASM_NOKPROBE_SYMBOL(crit_transfer_to_handler)
Â#endif
Â/*
@@ -127,6 +131,7 @@ crit_transfer_to_handler:
ÂÂÂÂ .globlÂÂÂ transfer_to_handler_full
Âtransfer_to_handler_full:
ÂÂÂÂ SAVE_NVGPRS(r11)
+_ASM_NOKPROBE_SYMBOL(transfer_to_handler_full)
ÂÂÂÂ /* fall through */
ÂÂÂÂ .globlÂÂÂ transfer_to_handler
@@ -286,6 +291,8 @@ reenable_mmu:
ÂÂÂÂ lwzÂÂÂ r2, GPR2(r11)
ÂÂÂÂ bÂÂÂ fast_exception_return
Â#endif
+_ASM_NOKPROBE_SYMBOL(transfer_to_handler)
+_ASM_NOKPROBE_SYMBOL(transfer_to_handler_cont)
These are added after 'reenable_mmu', which is itself not blacklisted. Is that intentional?