utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.63k stars 1.33k forks source link

A passed-through RNDIS USB gadget device crashes the VM on disconnect #3809

Open konradybcio opened 2 years ago

konradybcio commented 2 years ago

Describe the issue

When a usb RNDIS USB gadget device is connected via telnet, unplugging it causes the VM to crash.

Steps to reproduce:

* Get a RNDIS USB gadget device (for example a postmarketOS-flashed phone from deep inside your drawer)
* Pass it through to the VM
* Connect to the thing via telnet
* Reboot the device / unplug it
* The entire VM crashes almost every time!

Configuration

* UTM Version: 2.1.2 (31)
* OS Version: 12.3 (21E230)
* Intel or Apple Silicon? M1 Air

Crash log QEMULauncher-2022-03-23-224229.ips.zip

Debug log debug.log

Upload VM Debian ARM (i3)

aleksandrgilfanov commented 2 years ago

I got same problem (macbook pro m1). It is reproducible 9/10 times, when some traffic is going (e.g. ICMP requests and responses).

I can also add that this happens not only with RNDIS device. Seems that any USB-ethernet device can cause crash (mine is ASIX AX88x72A) when using passthrough.