{
  "finding_id": "DF-3727",
  "title": "ciss_disable_adapter: uninitialized STAILQ head qh -> wild kernel write/read (missing STAILQ_INIT)",
  "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",
  "code_hash": "2013f8c97155a90aaef495bac6228952c8fecc7cc226c176cc31fb3990d7f039",
  "verdict": "REPRODUCED",
  "impact": "corruption",
  "confidence": "certain",
  "reproduce": {
    "build": "./build.sh",
    "run": "./run.sh",
    "expected": "baseline prints [BUG REPRODUCED] and exits 0; fixed replica prints [FIXED] with no bug marker"
  },
  "kernel_refs": [
    "sys/dev/raid/ciss/ciss.c:3465",
    "sys/dev/raid/ciss/ciss.c:3483",
    "sys/dev/raid/ciss/ciss.c:3487",
    "sys/dev/raid/ciss/ciss.c:3389",
    "sys/dev/raid/ciss/ciss.c:3395",
    "sys/sys/queue.h:306"
  ],
  "fix_status": "fixed",
  "artifacts": [
    {
      "path": "harness.c",
      "type": "trigger-source",
      "desc": "faithful userspace replica of the cited kernel path (real macros/struct constants)"
    },
    {
      "path": "build.sh",
      "type": "build-script",
      "desc": "cc -O2 (and -DFIXED replica, -O0 variant)"
    },
    {
      "path": "run.sh",
      "type": "run-script",
      "desc": "baseline + fixed runs with exit codes"
    },
    {
      "path": "build.log",
      "type": "build-log",
      "desc": "full untrimmed guest compiler output"
    },
    {
      "path": "run.log",
      "type": "run-log",
      "desc": "decisive run: baseline [BUG REPRODUCED] + fixed [FIXED]"
    },
    {
      "path": "run.2.log",
      "type": "run-log",
      "desc": "repeat run (stability)"
    },
    {
      "path": "run.3.log",
      "type": "run-log",
      "desc": "repeat run (stability)"
    },
    {
      "path": "fix_run.log",
      "type": "run-log",
      "desc": "-DFIXED section (persist_fix reads this)"
    },
    {
      "path": "VERDICT.md",
      "type": "verdict",
      "desc": "full narrative: mechanism, path:line, harness proof, fix"
    },
    {
      "path": "fix.diff",
      "type": "suggested-fix",
      "desc": "add STAILQ_INIT(&qh) in ciss_disable_adapter (matches FreeBSD upstream)"
    },
    {
      "path": "fix_apply.log",
      "type": "apply-log",
      "desc": "patch --dry-run on guest /usr/src (clean)"
    },
    {
      "path": "fix_build.log",
      "type": "build-log",
      "desc": "ciss.ko rebuilt with all 7 pass-2 fixes at -Werror, link rc=0"
    },
    {
      "path": "env.txt",
      "type": "environment",
      "desc": "guest uname, no-HW proof, module presence"
    },
    {
      "path": "README.md",
      "type": "readme",
      "desc": "human reproduce doc"
    },
    {
      "path": "manifest.json",
      "type": "manifest",
      "desc": "this file"
    },
    {
      "path": "verdict.json",
      "type": "verdict",
      "desc": "machine verdict (persist_poc.py schema)"
    }
  ]
}