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

NFC cleanups #547

Merged
merged 4 commits into from
Jul 7, 2022
Merged

NFC cleanups #547

merged 4 commits into from
Jul 7, 2022

Conversation

nwf-msr
Copy link
Contributor

@nwf-msr nwf-msr commented Jul 7, 2022

No urgency, but I did these while performing other refactorings that are stalled for a bit, and there's no reason not to make a PR out of them. Hopefully an easy review.

  • Rename several concepts away from ConceptFoo to IsFoo.
  • Explain slightly better why we don't use capptr_from_client and capptr_reveal in external_pointer and drop the unused capptr_reveal_wild.

@nwf-msr nwf-msr requested a review from mjp41 July 7, 2022 12:04
nwf-msr added 3 commits July 7, 2022 13:08
Make it easier to justify our avoidance of capptr_from_client and
capptr_reveal in external_pointer by performing address_cast earlier.
In particular, with this change, we can see that the pointer (and so its
authority, in CHERI) is not passed to any called function other than
address_cast and pointer_offset, and so authority is merely propagated
and neither exercised nor amplified.

Remove the long-disused capptr_reveal_wild, which was added for earlier
versions of external_pointer.
Copy link
Member

@mjp41 mjp41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nwf-msr nwf-msr merged commit 09bc0c6 into microsoft:main Jul 7, 2022
@nwf-msr nwf-msr deleted the 20220707-nfc branch July 7, 2022 15:57
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.

2 participants