From f2e1ba56ec787d75a8716647a2ebe2b267fb6278 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 0a73fc7bd1c203..c3eeef76f00159 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -245,6 +245,13 @@ then GIT_TEST_OPTS="--github-workflow-markup" JOBS=10 + + case "$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