# DF-0113 — REPRODUCED (source-only, ptrace privileged)

## Build
```sh
sh build.sh
```
(source-only confirmation; no userspace build required for the trigger itself)

## Run
```sh
sh run.sh
```

## Expected
none (tracer privileged) on the unfixed kernel; after applying `fix.diff` the cited defect is closed.
This finding was verified by source-tracing `sys/kern/sys_process.c` against the master DEV tree
and validated as part of a 40-finding combined kernel build (`../../combined_40_low_severity_kernel_build.log`).

## Mechanism
PT_DETACH restores original parent via pfind(p->p_oppid)(:355)+proc_reparent(:357). p_oppid is a bare pid_t set at attach (:314), never revalidated. PIDs recycle. If original parent exits and PID reused by attacker, tracee reparented to wrong process.
