Skip to content

Commit abd7449

Browse files
authored
Merge pull request #7340 from JacobBarthelmeh/github_tests
workaround for Ubuntu runner, high entropy + ASLR
2 parents 99dd8a3 + 5106cb1 commit abd7449

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/krb5.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ jobs:
1111
# This should be a safe limit for the tests to run.
1212
timeout-minutes: 5
1313
steps:
14+
- name: workaround high-entropy ASLR
15+
# not needed after either an update to llvm or runner is done
16+
run: sudo sysctl vm.mmap_rnd_bits=28
17+
1418
- name: Build wolfSSL
1519
uses: wolfSSL/actions-build-autotools-project@v1
1620
with:
1721
path: wolfssl
18-
configure: --enable-krb CFLAGS='-fsanitize=address'
22+
configure: --enable-krb CC='gcc -fsanitize=address'
1923
install: true
2024

2125
- name: Upload built lib
@@ -61,6 +65,10 @@ jobs:
6165
run: |
6266
patch -p1 < $GITHUB_WORKSPACE/osp/krb5/Patch-for-Kerberos-5-${{ matrix.ref }}.patch
6367
68+
- name: workaround high-entropy ASLR
69+
# not needed after either an update to llvm or runner is done
70+
run: sudo sysctl vm.mmap_rnd_bits=28
71+
6472
- name: Build krb5
6573
working-directory: ./krb5/src
6674
run: |

.github/workflows/nginx.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ jobs:
174174
run: |
175175
echo "nginx_c_flags=-O0" >> $GITHUB_ENV
176176
177+
- name: workaround high-entropy ASLR
178+
# not needed after either an update to llvm or runner is done
179+
run: sudo sysctl vm.mmap_rnd_bits=28
180+
177181
- name: Build nginx with sanitizer
178182
working-directory: nginx
179183
run: |
@@ -203,4 +207,4 @@ jobs:
203207
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/build-dir/lib \
204208
TMPDIR=$GITHUB_WORKSPACE TEST_NGINX_BINARY=../nginx/objs/nginx \
205209
prove ${{ matrix.sanitize-ok }}
206-
210+

.github/workflows/openvpn.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ jobs:
5050
linux-libc-dev man2html libcmocka-dev python3-docutils \
5151
libtool automake autoconf libnl-genl-3-dev libnl-genl-3-200
5252
53+
- name: workaround high-entropy ASLR
54+
# not needed after either an update to llvm or runner is done
55+
run: sudo sysctl vm.mmap_rnd_bits=28
56+
5357
- if: ${{ matrix.ref != 'master' }}
5458
name: Build and test openvpn with fsanitize
5559
run: |
56-
echo 'extra_c_flags=CFLAGS="-fsanitize=address -fno-omit-frame-pointer -O2"' >> $GITHUB_ENV
60+
echo 'extra_c_flags=CC="gcc -fsanitize=address" CFLAGS="-fno-omit-frame-pointer -O2"' >> $GITHUB_ENV
5761
5862
- name: Build and test openvpn
5963
uses: wolfSSL/actions-build-autotools-project@v1

0 commit comments

Comments
 (0)