[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1wm9bzgah.fsf@ca-mkp.ca.oracle.com>
Date: Mon, 16 Jun 2025 14:34:57 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Cc: Yihang Li <liyihang9@...wei.com>,
"James E.J. Bottomley"
<James.Bottomley@...senPartnership.com>,
"Martin K. Petersen"
<martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: Don't use %pK through printk
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
Powered by blists - more mailing lists