linux/drivers/usb/core
Griffin Kroah-Hartman 4e0197fbb0 usb: core: sysfs: add lock to bos_descriptors_read()
Add a lock to the function bos_descriptors_read().

This function accesses udev->bos, which could be simultaneously freed in
usb_reset_and_verify_device(), a function that is commonly called in
drivers all over the kernel.

Assisted-by: gkh_clanker_t1000
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20260715-usb_core_patches_3-v1-1-53021f5576fd@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-16 17:11:44 +02:00
..
buffer.c
config.c usb: core: Clean up SuperSpeed/eUSB2 descriptor validation logging 2026-05-18 15:16:58 +02:00
devices.c
devio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
driver.c usb: core: use dedicated spinlock for offload state 2026-04-02 09:43:26 +02:00
endpoint.c usb: endpoint: drop custom sysfs attribute structure 2026-03-11 15:48:20 +01:00
file.c
generic.c USB: lower "Device is not authorized for usage" message to info 2025-08-13 16:55:27 +02:00
hcd-pci.c usb: core: modify comments xhci_hc_driver has HCD_MEMORY just like ehci ohci 2025-06-19 12:31:16 +02:00
hcd.c Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
hub.c USB: core: ratelimit cabling message 2026-07-08 17:19:17 +02:00
hub.h usb: hub: Fix flushing of delayed work used for post resume purposes 2025-06-30 15:36:00 +02:00
Kconfig
ledtrig-usbport.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile usb: core: Add tracepoints for device allocation and state changes 2025-10-22 10:58:30 +02:00
message.c USB: core: Use krealloc() in usb_cache_string() 2026-03-18 16:03:52 +01:00
notify.c
of.c USB: of: Simplify with scoped for each OF child loop 2026-04-07 13:49:48 +02:00
offload.c usb: core: use dedicated spinlock for offload state 2026-04-02 09:43:26 +02:00
otg_productlist.h
phy.c usb: core: phy: avoid double use of 'usb3-phy' 2026-04-02 09:19:31 +02:00
phy.h
port.c usb: core: port: Deattach Type-C connector on component unbind 2026-07-16 17:11:22 +02:00
quirks.c USB: core: add USB_QUIRK_NO_LPM for VIA Labs USB 2.0 hub 2026-06-25 15:10:50 +01:00
sysfs.c usb: core: sysfs: add lock to bos_descriptors_read() 2026-07-16 17:11:44 +02:00
trace.c usb: core: Add tracepoints for device allocation and state changes 2025-10-22 10:58:30 +02:00
trace.h usb: core: Add tracepoints for device allocation and state changes 2025-10-22 10:58:30 +02:00
urb.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
usb-acpi.c usb: acpi: fix device link removal 2025-06-19 12:36:19 +02:00
usb.c usb: core: use dedicated spinlock for offload state 2026-04-02 09:43:26 +02:00
usb.h USB: make to_usb_device_driver() use container_of_const() 2024-11-14 17:57:33 +01:00