DragonFlyBSD Kernel Audit
DF-0046 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-0046 run: execute the trigger PoC as an unprivileged user.
# On the BUGGY kernel: prints "semval after four +32767 ops = 65532 ... BUG CONFIRMED"
#                    and "wait-for-zero child RELEASED ... mutual exclusion broken".
# On the FIXED kernel: exits at op2 with "Result too large" (ERANGE) -- the bug is gone.
cd "$(dirname "$0")"
./sem_wrap