linux/drivers/usb/core
Thomas Weißschuh f4aa6caa8b usb: core: Don't use %pK through printk
This is a revert of
commit 2f964780c0 ("USB: core: replace %p with %pK").

When the formatting was changed from %p to %pK that was a security
improvement, as %p would leak raw pointer values to the kernel log.
Since commit ad67b74d24 ("printk: hash addresses printed with %p")
the regular %p has been improved to avoid this issue.
On the other hand, restricted pointers ("%pK") were never meant to be used
through printk(). They can unintentionally still leak raw pointers or
acquire sleeping looks in atomic contexts.

Switch back to regular %p again.

Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20250310-restricted-pointers-usb-v2-1-a7598e2d47d1@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-14 09:17:29 +01:00
..
buffer.c
config.c USB: core: Add eUSB2 descriptor and parsing in USB core 2025-02-21 10:45:32 +01:00
devices.c
devio.c USB: core: remove dead code in do_proc_bulk() 2024-11-13 07:06:41 +01:00
driver.c USB: Optimize goto logic in API usb_register_driver() 2024-12-23 18:40:34 +01:00
endpoint.c usb: core: use sysfs_emit() instead of sprintf() 2024-10-29 04:33:49 +01:00
file.c
generic.c USB: Replace own str_plural with common one 2025-01-15 18:28:12 +01:00
hcd-pci.c USB: Fix the issue of task recovery failure caused by USB status when S4 wakes up 2024-12-04 16:14:08 +01:00
hcd.c usb: core: Don't use %pK through printk 2025-03-14 09:17:29 +01:00
hub.c Merge v6.14-rc6 into usb-next 2025-03-10 08:16:31 +01:00
hub.h
Kconfig
ledtrig-usbport.c usb: core: use sysfs_emit() instead of sprintf() 2024-10-29 04:33:49 +01:00
Makefile
message.c
notify.c
of.c
otg_productlist.h
phy.c
phy.h
port.c USB: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
quirks.c usb: quirks: Add DELAY_INIT and NO_LPM for Prolific Mass Storage Card Reader 2025-03-06 16:50:24 +01:00
sysfs.c usb: core: sysfs: Constify 'struct bin_attribute' 2024-12-24 08:56:04 +01:00
urb.c usb: core: Don't use %pK through printk 2025-03-14 09:17:29 +01:00
usb-acpi.c ACPI: bus: change the prototype for acpi_get_physical_device_location 2024-12-19 20:59:35 +01:00
usb.c
usb.h USB: make to_usb_device_driver() use container_of_const() 2024-11-14 17:57:33 +01:00