Commit 3a313883 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-19-npiggin@gmail.com
parent e44370ab
...@@ -517,6 +517,7 @@ void system_reset_exception(struct pt_regs *regs) ...@@ -517,6 +517,7 @@ void system_reset_exception(struct pt_regs *regs)
/* What should we do here? We could issue a shutdown or hard reset. */ /* 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. * I/O accesses can cause machine checks on powermacs.
...@@ -843,6 +844,7 @@ void machine_check_exception(struct pt_regs *regs) ...@@ -843,6 +844,7 @@ void machine_check_exception(struct pt_regs *regs)
bail: bail:
if (nmi) nmi_exit(); if (nmi) nmi_exit();
} }
NOKPROBE_SYMBOL(machine_check_exception);
void SMIException(struct pt_regs *regs) void SMIException(struct pt_regs *regs)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment