mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
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
This commit is contained in:
parent
e83f01fdb9
commit
1740f15a99
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
||||||
* Copyright (c) 2006 MontaVista Software, Inc.
|
* Copyright (c) 2006 MontaVista Software, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/kprobes.h>
|
||||||
|
|
||||||
#include <asm/cpm2.h>
|
#include <asm/cpm2.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/pci-bridge.h>
|
#include <asm/pci-bridge.h>
|
||||||
|
@ -29,6 +31,7 @@ void __noreturn pq2_restart(char *cmd)
|
||||||
|
|
||||||
panic("Restart failed\n");
|
panic("Restart failed\n");
|
||||||
}
|
}
|
||||||
|
NOKPROBE_SYMBOL(pq2_restart)
|
||||||
|
|
||||||
#ifdef CONFIG_PCI
|
#ifdef CONFIG_PCI
|
||||||
static int pq2_pci_exclude_device(struct pci_controller *hose,
|
static int pq2_pci_exclude_device(struct pci_controller *hose,
|
||||||
|
|
Loading…
Add table
Reference in a new issue