From: Frantisek Sumsal Date: Tue, 12 Mar 2024 13:49:55 +0000 (+0100) Subject: ci: reduce ASLR entropy X-Git-Tag: v256-rc1~564 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c7498de814b1e9825b43c28e307a7f0af8ffd2;p=thirdparty%2Fsystemd.git 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 --- diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index f91ac030663..95d993ec421 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 d2164cc5763..2c0cbba356e 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