WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
290878
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-04-01 15:57:58 PDT
<
rdar://problem/148377519
>
David Degazio
Comment 2
2025-04-01 15:59:37 PDT
rdar://148277754
David Degazio
Comment 3
2025-04-01 16:28:16 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/43424
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.
Top of Page
Format For Printing
XML
Clone This Bug