Skip to content

Getting errors such as grep: /proc/<pid>/status: No such file or directory #322

@wizeman

Description

@wizeman

When I run spectre-meltdown-checker --paranoid --batch json, sometimes I get errors on stderr such as:

grep: /proc/32397/status: No such file or directory
grep: /proc/32398/status: No such file or directory

I believe this is due to this line of code, which is running grep over /proc/*/status:

mitigated_processes=$(grep -El 'Speculation.?Store.?Bypass:[[:space:]]+thread (force )?mitigated' /proc/*/status \

This can fail because by the time grep starts to run, the result of the /proc/*/status expansion may no longer reflect the currently running processes (i.e. some processes may have exited already).

Maybe grep's stderr can simply be silenced?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions