β¬’ DragonFlyBSD Kernel Audit
← triage Β· dashboard
DF-4017

COMPAT_FREEBSD32 shim is un-compilable dead code (5-arg mps_ioctl call, undefined td); RAID_ACTION32 dispatches to an unimplemented ioctl (DF-4011 mpr twin)

Summary

COMPAT_FREEBSD32 is never defined in the DragonFly build, so mps_ioctl32 is dead code - and could not compile if enabled: 5-arg call against the 4-param prototype, undefined td at :2396. The shim translates MPSIO_RAID_ACTION32 to an ioctl mps_ioctl does not implement (ENOIOCTL). Identical shape to DF-4011 (mpr). Remove or port.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-4017 Β· 2 files
FileTypeDescriptionSize
README.md file 230 B ↓ raw
verdict.json file 842 B view raw
README.md file
↓ download raw

DF-4017

Low/Info finding β€” PoC skipped per contract (hardware-gated / dead code). Source citations in the pass-2 result block.

Fix: remove the #ifdef COMPAT_FREEBSD32 block or port it properly (match the DF-4011 resolution)

Fix verification

not_testable
baseline no→ patch + rebuild →patched clean

remove the #ifdef COMPAT_FREEBSD32 block or port it properly (match the DF-4011 resolution)

source-only
per-fix-DF-4017

Confirmed kernel references

Detail

Exploit chain

[]

Evidence (decisive lines)

source-only; path:line citations in pass-2 result block

Verdict

source-verified; dead code, none today