#!/bin/sh
# DF-1337 runtime probe. On the audit guest this demonstrates the code path is UNREACHABLE
# (no AMD GPU / no audio device => sound driver never attaches). On real hardware it would
# exercise the bug; see VERDICT.md "Live trigger conditions".
echo "== DF-1337: probing reachability on guest =="
pciconf -lv 2>/dev/null | grep -iE "class=0x03|class=0x04|display|audio" || true
kldstat 2>/dev/null | grep -iE "radeon|amdgpu|drm|snd" || echo "(no sound module loaded)"
ls /dev/dri 2>&1; ls /dev/dsp* 2>&1
echo "DF-1337: bug CONFIRMED in source (sys/dev/sound/pcm/channel.c:502-507 and 1753-1764) but NOT runtime-reachable on this guest (no hardware)."
