Installer overlay boot always fails on Linux: checkra1n beta 0.12.4 checkm8 times out (launcher's 0.1337.3 works on same device); misreported as 'usbmuxd is not running'
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start at the installer code that implements BootIpadosWithOverlay and trace how it selects and launches checkra1n, handles the child process, and reports boot failures. Compare the installer’s checkra1n version and arguments with the launcher’s working invocation. The issue is resolved when overlay boot uses a checkra1n version that succeeds on the reported device and surfaces exploit failure directly; also inspect child-process cleanup on installer exit.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
On Linux, the installer's iPadOS overlay boot (BootIpadosWithOverlay) fails every time. The checkra1n it runs (beta 0.12.4) gets EACCES when it reopens the device right after the checkm8 trigger makes the device re-enumerate. It then times out, and the iPad stays in DFU mode with a blank screen. About 7 minutes later the installer reports a misleading error:
failed: ChainFailed("usbmuxd is not running (Connection refused (os error 111))\non Linux, install and start the usbmuxd package")
usbmuxd is installed and works. It's only "not running" because iPadOS never booted, so nothing triggered it.
The launcher, on the same machine, cable and device, runs checkra1n 0.1337.3, and its exploit succeeds every time. It hits the same EACCES once and recovers on its own.
Environment
- orchard 0.3.14 (748a58386594), linux x86_64. Board data v0.3.20.
- Arch Linux (Omarchy), kernel 7.2.15
- Device: iPad mini 2 (Wi-Fi), j85 / CPID 8960, iPadOS 12.5.7
- usbmuxd and libusbmuxd installed.
70-orchard-installer.rulesis installed, and the DFU node gets the correct ACL (root:<user> 0660,user:<user>:rw-,TAGS=:uaccess:seat:). - Tried both through a USB hub and directly on a root-hub port (
9-3, 480 Mb/s), with the same result.
Results from every checkra1n run in one session
| Run | checkra1n | Who ran it | EACCES | Outcome |
|---|---|---|---|---|
| 1 | beta 0.12.4 | installer | 1 | failed |
| 2 | beta 0.12.4 | installer | 0 | failed |
| 3 | 0.1337.3 | launcher | 1 | Checkmate! → PongoOS |
| 4 | 0.1337.3 | launcher | 0 | Checkmate! → PongoOS |
| 5 | beta 0.12.4 | installer | 1 | failed (timed out in state 1) |
| 6 | beta 0.12.4 | installer | 2 | failed (sanity check transfer failed, then the device fell off the bus) |
| 7 | beta 0.12.4 | installer, direct port | 1 | failed (timed out in state 1) |
Cached tools: checkra1n-dac9968939ea6e6b (10 MB, beta 0.12.4, used by the installer as --cli --verbose-logging) and checkra1n-53154d87594cf67c (554 KB, 0.1337.3, used by the launcher as -E -p -v -n -k <pongo sha>).
There's also a second problem: when the installer quits (or segfaults on quit, see #413), its checkra1n --cli child isn't killed. It gets reparented to systemd --user and keeps polling for DFU devices. The next installer run then has two checkra1n processes racing for the same device. One leftover from a quit at 14:20 was still running 20 minutes later.
The failure, with timestamps (run 7, direct port)
checkra1n 0.12.4 log:
14:23:48 <Info>: Exploiting
14:23:49 <Info>: Setting up the exploit (this is the heap spray)
14:24:05 <Info>: Right before trigger (this is the real bug setup)
14:24:05 <Error>: Couldn't open USB interface due to EACCES. Run as root maybe? (error code: -75)
14:24:30 <Error>: Timed out in state 1, assuming we are back to square one with this device. (error code: -31)
Kernel, in the same second as the EACCES:
14:24:05 kernel: apple-mfi-fastcharge 9-3: USB disconnect, device number 85
14:24:05 kernel: usb 9-3: new high-speed USB device number 86 using xhci_hcd
14:24:05 kernel: usb 9-3: New USB device found, idVendor=05ac, idProduct=1227
14:24:05 kernel: usb 9-3: Product: Apple Mobile Device (DFU Mode)
Installer log for the same attempt:
[087.8] effect: BootIpadosWithOverlay(...)
[507.9] failed: ChainFailed("usbmuxd is not running (Connection refused (os error 111)) ...")
[507.9] state: WaitingForIpados -> DfuAgain
Likely cause (first theory; see the update below)
After the trigger, the device re-enumerates as a new USB device. devtmpfs creates the new /dev/bus/usb/... node as root-owned 0664, and udev applies the uaccess ACL from 70-orchard-installer.rules a few milliseconds later. checkra1n 0.12.4 reopens the device inside that gap, gets EACCES, and doesn't retry. checkra1n 0.1337.3 (the launcher's) hits the same window but retries via its LostDevice()/FoundDevice() loop and succeeds:
[117.2] [checkra1n 0.1337.3] Couldn't open USB interface due to EACCES. Run as root maybe?
[117.2] [checkra1n 0.1337.3] DFU mode device disconnected
[117.2] [checkra1n 0.1337.3] DFU mode device found
[118.7] [checkra1n 0.1337.3] Checkmate!
Update: running as root removes the EACCES, but the exploit still fails
To rule out the permission race, I ran the installer as root (sudo -E), with no other checkra1n process running. The EACCES went away, but checkra1n beta 0.12.4 still failed the same way:
14:43:01 <Info>: Setting up the exploit (this is the heap spray)
14:43:17 <Info>: Right before trigger (this is the real bug setup)
14:43:42 <Error>: Timed out in state 1, assuming we are back to square one with this device. (error code: -31)
The kernel shows the device re-enumerating at 14:43:17 and coming back as a plain Apple Mobile Device (DFU Mode), so the checkm8 trigger didn't take. That makes the EACCES a secondary symptom. The real failure is that checkra1n beta 0.12.4's checkm8 doesn't work for this device (CPID 8960) on this host, while 0.1337.3 (the launcher's) succeeds on the same device, cable and port. The kernel's apple-mfi-fastcharge driver is bound to the DFU device throughout (usbfs: process ... (checkra1n-dac99) did not claim interface 0 before use). It's bound during the launcher's successful runs too, so I don't think it's the cause, but I'm noting it.
Suggested fixes
- Have the installer's overlay boot use checkra1n 0.1337.3 (the launcher's binary) instead of beta 0.12.4. The launcher's 0.1337.3 succeeds on this device, and 0.12.4 has failed in every attempt, including as root.
- Detect a checkra1n failure (non-zero exit, or
Timed out/Unable to perform checkm8in its log) and report it directly. Right now the installer waits about 7 minutes and then reports a usbmuxd error, which sends users looking in the wrong place.
Possibly related: #413 (separate crash on quit).
- Lingua principale
- Python
- Stelle
- 102
- Fork
- 27
- Merge medio
- 10h 43m
- PR unite (30g)
- 293
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OrchardLinux/orchard
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OrchardLinux/orchard#398 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
OrchardLinux/orchard#365 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OrchardLinux/orchard#420 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
OrchardLinux/orchard#414 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
OrchardLinux/orchard#413 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OrchardLinux/orchard
Issue simili
-
Status: Triage Suggestion
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
I maintainer di solito rispondono entro 1 giorno
-
changelog investigate
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
ramnes/notion-sdk-py#522 ·
-
top `--file` with a non-UTF-8 CSV gives a raw codec error and "Check the arguments."Forse già presa @Beehtrix l’ha presa oggi. Apertagood first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
laaielichter/Gulliver#263 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
LearningCircuit/local-deep-research#10161 ·
I maintainer di solito rispondono entro 1 giorno