android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mans Rullgard 5102000134 usb: musb: fix crash with highmen PIO and usbmon
commit 52974d94a206ce428d9d9b6eaa208238024be82a upstream.

When handling a PIO bulk transfer with highmem buffer, a temporary
mapping is assigned to urb->transfer_buffer.  After the transfer is
complete, an invalid address is left behind in this pointer.  This is
not ordinarily a problem since nothing touches that buffer before the
urb is released.  However, when usbmon is active, usbmon_urb_complete()
calls (indirectly) mon_bin_get_data() which does access the transfer
buffer if it is set.  To prevent an invalid memory access here, reset
urb->transfer_buffer to NULL when finished (musb_host_rx()), or do not
set it at all (musb_host_tx()).

Fixes: 8e8a551654 ("usb: musb: host: Handle highmem in PIO mode")
Signed-off-by: Mans Rullgard <mans@mansr.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200316211136.2274-8-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-01 11:02:15 +02:00
..
atm USB: atm: ueagle-atm: add missing endpoint check 2019-12-17 19:55:44 +01:00
c67x00
cdns3 usb: cdns3: gadget: toggle cycle bit before reset endpoint 2020-03-12 13:00:18 +01:00
chipidea usb: chipidea: host: Disable port power only if previously enabled 2020-01-14 20:08:19 +01:00
class USB: cdc-acm: restore capability check order 2020-04-01 11:02:14 +02:00
common usb: common: usb-conn-gpio: Don't log an error on probe deferral 2019-12-17 19:55:39 +01:00
core usb: quirks: add NO_LPM quirk for RTL8153 based ethernet adapters 2020-03-25 08:25:50 +01:00
dwc2 usb: dwc2: Fix in ISOC request length checking 2020-02-28 17:22:26 +01:00
dwc3 usb: dwc3: gadget: Update chain bit correctly when using sg list 2020-03-12 13:00:18 +01:00
early
gadget usb: gadget: serial: fix Tx stall after buffer overflow 2020-03-12 13:00:10 +01:00
host xhci: Do not open code __print_symbolic() in xhci trace events 2020-03-25 08:25:56 +01:00
image USB: microtek: fix info-leak at probe 2019-10-04 11:02:58 +02:00
isp1760
misc USB: misc: iowarrior: add support for the 100 device 2020-02-28 17:22:14 +01:00
mon usb: mon: Fix a deadlock in usbmon between mmap and read 2019-12-17 19:55:49 +01:00
mtu3 usb: mtu3: fix missing include of mtu3_dr.h 2019-10-27 08:58:44 +02:00
musb usb: musb: fix crash with highmen PIO and usbmon 2020-04-01 11:02:15 +02:00
phy
renesas_usbhs usb: renesas_usbhs: add suspend event support in gadget mode 2019-12-31 16:43:37 +01:00
roles usb: roles: fix a potential use after free 2019-12-17 19:55:46 +01:00
serial USB: serial: io_edgeport: fix slab-out-of-bounds read in edge_interrupt_callback 2020-04-01 11:02:15 +02:00
storage usb: storage: Add quirk for Samsung Fit flash 2020-03-12 13:00:18 +01:00
typec usb: typec: ucsi: displayport: Fix a potential race during registration 2020-03-25 08:25:51 +01:00
usbip usbip: Fix error path of vhci_recv_ret_submit() 2019-12-31 16:46:05 +01:00
Kconfig
Makefile
usb-skeleton.c USB: usb-skeleton: drop redundant in-urb check 2019-10-10 12:41:19 +02:00