powerpc/mm: Blacklist SLB symbols from kprobe
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Feb 2017 04:30:19 +0000 (15:30 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Feb 2017 23:58:52 +0000 (10:58 +1100)
We can't sensibly take a trap at this point. So, blacklist these
symbols.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb_low.S

index 9beed92c1900bb208ffed821c7d3d8f0b344e628..a85e06ea6c2040a84f702b3c41b761808377552e 100644 (file)
@@ -272,3 +272,11 @@ slb_compare_rr_to_size:
        clrrdi  r3,r3,SID_SHIFT_1T      /* clear out non-ESID bits */
        b       7b
 
+
+_ASM_NOKPROBE_SYMBOL(slb_allocate_realmode)
+_ASM_NOKPROBE_SYMBOL(slb_miss_kernel_load_linear)
+_ASM_NOKPROBE_SYMBOL(slb_miss_kernel_load_io)
+_ASM_NOKPROBE_SYMBOL(slb_compare_rr_to_size)
+#ifdef CONFIG_SPARSEMEM_VMEMMAP
+_ASM_NOKPROBE_SYMBOL(slb_miss_kernel_load_vmemmap)
+#endif