From: Nicholas Piggin Date: Sat, 30 Jan 2021 13:08:28 +0000 (+1000) Subject: powerpc/traps: add NOKPROBE_SYMBOL for sreset and mce X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3a3138836bc35966d59742512b597997755878f7;p=linux.git powerpc/traps: add NOKPROBE_SYMBOL for sreset and mce These NMIs could fire any time including inside kprobe code, so exclude them from kprobes. Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210130130852.2952424-19-npiggin@gmail.com --- diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index f7370145be193..4349b25807cf8 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -517,6 +517,7 @@ out: /* What should we do here? We could issue a shutdown or hard reset. */ } +NOKPROBE_SYMBOL(system_reset_exception); /* * I/O accesses can cause machine checks on powermacs. @@ -843,6 +844,7 @@ void machine_check_exception(struct pt_regs *regs) bail: if (nmi) nmi_exit(); } +NOKPROBE_SYMBOL(machine_check_exception); void SMIException(struct pt_regs *regs) {