Skip to content

Commit a315172

Browse files
teknoraverIngo Molnar
authored andcommitted
x86/mm: Don't leak kernel addresses
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]>
1 parent 9e98c67 commit a315172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/mpparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
598598
mpf_base = base;
599599
mpf_found = true;
600600

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

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

0 commit comments

Comments
 (0)