Previous discussion of this patch focussed on the theoretical race condition it introduces, with everyone agreeing the basic concept of not allowing detach-kernel-driver to detach the usbfs driver.
A fix for the race condition is in the works in the form of a new ioctl, which: 1) Checks if the driver which will be detach matches or does not match the specified driver (optional, can be used to exclude usbfs from detaching) 2) Detaches the driver 3) Claims the interface All in one, race free kernel call. Still we also need to add the usbfs check to the existing detach-kernel-driver path because: 1) The new ioctl requires a new libusb function to match, and older apps will still be using the old way, and not checking in the old way is causing real world problems now, where as the race is mostly theoretical. 2) The new libusb function for detach_and_claim will fallback to doing a separate detach, then claim on older kernels, and we want to do the right thing there too. So I would like to move forward with getting this patch merged. Please review and merge it, or review and ack it and I'll push it myself. Thanks & Regards, Hans ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel