Re: [PATCH] RDMA: Don't use %pK through printk
From: Leon Romanovsky
Date: Wed Apr 09 2025 - 12:59:42 EST
On Mon, Apr 07, 2025 at 10:25:09AM +0200, Thomas Weißschuh wrote:
> 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().
Just for the record, this clarification was added in commit:
a48849e2358e ("printk: clarify the documentation for plain pointer printing"), in 2021.
Thanks