Page MenuHomeFreeBSD

CHERI: add sooptcopyinptr to preserve pointer provenance
ClosedPublic

Authored by brooks on Fri, Jun 19, 2:13 PM.
Tags
None
Referenced Files
F162638422: D57665.diff
Wed, Jul 15, 7:26 AM
F162638421: D57665.diff
Wed, Jul 15, 7:26 AM
Unknown Object (File)
Mon, Jul 6, 4:24 PM
Unknown Object (File)
Sun, Jul 5, 5:12 AM
Unknown Object (File)
Sat, Jul 4, 9:44 AM
Unknown Object (File)
Sat, Jul 4, 6:01 AM
Unknown Object (File)
Fri, Jul 3, 3:36 AM
Unknown Object (File)
Thu, Jul 2, 8:32 PM

Details

Summary

Most socket options don't involve pointers so make the default
sooptcopyin discard provenance and add a sooptcopyinptr that preserves.

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

Diff Detail

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

Event Timeline

Link manpages to the description of pointer provenance in arch(7)

This revision is now accepted and ready to land.Wed, Jun 24, 1:41 PM
emaste added inline comments.
share/man/man9/socket.9
589

Should we strengthen this somewhat, e.g. "no consumers exist or are anticipated"? Is it "we didn't do this because nobody needs it now" or "we don't think this really makes sense". Given that we generally pass in buffers for the kernel to populate the latter is probably the case?

Be clear that sooptcopyoutptr is missing because it makes no sense

This revision now requires review to proceed.Thu, Jun 25, 10:48 AM
This revision is now accepted and ready to land.Thu, Jun 25, 2:35 PM
markj added inline comments.
share/man/man9/socket.9
590

It's not inconceivable that we'd need this, but ok.