โฌข DragonFlyBSD Kernel Audit
DF-1044 / run.sh
โ† back to finding โ†“ download raw
#!/bin/sh
# DF-1044 โ€” verify the bug is fixed at the source level after applying fix.diff.
# Prints the cited lines AFTER patching; expects:
#   line ~1120: add_map_callback(wait_map)   (was: add_map_callback(map))
#   line ~1215: kprintf(... dropped ...)       (was: panic("%s uncoded", __func__))
set -e
F=${1:-/usr/src/sys/platform/vkernel64/platform/busdma_machdep.c}
echo "[line 1118-1121 โ€” transposition fix]"
sed -n '1118,1121p' "$F"
echo
echo "[line 1202-1230 โ€” panic-stub replaced with kprintf]"
sed -n '1202,1230p' "$F"
echo
echo "=== DF-1044 fix verification complete ==="