Files
reims-vgpu/guest/rgfxgate/tools
Anees Iqbal 2db6812618 🐛 Admit every slice of the bundle on an arm64 guest
The arm64 Metal bundle is universal, arm64e and arm64, and a process maps the
slice of its own architecture: platform processes such as WindowServer map the
arm64e slice, and third-party apps, built arm64, map the arm64 slice. Each
slice has a code-directory hash of its own, but RgfxGate admitted only the
guest arch's (arm64e), so a hardened, library-validated third-party app would
have had our bundle refused and no Metal device.

pack-payload.py now also writes kExecCDHashes, every slice's cdhash with the
guest's first, and the arm64 hooks admit all of them. kExecCDHash stays as it
was, and the x86 hooks keep admitting it alone; the x86 bundle has one slice.

payload_test.sh packs a fat arm64e+arm64 bundle of our own for an arm64 guest
and checks that the hooks' decision (rgfx_cdhash_allowed over the payload's
allowed set) admits both slices' hashes and no other; it fails on the payload
pack-payload.py wrote before this change.
2026-11-08 21:03:01 -08:00
..