Skip to content

Commit b929a50

Browse files
teknoraversuryasaimadhu
authored andcommitted
x86/realmode: Don't leak the trampoline kernel address
Since commit ad67b74 ("printk: hash addresses printed with %p") at boot "____ptrval____" is printed instead of the trampoline addresses: Base memory trampoline at [(____ptrval____)] 99000 size 24576 Remove the print as we don't want to leak kernel addresses and this statement is not needed anymore. Fixes: ad67b74 ("printk: hash addresses printed with %p") Signed-off-by: Matteo Croce <mcroce@redhat.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190326203046.20787-1-mcroce@redhat.com
1 parent 0f02dae commit b929a50

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/realmode/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ void __init set_real_mode_mem(phys_addr_t mem, size_t size)
2020
void *base = __va(mem);
2121

2222
real_mode_header = (struct real_mode_header *) base;
23-
printk(KERN_DEBUG "Base memory trampoline at [%p] %llx size %zu\n",
24-
base, (unsigned long long)mem, size);
2523
}
2624

2725
void __init reserve_real_mode(void)

0 commit comments

Comments
 (0)