From: Christophe Leroy Date: Tue, 31 Mar 2020 16:03:40 +0000 (+0000) Subject: powerpc/mem: Blacklist flush_dcache_icache_phys() for kprobe X-Git-Tag: v5.8-rc1~132^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a64371b5d4fb37199dcd04cb7bf0132894018e33;p=thirdparty%2Fkernel%2Flinux.git powerpc/mem: Blacklist flush_dcache_icache_phys() 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 Acked-by: Naveen N. Rao Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/eaab3bff961c3bfe149f1d0bd3593291ef939dcc.1585670437.git.christophe.leroy@c-s.fr --- diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 041ed7cfd341a..f9c20cc23718e 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -468,6 +469,7 @@ static void flush_dcache_icache_phys(unsigned long physaddr) : "r" (nb), "r" (msr), "i" (bytes), "r" (msr0) : "ctr", "memory"); } +NOKPROBE_SYMBOL(flush_dcache_icache_phys) #endif // !defined(CONFIG_PPC_8xx) && !defined(CONFIG_PPC64) /*