diff options
author | Johan Hovold <[email protected]> | 2019-12-19 17:10:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-12-30 19:54:55 +0100 |
commit | 3e4f8e21c4f27bcf30a48486b9dcc269512b79ff (patch) | |
tree | b76941c5ecbea957d5f6ac61a6945d199457d08c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 46cf053efec6a3a5f343fead837777efe8252a46 (diff) |
USB: core: fix check for duplicate endpoints
Amend the endpoint-descriptor sanity checks to detect all duplicate
endpoint addresses in a configuration.
Commit 0a8fd1346254 ("USB: fix problems with duplicate endpoint
addresses") added a check for duplicate endpoint addresses within a
single alternate setting, but did not look for duplicate addresses in
other interfaces.
The current check would also not detect all duplicate addresses when one
endpoint is as a (bi-directional) control endpoint.
This specifically avoids overwriting the endpoint entries in struct
usb_device when enabling a duplicate endpoint, something which could
potentially lead to crashes or leaks, for example, when endpoints are
later disabled.
Cc: stable <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Acked-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions