Skip to content

fix CVE-2017-5715 reporting when IBRS_FW is enabled#506

Merged
speed47 merged 1 commit into
masterfrom
unknown repository
Oct 27, 2025
Merged

fix CVE-2017-5715 reporting when IBRS_FW is enabled#506
speed47 merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 5, 2025

Hi there,

I noticed that spectre-meltdown-checker has been reporting my system as vulnerable since version 0.45 or so and with these changes it reports it correctly. Please, correct me if I'm wrong.

Before:

Screenshot From 2025-02-05 11-26-29

After:

Screenshot From 2025-02-05 11-29-41

Greeting,
Gabriel Francisco

@speed47
Copy link
Copy Markdown
Owner

speed47 commented Oct 26, 2025

Tanks for your PR, indeed it seems it has changed in recent Linux versions:

$ git grep IBRS_FW v6.0 v6.10 -- arch/x86/kernel/cpu/bugs.c
v6.0:arch/x86/kernel/cpu/bugs.c:                setup_force_cpu_cap(X86_FEATURE_USE_IBRS_FW);
v6.0:arch/x86/kernel/cpu/bugs.c:                       boot_cpu_has(X86_FEATURE_USE_IBRS_FW) ? ", IBRS_FW" : "",
v6.10:arch/x86/kernel/cpu/bugs.c:               setup_force_cpu_cap(X86_FEATURE_USE_IBRS_FW);
v6.10:arch/x86/kernel/cpu/bugs.c:                         boot_cpu_has(X86_FEATURE_USE_IBRS_FW) ? "; IBRS_FW" : "",

They replaced the "," by a ";". I can't seem to be able to adjust your PR: can you modify it to replace grep -q ', IBRS_FW' by grep -q '[,;] IBRS_FW'? This will account for all cases!

@ghost ghost closed this Oct 26, 2025
@ghost ghost reopened this Oct 26, 2025
@ghost
Copy link
Copy Markdown
Author

ghost commented Oct 26, 2025

Sure! Thanks for the recommendation. I changed it to match colon or semicolon in both cases. Is that right?

@speed47 speed47 merged commit a8466b7 into speed47:master Oct 27, 2025
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.

1 participant