Skip to content

fix: add timeout and sysfs-only to spectre-meltdown-checker#629

Merged
harp-intel merged 2 commits intomainfrom
fix/spectre-meltdown-checker-timeout
Feb 10, 2026
Merged

fix: add timeout and sysfs-only to spectre-meltdown-checker#629
harp-intel merged 2 commits intomainfrom
fix/spectre-meltdown-checker-timeout

Conversation

@harp-intel
Copy link
Contributor

Summary

  • Add --sysfs-only flag to use the kernel's sysfs vulnerability interface instead of analyzing the kernel binary directly with objdump/strings
  • Add 60 second timeout as a fallback to prevent hangs on systems where sysfs may not be available

Background

The spectre-meltdown-checker script can be very slow on systems with large kernels because it uses objdump and strings to analyze the kernel binary. Kernel sizes vary significantly based on built-in drivers, debug symbols, and distro configuration.

The sysfs interface (/sys/devices/system/cpu/vulnerabilities/) has been available since kernel 4.x and provides the kernel's authoritative determination of vulnerability status.

Test plan

  • Run perfspect report --cve on a system with a large kernel and verify it completes quickly
  • Verify CVE output still shows vulnerability status correctly

🤖 Generated with Claude Code

The spectre-meltdown-checker script can be slow on systems with large
kernels because it uses objdump and strings to analyze the kernel
binary. This adds:

- --sysfs-only flag to use the kernel's sysfs vulnerability interface
  instead of analyzing the kernel binary directly
- 60 second timeout as a fallback to prevent hangs

The sysfs interface (/sys/devices/system/cpu/vulnerabilities/) has been
available since kernel 4.x and provides the kernel's authoritative
determination of vulnerability status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@harp-intel harp-intel linked an issue Feb 9, 2026 that may be closed by this pull request
…sysfs-only option

Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
@harp-intel harp-intel merged commit 78a4c3f into main Feb 10, 2026
5 checks passed
@harp-intel harp-intel deleted the fix/spectre-meltdown-checker-timeout branch February 10, 2026 00:06
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.

Report command taking 5-6 minutes to complete

1 participant