Skip to content

Commit

Permalink
x86/mm: Don't leak kernel addresses
Browse files Browse the repository at this point in the history
Since commit:

  ad67b74 ("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:

  071929d ("arm64: Stop printing the virtual memory layout").

Signed-off-by: Matteo Croce <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
teknoraver authored and Ingo Molnar committed Mar 19, 2019
1 parent 9e98c67 commit a315172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/mpparse.c
Original file line number Diff line number Diff line change
@@ -598,8 +598,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
mpf_base = base;
mpf_found = true;

pr_info("found SMP MP-table at [mem %#010lx-%#010lx] mapped at [%p]\n",
base, base + sizeof(*mpf) - 1, mpf);
pr_info("found SMP MP-table at [mem %#010lx-%#010lx]\n",
base, base + sizeof(*mpf) - 1);

memblock_reserve(base, sizeof(*mpf));
if (mpf->physptr)

0 comments on commit a315172

Please sign in to comment.