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

From: Martin K. Petersen
Date: Mon Jun 16 2025 - 14:35:23 EST



Thomas,

> 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-staging, thanks!

--
Martin K. Petersen