From 860b6d37e5893e725ad3e324ba14ee908354eba9 Mon Sep 17 00:00:00 2001 From: Mikhail Koliada <88318005+mikhailkoliada@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:01:05 +0100 Subject: [PATCH] Decrease vm.mmap_rnd_bit to prevent ASLR ASAN issues [jes: to allow the ASAN/fuzz jobs to succeed, we need to take extra steps for a couple of days due to a change of configuration in the kernel version used in the GitHub Actions runner images.] Based-on: https://github.com/actions/runner-images/pull/9513 Signed-off-by: Johannes Schindelin --- ci/lib.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/lib.sh b/ci/lib.sh index 5ae7fe71c1d241..2e9b815bb032df 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -251,6 +251,13 @@ then GIT_TEST_OPTS="--github-workflow-markup" JOBS=10 + + case "$jobname,$GITHUB_JOB" in + linux*-leaks,*|linux*asan*|*,fuzz*) + # https://github.com/actions/runner-images/issues/9491 + sudo sysctl vm.mmap_rnd_bits=28 + ;; + esac elif test true = "$GITLAB_CI" then CI_TYPE=gitlab-ci