DragonFlyBSD Kernel Audit
DF-1371 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-1371 runtime probe. On the audit guest this demonstrates the code path is UNREACHABLE
# (no oce hardware => driver never attaches). On real hardware it would
# exercise the bug; see VERDICT.md "Live trigger conditions".
echo "== DF-1371: probing reachability on guest =="
pciconf -lv 2>/dev/null | grep -iE "class=0x01|class=0x03|class=0x04|display|scsi|sas|raid" || true
kldstat 2>/dev/null | grep -iE "oce" || echo "(no oce module loaded)"
ls /dev/fd0 /dev/dri /dev/dsp* 2>&1 | head
echo "DF-1371: bug CONFIRMED in source (sys/dev/netif/oce/oce_if.c:1274) but NOT runtime-reachable on this guest (no hardware)."