RESOLVED FIXED290878
Use mach_vm_map and copy instead of mach_vm_remap in setPermissionsOfConfigPage
https://bugs.webkit.org/show_bug.cgi?id=290878
Summary Use mach_vm_map and copy instead of mach_vm_remap in setPermissionsOfConfigPage
David Degazio
Reported 2025-04-01 15:57:43 PDT
In https://bugs.webkit.org/show_bug.cgi?id=290066 we switched away from mach_vm_map to using mach_vm_remap when setting up permissions of the g_config pages in order to avoid wiping out any pre-WTF config data. It turns out mach_vm_remap has limited support on Apple platforms other than macOS, so it's safer to continue using mach_vm_map and, since the pre-WTF portion of the config is a fairly small and bounded amount of memory, copy the memory to a side buffer then copy it back in once we've set up the correct permissions.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-01 15:57:58 PDT
David Degazio
Comment 2 2025-04-01 15:59:37 PDT
David Degazio
Comment 3 2025-04-01 16:28:16 PDT
EWS
Comment 4 2025-04-02 15:46:38 PDT
Committed 293128@main (4e67c38f20d9): <https://commits.webkit.org/293128@main> Reviewed commits have been landed. Closing PR #43424 and removing active labels.
EWS
Comment 5 2025-04-07 12:25:39 PDT
Committed 289651.403@safari-7621-branch (4205ada8dd5d): <https://commits.webkit.org/289651.403@safari-7621-branch> Reviewed commits have been landed. Closing PR #2968 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.