From aaa988fbf9c2a6e773ae7ecadc70e92325d60b65 Mon Sep 17 00:00:00 2001 From: Dennis Bonke Date: Mon, 18 Mar 2024 13:59:04 +0100 Subject: [PATCH] ci: Workaround GitHub actions image issues See https://github.com/actions/runner-images/issues/9524 --- .github/workflows/abidiff.yml | 5 +++++ .github/workflows/ci.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/abidiff.yml b/.github/workflows/abidiff.yml index 036a7ec17d..29f70494b3 100644 --- a/.github/workflows/abidiff.yml +++ b/.github/workflows/abidiff.yml @@ -18,6 +18,11 @@ jobs: run: shell: bash steps: + - 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 prerequisites run: | apt-get update diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8b0360dda..a6d31224f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,11 @@ jobs: container: image: ghcr.io/managarm/mlibc-crossers:latest steps: + - 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 prerequisites run: | apt-get update @@ -58,6 +63,11 @@ jobs: container: image: ghcr.io/managarm/mlibc-crossers:latest steps: + - 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 prerequisites run: | apt-get update