mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usb: Don't use %pK through printk
@ 2025-03-10 15:38 Thomas Weißschuh
  2025-03-10 15:38 ` [PATCH v2 1/2] usb: core: " Thomas Weißschuh
  2025-03-10 15:38 ` [PATCH v2 2/2] usb: dwc3: " Thomas Weißschuh
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Weißschuh @ 2025-03-10 15:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Patrice Chotard, Thinh Nguyen
  Cc: linux-usb, linux-kernel, linux-arm-kernel, Thomas Weißschuh

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.

Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Changes in v2:
- Refer to original %p->%pK changes in commit messages
- Link to v1: https://lore.kernel.org/r/20250217-restricted-pointers-usb-v1-0-78da55158832@linutronix.de

---
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,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-10 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-10 15:38 [PATCH v2 0/2] usb: Don't use %pK through printk Thomas Weißschuh
2025-03-10 15:38 ` [PATCH v2 1/2] usb: core: " Thomas Weißschuh
2025-03-10 15:38 ` [PATCH v2 2/2] usb: dwc3: " Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®