#!/bin/sh
# DF-2691 run script - run as an unprivileged user on the guest.
# Loops until the kernel panics (expected) or N attempts elapse.
N=${1:-100}
i=0
while [ $i -lt $N ]; do
	i=$((i+1))
	echo "=== attempt $i ==="
	./kqsig_uaf || exit 1
done
echo "no panic in $N attempts"
