⬢ DragonFlyBSD Kernel Audit
DF-3768 / trigger.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-3768 trigger — requires a DragonFly host with real Intel graphics
# (i915 hardware) and i915kms.ko built (not the audit guest, which is
# virtio-only). Run as root.
#
# Expected: cycles 1..8 each print "taking over the fictitious range ..."
# (i915_gem_gtt.c:2966) and leak one fake-vm_page array; cycle 9 fails:
# vm_phys_fictitious_reg_range returns EBUSY (drm_vm.c:203), attach error.
set -e
for i in 1 2 3 4 5 6 7 8 9; do
    echo "== cycle $i =="
    kldunload i915kms 2>/dev/null || true
    kldload i915kms || { echo "attach failed at cycle $i (expected at 9)"; break; }
    dmesg | tail -3
done
kldstat -v | grep -c i915