#!/bin/sh
# DF-2673 - run as ROOT on the guest.  Expected: kernel panic
#   panic("lockmgr: locking against myself")
# from vm_map_user_wiring -> vm_map_lock while vm_map_growstack already
# holds the map exclusively (vm_map.c:4274).
echo "[*] running as: $(id -un)"
timeout 30 /tmp/grow_wirefuture
echo "[!] survived without panic (exit $?)"
