From 8d5c2cca38b43d1874e663ad0de54fc63c8cf12d 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 2df63aa95e05ab..c69d32c6325041 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