-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[libpas] Implement primary support for MTE #51633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libpas] Implement primary support for MTE #51633
Conversation
12c8dce to
f7641af
Compare
|
EWS run on previous version of this PR (hash f7641af) |
|
EWS run on previous version of this PR (hash 12c8dce) |
danlliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
f7641af to
ec076f6
Compare
|
EWS run on current version of this PR (hash ec076f6) |
ec076f6 to
8a2028a
Compare
https://bugs.webkit.org/show_bug.cgi?id=299488 rdar://161273712 Reviewed by Daniel Liu. As announced on September 9th, the SoCs used in the next generation of iPhones will include support for ARM'S Memory Tagging Extension functionality. As part of Apple's MIE (Memory Integrity Enforcement) feature, libpas should thus implement support for MTE and related memory-safety functionality to ensure that WebKit is up to par with the new memory safety standards set by the rest of the system. In particular, this patch ensures that when possible we allocate memory with backing MTE tag pages and tag allocations made within them prior to returning allocation memory to the caller. Not all memory can be tagged this way: in particular, objects >= 32K and objects which may be referenced via compact pointers cannot be MTE tagged. There are other exceptions as well, depending on process/object-type/platform. It also implements a variety of hardening strategies to further strengthen the feature and prevent certain well-known kinds of attacks. Trying this again, since the previous attempt caused build breakages in certain configurations. Canonical link: https://commits.webkit.org/300960@main
8a2028a to
f3dd285
Compare
|
Committed 300960@main (f3dd285): https://commits.webkit.org/300960@main Reviewed commits have been landed. Closing PR #51633 and removing active labels. |
f3dd285
ec076f6