⬢ DragonFlyBSD Kernel Audit
DF-5699 / fix_run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-5699 fixed run — the UAF must NOT manifest with prop_object_retain pinning.
cd /tmp/df5699
echo "=== fixed: control ==="
DF5699_CONTROL=1 ./df5699_race_fixed; rc=$?
echo "fixed control exit=$rc (expect 0)"
echo "=== fixed: experiment (remove under handler) ==="
./df5699_race_fixed; rc=$?
echo "fixed experiment exit=$rc (expect 1 = not-realized; crash>=128 or 42 = STILL VULNERABLE)"
if [ "$rc" -ge 128 ] || [ "$rc" -eq 42 ]; then
  echo "FIX VALIDATION FAILED"; exit 9
fi
echo "FIX VALIDATION PASSED: object pinned across handler, no crash, no differential"