kernel_version: allow "." before the vendor suffix #472
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 182 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.312
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #472"
general
weight: 0.35
cyphar
Fixes #471.
Summary
parse_kernel_versioncut the release string at the first character that was neither a digit nor., so6.18.52.mshv1-2.azl3(Azure Linux guest kernel on AKS Pod Sandboxing / Kata) became6.18.52.and failed on the empty trailing component.host_kernel_version()then panics and runc aborts container startup.Stray dots that the existing tests reject on purpose (
42.12.,4.10.-default,1..3) are still rejected.Evidence
New test
parse_kernel_version_with_dot_suffix, run inrust:1.99-trixie:cargo test --lib utils::kernel_version→15 passed; 1 failed(parse_kernel_version_with_dot_suffix)After:
16 passed; 0 failed;cargo fmt --checkandcargo clippy --all-targetsclean.Merge Danger
Door: two-way
Blast Radius: narrow
Only changes which release strings parse; strings that parsed before give the same result. Releases of the form
X.Y.Z.<letter>…now parse instead of panicking.