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

plugins/ocp: fix telemetry parser buffer overflow #2694

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

igaw
Copy link
Collaborator

@igaw igaw commented Feb 7, 2025

The fixed 256-byte description_str will overflow for any reasonably sized data_size >= 128.

Max data_size is for OCP VU Event Data is 0xFF Dwords, so the buffer should be at least 1020 bytes + 1 for null. 1024 seems like a nice number for OCP.

Reported-by: Nate Thornton [email protected]

Fixes: #2686

The fixed 256-byte description_str will overflow for any reasonably
sized data_size >= 128.

Max data_size is for OCP VU Event Data is 0xFF Dwords, so the buffer
should be at least 1020 bytes + 1 for null. 1024 seems like a nice
number for OCP.

Reported-by: Nate Thornton <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>
@igaw igaw merged commit d40125f into linux-nvme:master Feb 7, 2025
17 checks passed
@igaw igaw deleted the fix-ocp branch February 7, 2025 15:59
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.

ocp: telemetry parser buffer overflow for events exceeding 32 dwords
1 participant