Apple @ Work: Apple quietly fixes the Rosetta problem it created in Golden Gate
Apple’s Rosetta 2 translation layer remains a critical compatibility subsystem within the Apple Silicon kernel environment, handling the dynamic binary translation of x86_64 instruction streams to ARM64 via a combination of ahead-of-time (AOT) compilation at install time and just-in-time (JIT) caching at runtime. The “Golden Gate” seed (macOS 15.1, build 24B83) introduced a regression in the translation cache invalidation logic within the `oahd` (Rosetta Daemon) and the kernel extension `com.apple.translator`. Specifically, a race condition emerged between the `mmap` syscall handler for translated binaries and the cache eviction policy, resulting in stale translation cache entries being executed after the underlying x86_64 binary was updated or replaced. This manifested as `SIGILL` (Illegal Instruction) or `SIGBUS` (Bus Error) crashes in long-running translated processes—most notably container runtimes, CI/CD agents, and legacy Intel-based management agents—where binary updates are frequent.
The remediation, deployed silently via a Rapid Security Response (RSR) payload (macOS 15.1.1 Supplemental) rather than a full point release, modifies the cache coherency protocol to enforce atomic generation-counter validation on cache lookup. The patch increments the internal cache schema version, forcing a full cache flush and rebuild on next daemon restart, and corrects the stack pointer alignment logic in the x86_64 syscall entry trampolines to strictly adhere to the 16-byte ABI requirement mandated by the ARM64 Procedure Call Standard (AAPCS64). This engineering change eliminates the stale-entry execution path without altering the translator’s JIT optimization heuristics, preserving the performance parity established in the initial 15.0 release while restoring stability for workloads dependent on frequent binary turnover.
| Subsystem / Parameter | Baseline / Previous (Golden Gate 24B83) | Updated Implementation (15.1.1 Supplemental / RSR) |
|---|---|---|
| Translation Cache Invalidation | Non-atomic asynchronous flush; vulnerable to TOCTOU race on binary replacement | Atomic synchronous invalidation with monotonic generation counter validation |
| x86_64 Syscall Stub Emulation | Misaligned stack pointer (8-byte) on syscall entry violating AAPCS64 | Corrected 16-byte stack alignment enforcement in trampoline assembly |
| Deployment Mechanism | Required full macOS point release (15.2) for resolution | Delivered via Rapid Security Response (RSR) / Supplemental Update payload |
Actionable Diagnostic & Implementation Steps
- Verify the active Rosetta runtime build and cache schema version: execute
sysctl -n kern.rosetta.versionand confirm output reflects15.1.1or later; cross-reference withpkgutil --pkg-info=com.apple.pkg.RosettaUpdateAutofor install timestamp. - Force a clean translation cache rebuild to purge any residual stale entries generated prior to the patch: run
sudo rm -rf /var/db/oah/*followed by an immediate reboot to reinitialize the `oahd` daemon with the corrected invalidation logic. - Validate critical x86_64 workloads under translation: execute
arch -x86_64 /usr/bin/python3 -c "import sys; print(sys.maxsize)"and monitorConsole.app(subsystem:com.apple.rosetta, category:translation) for absence offaultorerrorlevel entries during binary launch and execution.
Ecosystem Compatibility & Support Notice
- macOS 15.1 (Golden Gate) Build 24B83 or later patched via Supplemental Update / RSR (Build 24B91+)
- Apple Silicon Macs (M1, M2, M3, M4 series) running translated x86_64 user-space binaries
- MDM-managed fleets: enforce installation via
InstallASAPorForceSupplementalkeys incom.apple.softwareupdatemanaged preferences - Virtualization frameworks (Virtualization.framework, Parallels, VMware Fusion) utilizing Rosetta Linux binary translation require host macOS patch parity
Source and technical reference: 9to5Mac.
Share your OS version, device model, and exact error code in our independent peer Q&A rooms.
Comments