projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a3d1d
)
lib/nmi_backtrace.c: fix kernel text address leak
author
Liu, Changcheng
<
[email protected]
>
Fri, 17 Nov 2017 23:28:20 +0000
(15:28 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 18 Nov 2017 00:10:02 +0000
(16:10 -0800)
Don't leak idle function address in NMI backtrace.
Link:
http://lkml.kernel.org/r/20171106165648.GA95243@sofia
Signed-off-by: Liu Changcheng <
[email protected]
>
Reviewed-by: Petr Mladek <
[email protected]
>
Reviewed-by: Josh Poimboeuf <
[email protected]
>
Reviewed-by: Sergey Senozhatsky <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/nmi_backtrace.c
patch
|
blob
|
history
diff --git
a/lib/nmi_backtrace.c
b/lib/nmi_backtrace.c
index 46e4c749e4eba64da193d0e1f221fa65eee4802a..61a6b5aab07e758cf448119546597ce54bcce9f6 100644
(file)
--- a/
lib/nmi_backtrace.c
+++ b/
lib/nmi_backtrace.c
@@
-93,8
+93,8
@@
bool nmi_cpu_backtrace(struct pt_regs *regs)
if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
arch_spin_lock(&lock);
if (regs && cpu_in_idle(instruction_pointer(regs))) {
- pr_warn("NMI backtrace for cpu %d skipped: idling at
pc %#lx
\n",
- cpu, instruction_pointer(regs));
+ pr_warn("NMI backtrace for cpu %d skipped: idling at
%pS
\n",
+ cpu,
(void *)
instruction_pointer(regs));
} else {
pr_warn("NMI backtrace for cpu %d\n", cpu);
if (regs)