powerpc/traps: add NOKPROBE_SYMBOL for sreset and mce
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:28 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:10 +0000 (00:02 +1100)
commit3a3138836bc35966d59742512b597997755878f7
tree4b86463b167f8eacf86e27a9d2f71b82c5a6d393
parente44370abb2e99299678ec6b209f8aad574fa5f36
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
arch/powerpc/kernel/traps.c