Page MenuHomeFreeBSD

mman: Reserve two PROT_ for CHERI use
ClosedPublic

Authored by brooks on May 30 2025, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 9:14 AM
Unknown Object (File)
Sun, Mar 29, 10:59 AM
Unknown Object (File)
Thu, Mar 19, 12:52 PM
Unknown Object (File)
Thu, Mar 19, 6:38 AM
Unknown Object (File)
Feb 16 2026, 5:07 AM
Unknown Object (File)
Feb 8 2026, 2:37 PM
Unknown Object (File)
Feb 8 2026, 9:12 AM
Unknown Object (File)
Jan 31 2026, 5:40 AM
Subscribers

Details

Summary

In CheriBSD we use two bits to control load and store of CHERI
capabilities (pointers). In anticipation of merging CHERI support in
time for FreeBSD 16, reserved these two bits to avoid the (low, but
non-zero) risk of a flag day downstream.

I've used PROT_CHERI0 and PROT_CHERI1 rather than their downstream name
in hopes of avoiding the impression they do something today.

Suggested by: adrian, kevans
Sponsored by: DARPA, AFRL

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable