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

fix: Use correct offset for unix socket diagnosis #1061

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

srebhan
Copy link
Contributor

@srebhan srebhan commented Feb 20, 2025

When parsing diagnosis information of Unix sockets the current code uses the wrong offset (sizeofSocket) for determining the start of the attached parameters.

As a result, returned attributes might be scrambled or missing. More severely, the code might panic if no or only a small number of attributes are available as e.g. in influxdata/telegraf#16527

This PR uses the correct sizeofUnixSocket offset to fix the issue.

@aboch
Copy link
Collaborator

aboch commented Feb 20, 2025

LGTM

@aboch aboch merged commit 9f534ef into vishvananda:main Feb 20, 2025
1 of 2 checks passed
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