Skip to content

Don't panic on bad nonce_size#2584

Open
evan-oxide wants to merge 1 commit into
masterfrom
evan/nonce-size-panic
Open

Don't panic on bad nonce_size#2584
evan-oxide wants to merge 1 commit into
masterfrom
evan/nonce-size-panic

Conversation

@evan-oxide

Copy link
Copy Markdown
Contributor

Before, the SP could cause the RoT to panic by sending it an attest request with a nonce_size larger than the actual blob of nonce data. Now the RoT replies with a BadMessageLength error instead.

This is slightly different than the other uses of BadMessageLength, but I don't think it's worth making a new error variant just for this case and plumbing it through MGS. Tell me if you disagree.

Tested on a grapefruit.

@evan-oxide evan-oxide requested review from flihp and labbott July 1, 2026 18:44
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.

1 participant