TrungNguyen1909 / qemu-t8030

iPhone 11 emulated on QEMU
Other
1.97k stars 194 forks source link

Assertion `usb_packet_is_inflight(p)' failed. #50

Closed asdfugil closed 2 years ago

asdfugil commented 2 years ago

The Linux VM crashed while telneting into iOS, with message

qemu-system-x86_64: ../hw/usb/core.c:523: void usb_cancel_packet(USBPacket *): Assertion `usb_packet_is_inflight(p)' failed

The most reliable way to produce the same error message would be trying to upload a iBSS.n71.RELEASE.im4p.dec to the s8000 securerom VM, but it can happen in T8030 VMs too (such as the telnet crash).

To reproduce Method 1: upload anything (such as a decrypted iBSS, or 1MB of random data) to S8000 securerom

irecovery -f iBSS.n71.RELEASE.im4p.dec

Method 2: Setup telnetd on the iOS side, telnet into it in the Linux VM, and do some random stuff. It will crash

Result Linux VM crashed.

No core dumps are generated. Host is debian 11 bullseye qemu-t8030 commit: ba738a11f8750fbc9e7224f5b34628d4fe282991

asdfugil commented 2 years ago

In particular I would also like to boot S8000 kernels (patched or unpatched) but it seems unsupported for the time being...

TrungNguyen1909 commented 2 years ago

Should be fixed in 2f0f0f7

@asdfugil, why would you want to boot S8000 kernels though? It would not be any better than the current state of T8030 kernels (No nvme even). I guess Aleph Security's fork is better for that purpose.