TL; DR. Simply update usbip to the version corresponding with the current kernel will fix this problem! Description of problem: Usbip cannot attach remote device on Fedora 27. Version-Release number of selected component (if applicable): Fedora 27 usbip-4.9.9-6.fc27.x86_64 kernel 4.14.11-300.fc27.x86_64 How reproducible: Always Steps to Reproduce: 1. Follow the guide to setup the server side and share a USB device. In my case I shared a RTL8188CUS WiFi adapter. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/usb/usbip/README 2. sudo modprobe hci_vhci 3. sudo modprobe vhci-hcd 4. sudo usbip list --remote 10.30.1.2 Exportable USB devices ====================== - 10.30.1.2 1-6: Realtek Semiconductor Corp. : RTL8188CUS 802.11n WLAN Adapter (0bda:8176) : /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6 : (Defined at Interface level) (00/00/00) : 0 - Vendor Specific Class / Vendor Specific Subclass / Vendor Specific Protocol (ff/ff/ff) 5. sudo usbip attach --remote 10.30.1.2 --busid 1-6 libusbip: error: udev_device_new_from_subsystem_sysname failed usbip: error: open vhci_driver usbip: error: query Actual results: Fail to attach, as shown in step 5 Expected results: Should be attached. Additional info: I extracted the source code from my local upstream kernel tree (should be something around v4.14-rc2), did a local build using the SPEC in distgit (with slightly modify), install and run this local build on the *client* side, the device then can be attached. So I believe simply update usbip to the version corresponding to the kernel version can fix this problem. The only change I made to the spec file is, remove the two patch.
Created attachment 1380409 [details] My patch to the spec
Thanks, I've applied your patch and updated to 4.14.11. You should see the update show up in updates-testing within the next day or two.
usbip-4.14.11-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-bff68f131b
usbip-4.14.11-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-bff68f131b
usbip-4.14.11-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.