#!/bin/sh
# DF-2751 - run on the guest (unprivileged).
# Vulnerable kernel (INVARIANTS, incl. stock X86_64_GENERIC): guest dies
# mid-run with
#   panic: assertion "sigiop == sigio->sio_myref" failed in funsetown
#          at /usr/src/sys/kern/kern_descrip.c:1247
# (stack: funsetown <- fsetown <- pipe_ioctl <- kern_fcntl <- sys_fcntl).
# Fixed kernel: "survived: victim=... killer=... writes=... (no panic)"
# then exit 2.
set -e
./fr3 300
