Skip to content

wifi: ath: Don't use %pK through printk

Thomas Weißschuh ath10k ath11k ath12k linux-wireless lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250417-restricted-pointers-ath-4f279530336d

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4wifi: ath10k: Don't use %pK through printkdrivers/net/wireless/ath/ath10k/ahb.c drivers/net/wireless/ath/ath10k/bmi.c drivers/net/wireless/ath/ath10k/ce.c +9 more+31 -310 replies
2/4wifi: ath11k: Don't use %pK through printkdrivers/net/wireless/ath/ath11k/testmode.c+1 -10 replies
3/4wifi: ath12k: Don't use %pK through printkdrivers/net/wireless/ath/ath12k/testmode.c+2 -20 replies
4/4wifi: wcn36xx: Don't use %pK through printkdrivers/net/wireless/ath/wcn36xx/testmode.c+1 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAleksandr LoktionovLoic Poulain
1/4R-b
2/4R-b
3/4R-b
4/4R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH ath-next 0/4] wifi: ath: 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 locks in atomic contexts.

Switch to the regular pointer formatting which is safer and easier to reason about.

These patches were originally part of
https://lore.kernel.org/lkml/[email protected]/

---
Thomas Weißschuh (4):
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

 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 +-
 15 files changed, 35 insertions(+), 35 deletions(-)

---
base-commit: cfb2e2c57aef75a414c0f18445c7441df5bc13be
change-id: 20250417-restricted-pointers-ath-4f279530336d

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>