Skip to content

CPU vulnerability reporting from sysfs is broken #531

@mwasilew2

Description

@mwasilew2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions