linux/drivers/usb/core
Dan Carpenter fa1ed74eb1 USB: devio: Don't corrupt user memory
The user buffer has "uurb->buffer_length" bytes.  If the kernel has more
information than that, we should truncate it instead of writing past
the end of the user's buffer.  I added a WARN_ONCE() to help the user
debug the issue.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-25 10:57:13 +02:00
..
Kconfig
Makefile
buffer.c
config.c USB: fix out-of-bounds in usb_set_configuration 2017-09-19 17:27:16 +02:00
devices.c
devio.c USB: devio: Don't corrupt user memory 2017-09-25 10:57:13 +02:00
driver.c
endpoint.c
file.c
generic.c
hcd-pci.c
hcd.c Merge 4.13-rc5 into usb-next 2017-08-14 14:50:58 -07:00
hub.c usb: Increase quirk delay for USB devices 2017-09-18 11:28:23 +02:00
hub.h
ledtrig-usbport.c usb: core: usbport: fix "BUG: key not in .data" when lockdep is enabled 2017-08-29 08:27:25 +02:00
message.c USB: core: harden cdc_parse_cdc_header 2017-09-21 17:01:38 +02:00
notify.c
of.c
otg_whitelist.h
port.c
quirks.c usb: Add device quirk for Logitech HD Pro Webcam C920-C 2017-08-28 11:43:39 +02:00
sysfs.c
urb.c
usb-acpi.c
usb.c
usb.h