Skip to content

Commit

Permalink
lib/nmi_backtrace.c: fix kernel text address leak
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
LiucIntel authored and torvalds committed Nov 18, 2017
1 parent 36a3d1d commit 2f9b7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nmi_backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f9b7e0

Please sign in to comment.