From 3f94c86e545b141803db9e1e99bbb4ed6987afc4 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Mon, 18 Mar 2024 15:20:54 +0100 Subject: [PATCH] fix(ci): fixed recent asan-related CI issues. See actions/runner-images#9524 (comment) for the fix. Signed-off-by: Federico Di Pierro --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/e2e_ci.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acb5b49e71..c769fff8de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -282,6 +282,12 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 + + - name: Fix kernel mmap rnd bits + # Asan in llvm 14 provided in ubuntu 22.04 is incompatible with + # high-entropy ASLR in much newer kernels that GitHub runners are + # using leading to random crashes: https://reviews.llvm.org/D148280 + run: sudo sysctl vm.mmap_rnd_bits=28 - name: Install deps ⛓️ run: | diff --git a/.github/workflows/e2e_ci.yml b/.github/workflows/e2e_ci.yml index 860827a0f1..67ac249478 100644 --- a/.github/workflows/e2e_ci.yml +++ b/.github/workflows/e2e_ci.yml @@ -27,6 +27,12 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 + + - name: Fix kernel mmap rnd bits + # Asan in llvm 14 provided in ubuntu 22.04 is incompatible with + # high-entropy ASLR in much newer kernels that GitHub runners are + # using leading to random crashes: https://reviews.llvm.org/D148280 + run: sudo sysctl vm.mmap_rnd_bits=28 - name: Install deps ⛓️ run: |