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

CPU vulnerability reporting from sysfs is broken #531

Closed
mwasilew2 opened this issue Jun 2, 2023 · 0 comments · Fixed by #532
Closed

CPU vulnerability reporting from sysfs is broken #531

mwasilew2 opened this issue Jun 2, 2023 · 0 comments · Fixed by #532

Comments

@mwasilew2
Copy link
Contributor

mwasilew2 commented Jun 2, 2023

I was working on: prometheus/node_exporter#1046 and got a panic when trying to get cpu vulnerabilities:

panic: Couldn't create metrics handler: couldn't create collector: failed to get vulnerabilities: unknown vulnerability state for itlb_multihit: Not affected

Turns out that the parser is looking for "Not Affected" rather than "Not affected". I'm not sure where the capital letter came from. I don't see it in the sysfs code. I suspect it was copied from the comment in the relevant PR: #106 (comment) and this actually never worked.

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.

1 participant