DragonFlyBSD Kernel Audit
DF-2980 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-2980 PoC run (run inside the guest as an UNPRIVILEGED user)
# Success criterion:
#   "RACE HIT after N attach/continue cycles: PT_CONTINUE returned EPERM =>
#    P_TRACED set annihilated by tokenless stopprofclock() RMW"
# exit code 0 = race reproduced; 2 = no hit within cycle budget.
./poc ${1:-200000}