From b7c7498de814b1e9825b43c28e307a7f0af8ffd2 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 12 Mar 2024 14:49:55 +0100 Subject: [PATCH] ci: reduce ASLR entropy The latest GH Action runners started using 32-bit entropy for ASLR, which makes it incompatible with llvm-14. This was fixed in later llvm releases, but these aren't available on Ubuntu Jammy (22.04). Let's reduce the ASLR entropy to 28-bit, which should make llvm happy again, until the issue is resolved. See: https://github.com/actions/runner-images/issues/9491 --- .github/workflows/build_test.yml | 3 +++ .github/workflows/unit_tests.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index f91ac03066..95d993ec42 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -34,5 +34,8 @@ jobs: steps: - name: Repository checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + # FIXME: drop once https://github.com/actions/runner-images/issues/9491 is resolved + - name: Reduce ASLR entropy + run: sudo sysctl -w vm.mmap_rnd_bits=28 - name: Build check run: .github/workflows/build_test.sh diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index d2164cc576..2c0cbba356 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -31,6 +31,9 @@ jobs: steps: - name: Repository checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + # FIXME: drop once https://github.com/actions/runner-images/issues/9491 is resolved + - name: Reduce ASLR entropy + run: sudo sysctl -w vm.mmap_rnd_bits=28 - name: Install build dependencies run: | # Drop XDG_* stuff from /etc/environment, so we don't get the user