From: Neil Horman Date: Wed, 23 Jul 2025 14:56:38 +0000 (-0400) Subject: Add a daily memory allocation failure test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c3f0da9bdb504a8c6005fa52f815a9b243855b8;p=thirdparty%2Fopenssl.git Add a daily memory allocation failure test nightly, run the memory allocation failure test. We build with asan enabled to log memory leaks and other issues Note the test is designed to pass even if the test fails, as currently (perhaps not suprisingly), several error paths result in asan errors. Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/28078) --- diff --git a/.github/workflows/run-checker-daily.yml b/.github/workflows/run-checker-daily.yml index 239c2c0ab61..bef1e8aacfe 100644 --- a/.github/workflows/run-checker-daily.yml +++ b/.github/workflows/run-checker-daily.yml @@ -258,6 +258,28 @@ jobs: - name: make test run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} + malloc_failure_testing: + runs-on: ubuntu-latest + steps: + - name: checkout openssl + uses: actions/checkout@v4 + - name: Adjust ASLR for sanitizer + run: | + sudo cat /proc/sys/vm/mmap_rnd_bits + sudo sysctl -w vm.mmap_rnd_bits=28 + - name: config + run: ./config --strict-warnings --banner=Configured --debug enable-asan enable-crypto-mdebug enable-allocfail-tests && perl configdata.pm --dump + - name: make + run: make -s -j4 + - name: get cpu info + run: | + cat /proc/cpuinfo + ./util/opensslwrap.sh version -c + - name: make test + continue-on-error: true + run: | + make TESTS=test_handshake-memfail test + enable_brotli_and_asan_ubsan: runs-on: ubuntu-latest steps: