DragonFlyBSD Kernel Audit
DF-0406 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0406 run -- in_delayed_cksum stressor.
# Setup (as root): ifconfig vtnet0 -txcsum -rxcsum
# Expected (BUG, under straddle + m_pullup NULL): kernel panic in in_delayed_cksum.
# Expected (live, this guest): 200k packets sent, no "delayed m_pullup" kprintf,
#                              no panic. Path is exercised (in_delayed_cksum runs
#                              on every TX), straddle condition is not met.
# Expected (FIX): same as live; networking stays up.
set -e
[ -x df_0406_cksum ] || ./build.sh
echo "-- df_0406_cksum --"
./df_0406_cksum 10.0.2.2 9 2>&1 | tail -3
echo "-- df_0406_sf --"
./df_0406_sf   10.0.2.2 9 2>&1 | tail -3