DragonFlyBSD Kernel Audit
DF-1368 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-1368 runtime probe. On the audit guest this demonstrates the code path is UNREACHABLE
# (no amdgpu hardware => driver never attaches). On real hardware it would
# exercise the bug; see VERDICT.md "Live trigger conditions".
echo "== DF-1368: 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 "amdgpu" || echo "(no amdgpu module loaded)"
ls /dev/fd0 /dev/dri /dev/dsp* 2>&1 | head
echo "DF-1368: bug CONFIRMED in source (sys/dev/drm/amd/powerplay/smumgr/vegam_smumgr.c:515) but NOT runtime-reachable on this guest (no hardware)."