mirror-linux/drivers/usb/core
Edward Adam Davis 9dfec4a51d USB: core: remove the move buf action
The buffer size of sysfs is fixed at PAGE_SIZE, and the page offset
of the buf parameter of sysfs_emit_at() must be 0, there is no need
to manually manage the buf pointer offset.

Fixes: 711d41ab4a ("usb: core: Use sysfs_emit_at() when showing dynamic IDs")
Reported-by: syzbot+b6445765657b5855e869@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=b6445765657b5855e869
Tested-by: syzbot+b6445765657b5855e869@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Link: https://lore.kernel.org/r/tencent_B32D6D8C9450EBFEEE5ACC2C7B0E6C402D0A@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-12 13:41:55 +02:00
..
Kconfig
Makefile
buffer.c
config.c usb: core: config: Prevent OOB read in SS endpoint companion parsing 2025-07-01 16:16:32 +02:00
devices.c
devio.c
driver.c USB: core: remove the move buf action 2025-09-12 13:41:55 +02:00
endpoint.c
file.c
generic.c USB: Replace own str_plural with common one 2025-01-15 18:28:12 +01: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 USB: core: Update kerneldoc for usb_hcd_giveback_urb() 2025-08-19 12:29:04 +02:00
hub.c usb: hub: Don't try to recover devices lost during warm reset. 2025-07-16 09:48:11 +02:00
hub.h usb: hub: Fix flushing of delayed work used for post resume purposes 2025-06-30 15:36:00 +02:00
ledtrig-usbport.c
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 quick for another SanDisk 3.2Gen1 Flash Drive 2025-08-13 17:15:19 +02:00
sysfs.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
urb.c usb: core: usb_submit_urb: downgrade type check 2025-06-19 12:27:43 +02:00
usb-acpi.c usb: acpi: fix device link removal 2025-06-19 12:36:19 +02:00
usb.c usb: core: add dma-noncoherent buffer alloc and free API 2025-07-09 12:15:56 +02:00
usb.h