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

ChunkSeqNo should not wrap #2875

Open
steven-bellock opened this issue Oct 31, 2024 · 4 comments · May be fixed by #2952
Open

ChunkSeqNo should not wrap #2875

steven-bellock opened this issue Oct 31, 2024 · 4 comments · May be fixed by #2952
Assignees
Labels
bug Something isn't working

Comments

@steven-bellock
Copy link
Contributor

I believe a reading of the Large SPDM message transfer mechanism implies that ChunkSeqNo should not wrap. Ie, if the message is too large for 65536 chunks then it should not be sent. However libspdm assumes wrapping, for example

I filed https://github.com/DMTF/SPDM-WG/issues/3703 to increase the size of ChunkSeqNo so that we don't have to think about this for SPDM 1.4 and greater.

@steven-bellock steven-bellock added the bug Something isn't working label Oct 31, 2024
@jyao1
Copy link
Member

jyao1 commented Nov 1, 2024

Good finding.

Read the spec, the LargeMessageSize is present when ChunkSeqNo is 0. But it is not considered on wrap case.

I think we should prevent wrap from happening.

@steven-bellock
Copy link
Contributor Author

The SPDM Working Group confirmed that it does not wrap. This will be made more explicit in the specification.

@jyao1 jyao1 self-assigned this Nov 26, 2024
@Li-Aaron
Copy link
Contributor

I'll take this.

@jyao1 jyao1 assigned Li-Aaron and unassigned jyao1 Nov 27, 2024
@steven-bellock
Copy link
Contributor Author

@Li-Aaron if the Responder is sending a message and it's too large for 65536 chunks then it can return ResponseTooLarge.

Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
Li-Aaron added a commit to Li-Aaron/libspdm that referenced this issue Jan 13, 2025
@Li-Aaron Li-Aaron linked a pull request Jan 14, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants