]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: reduce ASLR entropy
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 12 Mar 2024 13:49:55 +0000 (14:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 12 Mar 2024 16:17:46 +0000 (16:17 +0000)
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
.github/workflows/unit_tests.yml

index f91ac030663c17471cf5f940191ecf635cb8a407..95d993ec421fc1cfc982fb3696ce75a35ec38221 100644 (file)
@@ -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
index d2164cc5763ccbbaea5a7d1f75b285f0e68b12cc..2c0cbba356ec3bb685971610163b92a13e218fa5 100644 (file)
@@ -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