projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44370a
)
powerpc/traps: add NOKPROBE_SYMBOL for sreset and mce
author
Nicholas Piggin
<npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:28 +0000
(23:08 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:10 +0000
(
00:02
+1100)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kernel/traps.c
b/arch/powerpc/kernel/traps.c
index f7370145be193e695811476a7565f30fe5e9593d..4349b25807cf811ffc7d9873633feba8ceda5a1c 100644
(file)
--- 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)
{