cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.94k stars 349 forks source link

BSOD while detaching a busy device #230

Closed cezanne closed 3 years ago

cezanne commented 3 years ago

@spog reported a new BSOD in https://github.com/cezanne/usbip-win/pull/222#discussion_r589054288https://github.com/cezanne/usbip-win/pull/222#discussion_r589054288. The root cause of this problem is that detach(or plugout) cannot safely prevent USB device I/O. There was a race condition between I/O and plugout. I hope that newly uploaded 493b4b401dd62a1035359636d5afee6b7bafae64 in dev branch would resolve this issue.

Please test and report. Here is usbip-win-dev.zip.

spog commented 3 years ago

@cezanne: I've recompiled your 'dev' branch and i can confirm that detach right after previous attach does not cause BSOD anymore.

cezanne commented 3 years ago

@spog : Thanks for your confirmation.