ubuntu-22-04-fuzz:
name: Ubuntu 22.04 (Fuzz)
runs-on: ubuntu-22.04
- container: ubuntu:22.04
+ container:
+ image: ubuntu:22.04
+ options: --privileged
needs: [prepare-deps, prepare-cbindgen]
steps:
make \
rustc \
software-properties-common \
+ sudo \
zlib1g \
zlib1g-dev
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
mkdir -p $HOME/.cargo/bin
cp prep/cbindgen $HOME/.cargo/bin
chmod 755 $HOME/.cargo/bin/cbindgen
- echo "$HOME/.cargo/bin" >> $GITHUB_PATH - run: tar xf prep/libhtp.tar.gz
+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+ - run: tar xf prep/libhtp.tar.gz
+ - name: Fix kernel mmap rnd bits
+ # Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
+ # high-entropy ASLR in much newer kernels that GitHub runners are
+ # using leading to random crashes: https://github.com/actions/runner-images/issues/9491
+ run: sudo sysctl vm.mmap_rnd_bits=28
- run: ./autogen.sh
- run: AFL_HARDEN=1 ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes CFLAGS="-fsanitize=address -fno-omit-frame-pointer" CXXFLAGS=$CFLAGS CC=afl-clang-fast CXX=afl-clang-fast++ ./configure --enable-fuzztargets --disable-shared
- run: AFL_HARDEN=1 make -j2