DF-5174
Operator-precedence bug in ata_jmicron_ident: '& 0x02 >> 1' tests bit 0 of config 0x40 instead of bit 1, misidentifying the AHCI/PATA function in the device description
Summary
Shift binds tighter than &: the function compare tests reg&1 instead of (reg&0x02)>>1 - cosmetic description-string misidentification only. Parenthesize fix.
Discussion (0)
PoC verification
Evidence pack
findings/poc/DF-5174 Β· 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-5174
Confirmed kernel references
Detail
Evidence (decisive lines)
kobj dispatch chain proven from source: pcivar.h:302 -> subr_kobj.c:161-165 -> makeobjops.awk:281-293 (returns constant ENXIO=6)
Verified recommended fix
parenthesize (reg & 0x02) >> 1
Verdict
untested (hardware-gated: no JMicron controller on audit guest)
No comments yet.