Hey,
currently we still have test failures in wolfSSL in
EVP_PKEY_CTX_new with clang asan. Github action patch that reproduces
this also attached. With the OpenVPN 2.6 release coming up in the next
months it would be good if these can be fixed. These look like problems
in the upstream wolfSSL code.
Details are below:
=================================================================
==19723==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 160 byte(s) in 4 object(s) allocated from:
#0 0x49604d in malloc
(/home/runner/work/openvpn/openvpn/tests/unit_tests/openvpn/crypto_testdriver+0x49604d)
#1 0x7f64e8318291 in wolfSSL_EVP_PKEY_CTX_new
(/usr/local/lib/libwolfssl.so.34+0x9e291)
Indirect leak of 400 byte(s) in 2 object(s) allocated from:
#0 0x49604d in malloc
(/home/runner/work/openvpn/openvpn/tests/unit_tests/openvpn/crypto_testdriver+0x49604d)
#1 0x7f64e833c537 in wolfSSL_EVP_PKEY_new_ex
(/usr/local/lib/libwolfssl.so.34+0xc2537)
Indirect leak of 240 byte(s) in 2 object(s) allocated from:
#0 0x49604d in malloc
(/home/runner/work/openvpn/openvpn/tests/unit_tests/openvpn/crypto_testdriver+0x49604d)
#1 0x7f64e82b4ac2 in _InitRng.isra.0
(/usr/local/lib/libwolfssl.so.34+0x3aac2)
Indirect leak of 118 byte(s) in 2 object(s) allocated from:
#0 0x49604d in malloc
(/home/runner/work/openvpn/openvpn/tests/unit_tests/openvpn/crypto_testdriver+0x49604d)
#1 0x7f64e833c72b in wolfSSL_EVP_PKEY_new_mac_key
(/usr/local/lib/libwolfssl.so.34+0xc272b)
SUMMARY: AddressSanitizer: 918 byte(s) leaked in 10 allocation(s).
FAIL: crypto_testdriver
From 02d4c4d8444188bdf32a054171ea7e20cc7c12ff Mon Sep 17 00:00:00 2001
From: Arne Schwabe <a...@rfc2549.org>
Date: Thu, 11 Aug 2022 19:27:12 +0200
Subject: [PATCH] Add wolfSSL to github actions
I just want to see the world burn a little bit
Signed-off-by: Arne Schwabe <a...@rfc2549.org>
---
.github/workflows/build.yaml | 42 ++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 2a9a4e946..9c640cc7f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -34,6 +34,48 @@ jobs:
- name: Set job status
run: test ! -s uncrustify-changes.patch
working-directory: openvpn
+ wolfssl:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-20.04]
+ ssllib: [wolfssl]
+
+ name: "gcc - ${{matrix.os}} - ${{matrix.ssllib}}"
+
+ runs-on: ${{matrix.os}}
+ steps:
+ - name: Install dependencies
+ run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev
liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils libtool
automake autoconf libmbedtls-dev pkg-config libcap-ng-dev
+ - name: "wolfSSL: checkout"
+ uses: actions/checkout@v3
+ with:
+ path: wolfssl
+ repository: wolfSSL/wolfssl
+ - name: "wolfSSL: autoconf"
+ run: autoreconf -fvi
+ working-directory: wolfssl
+ - name: "wolfSSL: configure"
+ run: ./configure --enable-openvpn
+ working-directory: wolfssl
+ - name: "wolfSSL: make all"
+ run: make -j3
+ working-directory: wolfssl
+ - name: "wolfSSL: make install"
+ run: sudo make install
+ working-directory: wolfssl
+ - name: "ldconfig"
+ run: sudo ldconfig
+ - name: Checkout OpenVPN
+ uses: actions/checkout@v3
+ - name: autoconf
+ run: autoreconf -fvi
+ - name: configure
+ run: CFLAGS="-fsanitize=address -fno-omit-frame-pointer -O2" CC=clang
./configure --with-crypto-library=${{matrix.ssllib}}
+ - name: make all
+ run: make -j3
+ - name: make check
+ run: make check
mingw:
strategy:
--
2.32.1 (Apple Git-133)
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel