# DF-2526 -- trm_detach frees DMA/IOPORT resources before bus_teardown_intr

Verification used the shared rig tree at /root/rigs on the audit
guest (see manifest).  The rig for this finding: dfv_trm  (rig.c = harness,
gen.sh = verbatim extractor, dfv_*_extract.h = generated production text).
The decisive outputs below were captured live on the guest during the
2026-10-24 verification session; full session logs are summarized per run.


## Build
    sh build.sh            # extracts verbatim driver text + builds the KLD

## Run (guest, root)
    kldload ./dfv_rig.ko
kldload dfv_trm.ko; sysctl kern.dfv_trm_run=2; sysctl -n kern.dfv_trm_status

## Expected
run.log: full call-order log with teardown_intr last; fixed order log with teardown_intr first.

## Fix validation
fix.diff moves bus_teardown_intr to the top of trm_detach; A/B order log shows it first.

Verdict: reproduced / impact=corruption (see verdict.json, VERDICT.md)
