mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + lib_backtrace-fix-kernel-text-address-leak.patch added to -mm tree
@ 2017-11-06 23:52 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-11-06 23:52 UTC (permalink / raw)
  To: changcheng.liu, jpoimboe, pmladek, sergey.senozhatsky.work, mm-commits


The patch titled
     Subject: lib/nmi_backtrace.c: fix kernel text address leak
has been added to the -mm tree.  Its filename is
     lib_backtrace-fix-kernel-text-address-leak.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/lib_backtrace-fix-kernel-text-address-leak.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/lib_backtrace-fix-kernel-text-address-leak.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: "Liu, Changcheng" <changcheng.liu@intel.com>
Subject: lib/nmi_backtrace.c: fix kernel text address leak

Don't leak idle function address in NMI backtrace.

Link: http://lkml.kernel.org/r/20171106165648.GA95243@sofia
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/nmi_backtrace.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN lib/nmi_backtrace.c~lib_backtrace-fix-kernel-text-address-leak lib/nmi_backtrace.c
--- a/lib/nmi_backtrace.c~lib_backtrace-fix-kernel-text-address-leak
+++ a/lib/nmi_backtrace.c
@@ -93,8 +93,8 @@ bool nmi_cpu_backtrace(struct pt_regs *r
 	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)
_

Patches currently in -mm which might be from changcheng.liu@intel.com are

lib_backtrace-fix-kernel-text-address-leak.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-06 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 23:52 + lib_backtrace-fix-kernel-text-address-leak.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).