diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2021-01-30 23:08:28 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-02-09 00:02:10 +1100 |
commit | 3a3138836bc35966d59742512b597997755878f7 (patch) | |
tree | 4b86463b167f8eacf86e27a9d2f71b82c5a6d393 /arch | |
parent | e44370abb2e99299678ec6b209f8aad574fa5f36 (diff) |
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 <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-19-npiggin@gmail.com
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index f7370145be19..4349b25807cf 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) { |