⬢ DragonFlyBSD Kernel Audit
DF-4254 / verdict.json
← back to finding ↓ download raw
{
  "finding_id": "DF-4254",
  "status": "untested",
  "reproduced": 0,
  "impact": "none",
  "confidence": "certain",
  "verdict": "IR_PHYSICAL_DISK OFFLINE branch does targ->flags |= ~MPR_TARGET_FLAGS_RAID_COMPONENT (:598-599) instead of &= ~: RAID_COMPONENT stays set (disk locked out of OS via add_device :909 special-casing) and every other flag bit is force-set, including MPR_TARGET_IS_SATA_SSD which drives stop_at_shutdown in mprsas_ir_shutdown (:1677-1698) - affected HDDs are not stopped at power-off (data-loss vector the SSU machinery exists to prevent). mpr twin of mps DF-1698; no mpr-side finding existed.",
  "exploit_chain": "",
  "evidence": "VERDICT.md flag-semantics trace; build.log compile-validation.",
  "kernel_refs": [
    "sys/dev/raid/mpr/mpr_sas_lsi.c:598",
    "sys/dev/raid/mpr/mpr_sas_lsi.c:909",
    "sys/dev/raid/mpr/mpr_sas_lsi.c:1683"
  ],
  "poc_changes": "n/a - pass-2 finding; trigger documentation written fresh (hardware-gated, no seed PoC existed)",
  "attempts": 1,
  "guest_uname": "DragonFly dfbsd 6.5-DEVELOPMENT #0: Thu Jul 2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64",
  "runtime_sec": 130,
  "guest_dirty": 0,
  "build_cmd": "see build.sh / build.log (hardware absent; mpr fixes compile-validated on guest)",
  "run_cmd": "./run.sh (hardware-gating probe)",
  "code_hash": "d64a85c0bbe1b122fd3ca28110d9447110db140a1e798e123b2d90436073c113",
  "notes": "Logic/data-integrity bug, certain. | Status untested = target device absent on guest (contracts not_testable class).",
  "recommended_fix": "targ->flags &= ~MPR_TARGET_FLAGS_RAID_COMPONENT",
  "fix_status": "not_testable",
  "fix_baseline_reproduced": 0,
  "fix_patched_reproduced": 0,
  "fix_verdict": "not_testable at runtime; compile-validated (&= ~ one-token fix).",
  "fix_evidence": "build.log: patched module builds clean."
}