Commit a3151724 authored by Matteo Croce's avatar Matteo Croce Committed by Ingo Molnar

x86/mm: Don't leak kernel addresses

Since commit:

  ad67b74d ("printk: hash addresses printed with %p")

at boot "____ptrval____" is printed instead of actual addresses:

    found SMP MP-table at [mem 0x000f5cc0-0x000f5ccf] mapped at [(____ptrval____)]

Instead of changing the print to "%px", and leaking a kernel addresses,
just remove the print completely, like in:

  071929db ("arm64: Stop printing the virtual memory layout").
Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 9e98c678
...@@ -598,8 +598,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length) ...@@ -598,8 +598,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
mpf_base = base; mpf_base = base;
mpf_found = true; mpf_found = true;
pr_info("found SMP MP-table at [mem %#010lx-%#010lx] mapped at [%p]\n", pr_info("found SMP MP-table at [mem %#010lx-%#010lx]\n",
base, base + sizeof(*mpf) - 1, mpf); base, base + sizeof(*mpf) - 1);
memblock_reserve(base, sizeof(*mpf)); memblock_reserve(base, sizeof(*mpf));
if (mpf->physptr) if (mpf->physptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment