> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Thomas Weißschuh
> Sent: Monday, April 14, 2025 10:26 AM
> To: Jeff Johnson <[email protected]>; Loic Poulain
> <[email protected]>; Brian Norris <[email protected]>;
> Francesco Dolcini <[email protected]>; Nguyen, Anthony L
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; Andrew Lunn <[email protected]>;
> David S. Miller <[email protected]>; Dumazet, Eric
> <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni
> <[email protected]>; Saeed Mahameed <[email protected]>; Leon
> Romanovsky <[email protected]>; Tariq Toukan <[email protected]>
> Cc: [email protected]; [email protected];
> [email protected]; [email protected];
> [email protected]; [email protected]; intel-wired-
> [email protected]; [email protected]; [email protected];
> Thomas Weißschuh <[email protected]>
> Subject: [Intel-wired-lan] [PATCH net-next 0/7] net: Don't use %pK through
> printk
>
> 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 looks in atomic contexts.
>
> Switch to the regular pointer formatting which is safer and easier to reason
> about.
> There are still a few users of %pK left, but these use it through seq_file,
> for
> which its usage is safe.
>
> Signed-off-by: Thomas Weißschuh <[email protected]>
> ---
> Thomas Weißschuh (7):
> wifi: ath10k: Don't use %pK through printk
> wifi: ath11k: Don't use %pK through printk
> wifi: ath12k: Don't use %pK through printk
> wifi: wcn36xx: Don't use %pK through printk
> wifi: mwifiex: Don't use %pK through printk
> ice: Don't use %pK through printk or tracepoints
> net/mlx5: Don't use %pK through tracepoints
>
> drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
> drivers/net/ethernet/intel/ice/ice_trace.h | 10 +++++-----
> .../mlx5/core/sf/dev/diag/dev_tracepoint.h | 2 +-
> drivers/net/wireless/ath/ath10k/ahb.c | 2 +-
> drivers/net/wireless/ath/ath10k/bmi.c | 6 +++---
> drivers/net/wireless/ath/ath10k/ce.c | 4 ++--
> drivers/net/wireless/ath/ath10k/core.c | 4 ++--
> drivers/net/wireless/ath/ath10k/htc.c | 6 +++---
> drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +-
> drivers/net/wireless/ath/ath10k/mac.c | 22
> +++++++++++-----------
> drivers/net/wireless/ath/ath10k/pci.c | 2 +-
> drivers/net/wireless/ath/ath10k/testmode.c | 4 ++--
> drivers/net/wireless/ath/ath10k/txrx.c | 2 +-
> drivers/net/wireless/ath/ath10k/usb.c | 4 ++--
> drivers/net/wireless/ath/ath10k/wmi.c | 4 ++--
> drivers/net/wireless/ath/ath11k/testmode.c | 2 +-
> drivers/net/wireless/ath/ath12k/testmode.c | 4 ++--
> drivers/net/wireless/ath/wcn36xx/testmode.c | 2 +-
> drivers/net/wireless/marvell/mwifiex/pcie.c | 2 +-
> 19 files changed, 43 insertions(+), 43 deletions(-)
> ---
> base-commit: 8ffd015db85fea3e15a77027fda6c02ced4d2444
> change-id: 20250404-restricted-pointers-net-a8cddd03e5d1
>
> Best regards,
> --
> Thomas Weißschuh <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>