Page MenuHomeFreeBSD

CHERI: declare copy{in,out}ptr and copyoutptr_nofault
Needs ReviewPublic

Authored by brooks on Fri, Jun 19, 2:12 PM.
Tags
None
Referenced Files
F160344260: D57663.id180058.diff
Tue, Jun 23, 12:31 PM
Unknown Object (File)
Tue, Jun 23, 1:19 AM
Unknown Object (File)
Mon, Jun 22, 10:48 PM
Unknown Object (File)
Sun, Jun 21, 8:10 PM
Unknown Object (File)
Sat, Jun 20, 10:56 PM
Unknown Object (File)
Sat, Jun 20, 3:30 AM
Subscribers

Details

Reviewers
kib
markj
jhb
jrtc27
Group Reviewers
cheri
Summary

These provenance-preserving functions are to be used when copying
objects that are expected to contain pointers. Data buffers which do
not contain pointers should be copied by the traditional copyin/copyout
functions which *do not* preserve pointer provenance (on CHERI they
clear validity tags).

NOTE: Going forward, this requires changes when adding new syscalls or ioctl that take pointers to objects containing pointers. Fortunatly, the vast majority (>90%) of copyin and copyout statements do not copy pointers and require no change. Failure to make the chance will have no effect on non-CHERI architectures.

Effort: CHERI upstreaming
Sponsored by: DARPA, AFRL, Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73998
Build 70881: arc lint + arc unit