Fix v8 crashes on Apple mobile platforms (iOS/WatchOS/tvOS)#1066
Fix v8 crashes on Apple mobile platforms (iOS/WatchOS/tvOS)#1066hexploitable wants to merge 2 commits intofrida:mainfrom
Conversation
|
Thanks, great catch! I'm afraid this papers over the underlying issue though. V8 supports W^X systems too these days, so something is wrong with our V8 integration (GumV8Platform), how we configure V8, or perhaps some codepath in V8 that's macOS-only when it should be made more broad. I'll leave this open for now, as someday I'd like to take a stab at fixing the underlying issue -- and if it proves too involved we can merge this as a stop-gap. I'm hoping we can go straight to fixing it though as running V8 without a JIT eliminates its main strength compared to QuickJS. |
Fair! I was traveling these last 3 weeks but will try to find time to go a little further down the rabbit hole soon. |
Since Frida 16.0 introduced snapshots, the v8 backend has been crashing on both jailed and jailbroken devices due to snapshots trying to use RWX memory. E.g.:
Crash:
For gadget, a workaround would be to set the code signing policy to
required.This change forces
--jitlessfor said platforms and resolves the issue.