DF-5129
for_each_sg lacks Linux's `&& sg' termination guard β list shorter than sgmax turns into sg_next(NULL) NULL-deref panic
Summary
DF's macro has no NULL check: a physical list terminating before the caller's sgmax calls sg_next(NULL) -> NULL->flags fatal fault. In-tree callers are consistent today - latent robustness/compat divergence of the same LinuxKPI-contract family as DF-5128. One-line match-Linux fix.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-5129 Β· 1 files| File | Type | Description | Size | |
|---|---|---|---|---|
| verdict.json | file | 1.0 KB | view raw |
Fix verification
not_testablebaseline noβ patch + rebuild βpatched clean
per-fix-DF-5129
Confirmed kernel references
Detail
Evidence (decisive lines)
source trace in finding markdown
Verified recommended fix
add '&& sg' to the for_each_sg macro (scatterlist.h:342-343)
Verdict
untested (Low, latent/speculative; no in-tree trigger or absent hardware - pack minimal, evidence in finding markdown)
No comments yet.