Bug 280974
| Summary: | [JSC] Extend FastJITPermissions scaffolding to other permissions-toggling applications | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Marcus Plutowski <marcus_plutowski> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | Keywords: | InRadar |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Marcus Plutowski
rdar://137426755
FastJITPermissions exposes a convenient interface for atomically write-protecting executable memory: it makes it possible to flip the permissions of JIT memory between RW and RX without any gap inbetween. Currently that is the only use for this interface, but it is easy to think of others: for example, toggling memory between RW and RO permissions. While it may use different mechanisms under the hood, unifying the abstractions would be helpful for codebase cleanliness and ease of understanding. We should investigate whether there are already opportunities present elsewhere in the code-base that could be unified with this one.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Marcus Plutowski
Pull request: https://github.com/WebKit/WebKit/pull/34772
EWS
Committed 285429@main (e6d10f897ce8): <https://commits.webkit.org/285429@main>
Reviewed commits have been landed. Closing PR #34772 and removing active labels.