Re: [PATCH] scsi: Don't use %pK through printk

From: Martin K. Petersen
Date: Thu Jun 19 2025 - 23:20:27 EST


On Wed, 11 Jun 2025 11:58:06 +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(). They can still unintentionally leak raw pointers or
> acquire sleeping locks in atomic contexts.
>
> [...]

Applied to 6.17/scsi-queue, thanks!

[1/1] scsi: Don't use %pK through printk
https://git.kernel.org/mkp/scsi/c/76549adb4260

--
Martin K. Petersen Oracle Linux Engineering