Re: [PATCH net-next] net: Convert %pK back to %p
Kees Cook <[email protected]> Thu, 9 Jul 2026 09:18:44 -0700
| Newsgroups | org.kernel.vger.linux-sctp,org.kernel.vger.linux-can,org.kernel.vger.netdev |
|---|---|
| Message-ID | <202607090916.7731D36D@keescook> |
On Mon, Jul 06, 2026 at 09:38:24AM +0200, Sebastian Andrzej Siewior wrote:
> This is a revert of commit 71338aa7d050c ("net: convert %p usage to
> %pK") which is from 2011. Back then the default behaviour for %p was to
> print the pointer. The %pK modifier was introduced to be able to control
> the behaviour of specific pointer output without changing the behaviour
> of %p for everyone. It was dedicated to avoid leaking pointers via
> /proc.
Given the policy on bare %p, and that there are so few in this list (15
files), how about review those that can just simply be removed or
switched to %pS, etc:
https://docs.kernel.org/process/deprecated.html#p-format-specifier
--
Kees Cook