Skip to content

Commit

Permalink
Fix cpuinfo crash on OL8 RHCK
Browse files Browse the repository at this point in the history
Signed-off-by: Pradyumn Rahar <[email protected]>
  • Loading branch information
Hannibal404 authored and brenns10 committed May 30, 2024
1 parent c9c47c5 commit 3a535ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drgn_tools/cpuinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ def get_spectre_v2_mitigation(prog: Program, cpu_caps_bugs: Object) -> str:
if test_bit(X86_FEATURE_RSB_CTXSW, cpu_caps_bugs):
mitigation += ", RSB filling"

if prog["spectre_v2_bad_module"]:
if (
"spectre_v2_bad_module" in prog
and prog["spectre_v2_bad_module"]
):
mitigation += " - vulnerable module loaded"

return mitigation
Expand Down

0 comments on commit 3a535ae

Please sign in to comment.