Skip to content
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

Support for AArch64- and Linux-specific protection attributes #21

Closed
akirilov-arm opened this issue May 4, 2022 · 1 comment
Closed

Comments

@akirilov-arm
Copy link

Since version 5.10 Linux defines a couple of AArch64-specific access flags - PROT_BTI for pages guarded by the Branch Target Identification technology and PROT_MTE for pages to which the Memory Tagging Extension applies. Currently (as of commit 5087445) there is no way to use these attributes with the Protection struct even via the Protection::from_bits_unchecked() method because the implementation ignores any unknown values right before the call to mprotect(), for example.

@darfink
Copy link
Owner

darfink commented Mar 7, 2024

That's a very valid use case.

I've pushed a commit that aligns the protection constants to their UNIX counterparts (this was always the intention, but they had been accidentally unaligned) & maps Protection::to_native directly to an integer (commit: 03fd93c).

Will be part of release 3.0.1

@darfink darfink closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants