Page MenuHomeFreeBSD

libusb: consider bad fd as a broken event
ClosedPublic

Authored by aokblast on Jun 20 2025, 9:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 21, 2:01 AM
Unknown Object (File)
Sep 24 2025, 1:46 AM
Unknown Object (File)
Sep 17 2025, 6:47 AM
Unknown Object (File)
Sep 16 2025, 6:33 AM
Unknown Object (File)
Sep 6 2025, 3:18 PM
Unknown Object (File)
Sep 5 2025, 9:30 AM
Unknown Object (File)
Aug 29 2025, 5:11 AM
Unknown Object (File)
Aug 14 2025, 4:10 AM
Subscribers

Details

Summary

Application can use libusb_get_pollfds to get pollfds from libusb then
close the fd themselves. This cause the hotplug thread unable to leave
because it will be consider as a invalid event then loop forever instead
of a broken event that should be quit immediately.

This is discovered when I was debugging usbmuxd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable