remoteproc: Don't use %pK through printk
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 11 Jun 2025 10:03:06 +0000 (12:03 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 17 Jun 2025 13:03:24 +0000 (08:03 -0500)
commitb0dc512ab7ba177442cfec4a65b2681355d7cb64
treeae94319db899bd54edb4aee84bedfe15f5c46fea
parentf9262233b7710fae246784e2be7fa0a1275fe445
remoteproc: Don't use %pK through printk

In the past %pK was preferable to %p as it would not leak raw pointer
values into the kernel log.
Since commit ad67b74d2469 ("printk: hash addresses printed with %p")
the regular %p has been improved to avoid this issue.
Furthermore, restricted pointers ("%pK") were never meant to be used
through printk(). They can still unintentionally leak raw pointers or
acquire sleeping locks in atomic contexts.

Switch to the regular pointer formatting which is safer and
easier to reason about.
There are still a few users of %pK left, but these use it through seq_file,
for which its usage is safe.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20250611-restricted-pointers-remoteproc-v1-1-f059097ba663@linutronix.de
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/remoteproc/omap_remoteproc.c
drivers/remoteproc/pru_rproc.c
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_virtio.c
drivers/remoteproc/st_slim_rproc.c
drivers/remoteproc/ti_k3_common.c
drivers/remoteproc/ti_k3_r5_remoteproc.c
drivers/rpmsg/virtio_rpmsg_bus.c