{
  "finding_id": "DF-0006",
  "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",
  "fix_kernel_uname": "DragonFly 6.5-DEVELOPMENT #1: Thu Jul  2 08:12:37 UTC 2026",
  "code_hash": "b9a306d0f9e7f73e4c245b4cc038294a3be6c13dd327ab55b89b5a9764a94a47",
  "tested_at": "2026-07-22T18:10:00Z",
  "verdict": "REPRODUCED -> FIX VALIDATED",
  "impact": "leak:102ptrs",
  "confidence": "certain",
  "reproduce": {
    "build": "./build.sh",
    "run": "./run.sh",
    "expected": "kernel memory/pointer leak; see leak_sample.txt / run.log."
  },
  "kernel_refs": [
    "sys/kern/tty.c:2891",
    "sys/kern/tty.c:2911",
    "sys/kern/tty.c:2912",
    "sys/kern/tty.c:2914",
    "sys/kern/tty.c:2923",
    "sys/kern/kern_sysctl.c:1446",
    "sys/sys/tty.h:45",
    "sys/sys/tty.h:74",
    "sys/sys/tty.h:86",
    "sys/sys/tty.h:89",
    "sys/sys/tty.h:94",
    "sys/sys/tty.h:99",
    "sys/sys/tty.h:112",
    "sys/sys/thread.h:159",
    "sys/sys/event.h:160"
  ],
  "artifacts": [
    {
      "path": "leak_ttys.c",
      "type": "trigger-source",
      "desc": "reads kern.ttys blob, scans + dumps kernel pointers and raw blob"
    },
    {
      "path": "build.sh",
      "type": "build-script",
      "desc": "cc -o leak_ttys leak_ttys.c"
    },
    {
      "path": "run.sh",
      "type": "run-script",
      "desc": "runs leak_ttys as unprivileged user"
    },
    {
      "path": "build.log",
      "type": "build-log",
      "desc": "PoC compile (final successful build)"
    },
    {
      "path": "run.log",
      "type": "run-log",
      "desc": "UNPATCHED #0 baseline: 102 kernel pointers leaked (decisive)"
    },
    {
      "path": "run.2.log",
      "type": "run-log",
      "desc": "2nd unpatched run (variance): identical 102"
    },
    {
      "path": "run.3.log",
      "type": "run-log",
      "desc": "3rd unpatched run (variance): identical 102"
    },
    {
      "path": "leak_sample.txt",
      "type": "leak-sample",
      "desc": "leaked function/heap pointers + nm /boot/kernel/kernel cross-ref"
    },
    {
      "path": "fix.diff",
      "type": "suggested-fix",
      "desc": "IMPROVED git-apply-able fix: zero ALL pointer fields incl. t_list (TAILQ_ENTRY) + t_rkq/t_wkq before SYSCTL_OUT (closes 102->0)"
    },
    {
      "path": "fix_build.log",
      "type": "build-log",
      "desc": "full nativekernel output of the single-fix build, rc=0 (35599 lines)"
    },
    {
      "path": "fix_run.log",
      "type": "run-log",
      "desc": "PATCHED #1 kernel PoC run: 0 leaked, exit 2 (x3 deterministic)"
    },
    {
      "path": "env.txt",
      "type": "environment",
      "desc": "guest uname (#0 baseline), cc version, maxx identity"
    },
    {
      "path": "VERDICT.md",
      "type": "verdict",
      "desc": "full mechanism, field-offset table, before/after proof, fix-validation, install-procedure note"
    },
    {
      "path": "README.md",
      "type": "readme",
      "desc": "build/run/expected for humans"
    },
    {
      "path": "manifest.json",
      "type": "manifest",
      "desc": "this catalog"
    },
    {
      "path": "fix_apply.log",
      "type": "apply-log",
      "desc": "patch --dry-run output proving fix.diff applies cleanly on with-src"
    },
    {
      "path": "../fix_build_combined.log",
      "type": "build-log",
      "desc": "Combined 41-finding kernel build (rc=0, -Werror clean)"
    },
    {
      "path": "../fix_build_summary.txt",
      "type": "build-summary",
      "desc": "Summary of the combined 41-finding kernel build"
    }
  ]
}