]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Don't leak kernel addresses
authorMatteo Croce <mcroce@redhat.com>
Mon, 18 Mar 2019 21:24:03 +0000 (22:24 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Mar 2019 11:10:56 +0000 (12:10 +0100)
commitae70b7bb1538d4417993cd81850d1431098192b7
tree8103b9a001e749927d81d9506d5aa9278b34c0c9
parente34ba0d7c8ee128a8a7cc0a1d0345206aeb6a4e5
x86/mm: Don't leak kernel addresses

Since commit:

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

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

Signed-off-by: Matteo 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: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/mpparse.c