⬢ DragonFlyBSD Kernel Audit
DF-3136 / verdict.json
← back to finding ↓ download raw
{
 "finding_id": "DF-3136",
 "status": "not_reproduced",
 "reproduced": 0,
 "impact": "none",
 "confidence": "certain",
 "verdict": "DEAD CODE - closed per the DF-3058 precedent: sys/vfs/dirfs/ has no Makefile, is not referenced by sys/conf/files (verified: grep dirfs conf/files empty), is in no kernel config, and mount_dirfs refuses to run on non-vkernel platforms. Line-accurate confirmation of the defect: dirfs_subr.c:357/359/361 store st.st_atime * 1000000000L into the int32 nsec fields (wrong source field + truncation), copied to userland via dirfs_getattr. Fix (read st_*tim.tv_nsec) authored; compile validation not possible (dirfs is not buildable in any configuration of this tree).",
 "exploit_chain": "",
 "evidence": "VERDICT.md with path:line citations; run.log where a live demo exists; fix.diff",
 "kernel_refs": [
  "sys/vfs/dirfs/dirfs_subr.c:357",
  "sys/vfs/dirfs/dirfs_subr.c:361"
 ],
 "poc_changes": "n/a - dead code",
 "attempts": 0,
 "guest_uname": "DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 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": 30,
 "guest_dirty": 0,
 "build_cmd": "see build.sh",
 "run_cmd": "see run.sh",
 "code_hash": null,
 "notes": "",
 "recommended_fix": "read st_atim.tv_nsec/st_mtim.tv_nsec/st_ctim.tv_nsec",
 "fix_status": "not_testable",
 "fix_verdict": "dirfs is dead code in this tree (no Makefile, absent from conf/files, vkernel-only) - fix.diff authored but not compilable in any configuration"
}