Skip to content

Comments

mmap: limit PROT_CAP and PROT_NO_CAP to CHERI ABIs#2567

Merged
brooksdavis merged 1 commit intodevfrom
no-prot-cap-for-non-cheri
Feb 20, 2026
Merged

mmap: limit PROT_CAP and PROT_NO_CAP to CHERI ABIs#2567
brooksdavis merged 1 commit intodevfrom
no-prot-cap-for-non-cheri

Conversation

@brooksdavis
Copy link
Member

Declaring them and using them in _PROT_ALL mean mmap would fail in rtld and risked in correct autoconf style checks for PROT_CAP on systems that otherwise don't support it.

This will conflict with @qwattash's proposed change to make vm_prot2vmprot MD, but it's easy to resolve.

@qwattash
Copy link
Contributor

I think this should be fine, I'm trying to rework vm_map_prot2perm, the prot2vmprot is unchanged.

@brooksdavis brooksdavis force-pushed the no-prot-cap-for-non-cheri branch from 61a517c to c042509 Compare February 19, 2026 20:40
Declaring them and using them in _PROT_ALL means mmap would fail in rtld
and risked in correct autoconf style checks for PROT_CAP on systems that
otherwise don't support it.
@brooksdavis brooksdavis force-pushed the no-prot-cap-for-non-cheri branch from c042509 to da88d16 Compare February 19, 2026 20:43
@brooksdavis brooksdavis merged commit d26828d into dev Feb 20, 2026
30 checks passed
@brooksdavis brooksdavis deleted the no-prot-cap-for-non-cheri branch February 20, 2026 15:51
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

Successfully merging this pull request may close these issues.

4 participants