kernel_optimize_test/drivers/usb/serial
Johan Hovold 2d5a9c72d0 USB: serial: ch341: fix control-message error handling
A short control transfer would currently fail to be detected, something
which could lead to stale buffer data being used as valid input.

Check for short transfers, and make sure to log any transfer errors.

Note that this also avoids leaking heap data to user space (TIOCMGET)
and the remote device (break control).

Fixes: 6ce7610478 ("USB: Driver for CH341 USB-serial adaptor")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
2017-01-11 12:08:57 +01:00
..
aircable.c
ark3116.c
belkin_sa.c
belkin_sa.h
bus.c
ch341.c
console.c
cp210x.c
cyberjack.c
cypress_m8.c
cypress_m8.h
digi_acceleport.c
empeg.c
ezusb_convert.pl
f81232.c
f81534.c
ftdi_sio_ids.h
ftdi_sio.c
ftdi_sio.h
garmin_gps.c
generic.c
io_16654.h
io_edgeport.c
io_edgeport.h
io_ionsp.h
io_tables.h
io_ti.c
io_ti.h
io_usbvend.h
ipaq.c
ipw.c
ir-usb.c
iuu_phoenix.c
iuu_phoenix.h
Kconfig
keyspan_pda.c
keyspan_usa26msg.h
keyspan_usa28msg.h
keyspan_usa49msg.h
keyspan_usa67msg.h
keyspan_usa90msg.h
keyspan.c
keyspan.h
kl5kusb105.c
kl5kusb105.h
kobil_sct.c
kobil_sct.h
Makefile
Makefile-keyspan_pda_fw
mct_u232.c
mct_u232.h
metro-usb.c
mos7720.c
mos7840.c
mxuport.c
navman.c
omninet.c
opticon.c
option.c
oti6858.c
oti6858.h
pl2303.c
pl2303.h
qcaux.c
qcserial.c
quatech2.c
safe_serial.c
sierra.c
spcp8x5.c
ssu100.c
symbolserial.c
ti_usb_3410_5052.c
usb_debug.c
usb_wwan.c
usb-serial-simple.c
usb-serial.c
usb-wwan.h
visor.c
visor.h
whiteheat.c
whiteheat.h
wishbone-serial.c
xsens_mt.c