mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
2374bf7558
Ensure, as the driver probes the device, that all endpoints that the
driver may attempt to access exist and are of the correct type.
All XillyUSB devices must have a Bulk IN and Bulk OUT endpoint at
address 1. This is verified in xillyusb_setup_base_eps().
On top of that, a XillyUSB device may have additional Bulk OUT
endpoints. The information about these endpoints' addresses is deduced
from a data structure (the IDT) that the driver fetches from the device
while probing it. These endpoints are checked in setup_channels().
A XillyUSB device never has more than one IN endpoint, as all data
towards the host is multiplexed in this single Bulk IN endpoint. This is
why setup_channels() only checks OUT endpoints.
Reported-by: syzbot+eac39cba052f2e750dbe@syzkaller.appspotmail.com
Cc: stable <stable@kernel.org>
Closes: https://lore.kernel.org/all/0000000000001d44a6061f7a54ee@google.com/T/
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
xillybus_class.c | ||
xillybus_class.h | ||
xillybus_core.c | ||
xillybus_of.c | ||
xillybus_pcie.c | ||
xillybus.h | ||
xillyusb.c |