DF-2902 / run.sh
#!/bin/sh # DF-2902 run: two legs. Run as root in the guest; each leg is expected to # KILL the stock kernel (see README); run leg 2 only after a reset. set -e dd if=/dev/zero of=/root/med.img bs=1m count=256 vnconfig -c -S 512 vn0 /root/med.img echo '=== LEG A: blksize=0x40000 (256KB > MAXPHYS) -> expect KKASSERT panic at subr_diskmbr.c:128' kenv mbrprobe.blksize=262144 kldload /root/mbrprobe/a/mbrprobe_a.ko dmesg | tail -5 echo '=== (reset guest, recreate vn0, then) LEG B: blksize=0x80000000 -> expect assertion BYPASS + OOB memmove page fault' kenv mbrprobe.blksize=2147483648 kldload /root/mbrprobe/b/mbrprobe_b.ko dmesg | tail -5 |