DragonFlyBSD Kernel Audit
DF-2633 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2633 run (stock kernel; silent loss + storm + wedge)
# full flow in run_planD.sh; minimal form:
set -e
truncate -s 256M /tmp/h33.img
vnconfig -c vn1 /tmp/h33.img
newfs_hammer2 -L DATA /dev/vn1 >/dev/null
mkdir -p /mnt/h33
mount_hammer2 /dev/vn1@DATA /mnt/h33
mkdir -p ctrl
./write2633 /mnt/h33 ctrl 6000        # ~5 min; ends at the wall
./phase2 /mnt/h33 ctrl                # wall-state probes
# stock expectations:
#   FILL_FSYNC rc=0 errno=0          <- fsync lies (finding)
#   console floods "xop_strategy_write: error 32" unbounded (213/s)
#   umount -> EBUSY forever
# fixed expectations (validate_fix.sh):
#   FILL_FSYNC rc=-1 errno=28; RETRY_* all ENOSPC; console 1 line/s