aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2020-03-31 16:03:37 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2020-06-02 20:59:09 +1000
commit1740f15a99d30a5e2710b2b0754e65fc5ba68d1d (patch)
treeabbf705c8064ed5ccaecd7f14020e50f60db823d
parentpowerpc/52xx: Blacklist functions running with MMU disabled for kprobe (diff)
downloadwireguard-linux-1740f15a99d30a5e2710b2b0754e65fc5ba68d1d.tar.xz
wireguard-linux-1740f15a99d30a5e2710b2b0754e65fc5ba68d1d.zip
powerpc/82xx: Blacklist pq2_restart() for kprobe
kprobe does not handle events happening in real mode, all functions running with MMU disabled have to be blacklisted. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/5dca36682383577a3c2b2bca4d577e8654944461.1585670437.git.christophe.leroy@c-s.fr
-rw-r--r--arch/powerpc/platforms/82xx/pq2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2.c b/arch/powerpc/platforms/82xx/pq2.c
index 1cdd5ed9d896..3b5cb39a564c 100644
--- a/arch/powerpc/platforms/82xx/pq2.c
+++ b/arch/powerpc/platforms/82xx/pq2.c
@@ -10,6 +10,8 @@
* Copyright (c) 2006 MontaVista Software, Inc.
*/
+#include <linux/kprobes.h>
+
#include <asm/cpm2.h>
#include <asm/io.h>
#include <asm/pci-bridge.h>
@@ -29,6 +31,7 @@ void __noreturn pq2_restart(char *cmd)
panic("Restart failed\n");
}
+NOKPROBE_SYMBOL(pq2_restart)
#ifdef CONFIG_PCI
static int pq2_pci_exclude_device(struct pci_controller *hose,