DragonFlyBSD Kernel Audit
DF-2668 / setup_and_run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-2668 setup + run (in-guest, as root).
# Expected on stock kernel: panic "assertion mp->mnt_refs == 0 failed in
# mount_drop" with sys_fhstatfs() on the stack; guest freezes in DDB.
mkdir -p /tmp/nmtest
echo anchor > /tmp/anchor_file
mount -t null /tmp /tmp/nmtest
/tmp/df2668 /tmp/nmtest/anchor_file