Thread (13 messages) flat view 13 messages, 3 authors, 2016-11-18

Re: [RFC PATCH 4/4] powerpc: mm/slb: blacklist symbols from kprobe

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-11-18 09:36:23

"Naveen N. Rao" [off-list ref] writes:
quoted hunk ↗ jump to hunk
We can't really take a trap at this point. So, blacklist these symbols.

Reported-by: Anton Blanchard <redacted>
Signed-off-by: Naveen N. Rao <redacted>
---
 arch/powerpc/mm/slb_low.S | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S
index c1c7456..c2bae92 100644
--- a/arch/powerpc/mm/slb_low.S
+++ b/arch/powerpc/mm/slb_low.S
@@ -30,7 +30,7 @@
  *	r9, r10, r11 are clobbered by this function
  * No other registers are examined or changed.
  */
-_GLOBAL(slb_allocate_realmode)
+_GLOBAL_NOKPROBE(slb_allocate_realmode)
I think I'd prefer we just leave these as is, and add somewhere nearby:

_ASM_NOKPROBE_SYMBOL(slb_allocate_realmode)


It means someone reading the code doesn't need to worry about the
nokprobe part, just to understand the function. It also means we need
fewer macros :)

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help