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

CBuildCap: Raise an exception if reserved bits are set #39

Conversation

arichardson
Copy link
Member

This raises a LengthViolation for now, but we may want to allocate a new
exception code for reserved bits.

This raises a LengthViolation for now, but we may want to allocate a new
exception code for reserved bits.
@PeterRugg
Copy link
Contributor

This is already solved by #36, which also solves the issue for other non-canonical capabilities

@arichardson
Copy link
Member Author

Indeed, deriving from cs1 instead of setting the tag bit (which is what QEMU does) fixes that problem. Should probably change qemu to re-derive as well, that way we also get the canonicalization.

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