HomeFreeBSD

Try to resolve a possible deadlock when detaching USB devices which

Description

Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.

Reported by: Daniel O'Connor <doconnor@gsoft.com.au>
MFC after: 1 week

Details

Provenance
hselaskyAuthored on
Parents
rS263422: MFH (r255590): list OpenSSH in OptionalObsoleteFiles.inc
Branches
Unknown
Tags
Unknown

Event Timeline