After cloning the repository update the submodules by running
git submodule update --init --recursiveThen follow these steps below to run an experiment.
-
Build Verilator
cd $PROJECT_ROOT/verilator export VERILATOR_ROOT=$PWD autoconf && ./configure && make -j4
-
Building and test examples
-
Build
libpropfirstcd $PROJECT_ROOT/fuzztest/libprop mkdir build && cd build && cmake .. && make -j4
- Building example
aes_test
cd $PROJECT_ROOT/fuzztest make aes_test
- Building example
-
Kernel config to run afl
- Run
sudo ./$PROJECT_ROOT/fuzztest/kernel-config.shto setup system to run afl.
- Run
-
Run test using
run.shscript- ./run.sh ./aes_test [test-timeout]