]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
percpu: stop printing kernel addresses
authorMatteo Croce <mcroce@redhat.com>
Mon, 18 Mar 2019 01:32:36 +0000 (02:32 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitbeb038eee7b47003e06a37b70a60f6d1079130fa
tree0ad27c56f98466ffb4fe6ba9b89e9d4544a8aaab
parentfec8af8c4f2f1028ac15d2e2da3115606d26e0fe
percpu: stop printing kernel addresses

BugLink: https://bugs.launchpad.net/bugs/1838349
commit 00206a69ee32f03e6f40837684dcbe475ea02266 upstream.

Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"),
at boot "____ptrval____" is printed instead of actual addresses:

    percpu: Embedded 38 pages/cpu @(____ptrval____) s124376 r0 d31272 u524288

Instead of changing the print to "%px", and leaking kernel addresses,
just remove the print completely, cfr. e.g. commit 071929dbdd865f77
("arm64: Stop printing the virtual memory layout").

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
mm/percpu.c