Skip to content

Commit 3fb2d0a

Browse files
teknoravergregkh
authored andcommitted
x86/mm: Don't leak kernel addresses
[ Upstream commit a315172 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 58ad2f1 commit 3fb2d0a

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
@@ -596,8 +596,8 @@ static int __init smp_scan_config(unsigned long base, unsigned long length)
596596
mpf_base = base;
597597
mpf_found = true;
598598

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

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

0 commit comments

Comments
 (0)