aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-03-13 18:26:31 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-03-14 18:26:31 +0100
commitd43a3d14369af59989130c0910234ff0888e46fa (patch)
tree15165594243e3311a97e17be35db0f9db9e2a771 /.github
parentb6e4162116777bf1c22119160842b47671a5a5c4 (diff)
Fix random sanitizer crashes caused by high-entropy ASLR on Ubuntu Github Runner.
* See: https://github.com/actions/runner-images/issues/9491 Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fddd9b0ac..e461b9512 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -168,6 +168,12 @@ jobs:
unzip libndpi-dev.zip
cd nDPI-dev
./autogen.sh --prefix=/usr/local --with-only-libndpi && make install
+ - name: Fix kernel mmap rnd bits on Ubuntu
+ if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64')
+ run: |
+ # Workaround for compatinility between latest kernel and sanitizer
+ # See https://github.com/actions/runner-images/issues/9491
+ sudo sysctl vm.mmap_rnd_bits=28
- name: Install Ubuntu Prerequisites
if: startsWith(matrix.os, 'ubuntu')
run: |