Skip to content

usb: Don't use %pK through printk

Thomas Weißschuh linux-arm-kernel linux-usb lkml 2 versions – New

Get series with b4
b4 am [email protected] change-id 20250217-restricted-pointers-usb-8c711bae6994

Versions newest first

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Refer to original %p->%pK changes in commit messages
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: core: Don't use %pK through printkdrivers/usb/core/hcd.c drivers/usb/core/urb.c+3 -30 replies
2/2usb: dwc3: Don't use %pK through printkdrivers/usb/dwc3/dwc3-st.c drivers/usb/dwc3/gadget.c+4 -40 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchThinh Nguyen
1/2
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] usb: Don't use %pK through printk

Restricted pointers ("%pK") are not meant to be used through printk(). It can unintentionally expose security sensitive, raw pointer values.

Use regular pointer formatting instead.

---
Changes in v2:
- Refer to original %p->%pK changes in commit messages
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (2):
usb: core: Don't use %pK through printk
usb: dwc3: Don't use %pK through printk

 drivers/usb/core/hcd.c     | 4 ++--
 drivers/usb/core/urb.c     | 2 +-
 drivers/usb/dwc3/dwc3-st.c | 2 +-
 drivers/usb/dwc3/gadget.c  | 6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)

---
base-commit: 80e54e84911a923c40d7bee33a34c1b4be148d7a
change-id: 20250217-restricted-pointers-usb-8c711bae6994

Best regards,

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