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

Version.InvalidRequest test expectations are inaccurate #124

Closed
okt-olgak opened this issue Mar 25, 2024 · 4 comments · Fixed by #125
Closed

Version.InvalidRequest test expectations are inaccurate #124

okt-olgak opened this issue Mar 25, 2024 · 4 comments · Fixed by #125
Assignees

Comments

@okt-olgak
Copy link

We have stumbled upon this while running SPDM-Reponder-Validator tests standalone, without the spdm-emu infra.

The current test case is:

Requester -> GET_VERSION {SPDMVersion=0x11, Param1=0, Param2=0}
SpdmMessage <- Responder

Assertion 1.2.1: sizeof(SpdmMessage) >= sizeof(ERROR)

Assertion 1.2.2: SpdmMessage.RequestResponseCode == ERROR

Assertion 1.2.3: SpdmMessage.SPDMVersion == 0x10
[...]

Assertion 1.2.3 is inaccurate - this is only guaranteed to happen if this happens pre-VCA (or post-successful GET_VERSION). Post-VCA this error can return the negotiated SPDM version.

@steven-bellock
Copy link
Contributor

The ERROR message resulting from an invalid GET_VERSION request shall have the value of the SPDMVersion field set to 0x10 .

was added in the 1.2 specification and was not backported to 1.0/1.1. For the most part we can just remove this check since the Requester would have a bug and it probably wouldn't care if the response message is correct or not.

@steven-bellock
Copy link
Contributor

I'll ask the SPDM WG if the above text should be back-ported to the 1.0/1.1 specifications.

@okt-olgak
Copy link
Author

The ERROR message resulting from an invalid GET_VERSION request shall have the value of the SPDMVersion field set to 0x10

oh, you're right! did not notice this in the specification.

@steven-bellock
Copy link
Contributor

@jyao1 to remove the test. I'll file an issue with the SPDM Working Group to bring visibility.

jyao1 added a commit to jyao1/SPDM-Responder-Validator that referenced this issue Apr 1, 2024
jyao1 added a commit to jyao1/spdm-emu that referenced this issue Apr 1, 2024
@jyao1 jyao1 closed this as completed in #125 Apr 6, 2024
jyao1 added a commit that referenced this issue Apr 6, 2024
jyao1 added a commit to DMTF/spdm-emu that referenced this issue Apr 6, 2024
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 a pull request may close this issue.

3 participants