Jailed Just-in-Time Compilation on iOS
> While this approach works, continuously changing page permissions is often quite slow. A better solution for performance is to (ab)use memory mappings to map the same physical page twice, with two virtual addresses, one of which is accessible with write permissions and one which enables execute permissions.<p>Just finished implementing this for UTM :) <a href="https://github.com/utmapp/qemu/commits/ios-support" rel="nofollow">https://github.com/utmapp/qemu/commits/ios-support</a><p>To Apple engineers reading this: please don’t patch this technique (unless you’re going to replace it with real JIT APIs). It’s not a security issue because get-task-allow entitlement is never granted in distribution certificates. And it’s allowing us devs to not have to jailbreak our phones and lose out on the security and privacy of the system.