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

linux glibc/musl and android adding PROT_BTI/PROT_MTE mmap flags for … #3313

Merged
merged 1 commit into from Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/semver/android-aarch64.txt
Expand Up @@ -7,6 +7,8 @@ HWCAP2_SVEBITPERM
HWCAP2_SVEPMULL
HWCAP2_SVESHA3
HWCAP2_SVESM4
PROT_BTI
PROT_MTE
SYS_arch_specific_syscall
SYS_syscalls
SYS_fcntl
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/android/b64/aarch64/mod.rs
Expand Up @@ -412,6 +412,9 @@ pub const SYS_fsmount: ::c_long = 432;
pub const SYS_fspick: ::c_long = 433;
pub const SYS_syscalls: ::c_long = 436;

pub const PROT_BTI: ::c_int = 0x10;
pub const PROT_MTE: ::c_int = 0x20;

cfg_if! {
if #[cfg(libc_align)] {
mod align;
Expand Down
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Expand Up @@ -902,6 +902,9 @@ pub const SYS_process_mrelease: ::c_long = 448;
pub const SYS_futex_waitv: ::c_long = 449;
pub const SYS_set_mempolicy_home_node: ::c_long = 450;

pub const PROT_BTI: ::c_int = 0x10;
pub const PROT_MTE: ::c_int = 0x20;

extern "C" {
pub fn sysctl(
name: *mut ::c_int,
Expand Down