DragonFlyBSD Kernel Audit
DF-0935 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# run.sh — DF-0935 disprove the claimed overflow
# Usage: ./run.sh   (after ./build.sh, as unprivileged user)
set -e
echo "=== Original PoC (default rlimits, inflates 6 uncapped resources) ==="
./dfpoc-rlimit-overflow
echo
echo "=== Theoretical maximum output across three cap scenarios ==="
./maxcalc
echo
echo "=== Empirical: maximally inflate all 12 rlimits, read /proc/self/rlimit ==="
./maxinflate
echo
echo "RESULT: no overflow on any achievable configuration (max = 499 bytes < 512)."