⬢ DragonFlyBSD Kernel Audit
DF-5001 / run_fix.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-5001 fix-mechanism run (ON THE GUEST, after reset): replay the same
# EMPTY-list scenario through the FIXED hub walk (fix.diff: empty list ->
# ifmedia_add(IFM_ETHER|IFM_AUTO) -> ifmedia_set).  Expected: survives,
# ifm_cur non-NULL (service functions' ife->ifm_media deref stays safe).
set -e
kldload /root/df5001/miihub.ko
sysctl hw.miihub_fixcheck=1
echo "== fixcheck exited 0 (survived) =="
dmesg | tail -8