DragonFlyBSD Kernel Audit
DF-0050 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-0050 repro run: ./msg_leak  (as unprivileged user)
# Expected on BUGGY kernel: msg_first/msg_last = 0xfffff80... (kernel heap ptr)
# Expected on FIXED kernel: msg_first/msg_last = 0x0 (NULL)
set -e
cd "$(dirname "$0")"
./msg_leak
echo "RUN_EXIT=$?"