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
This commit is contained in:
Frantisek Sumsal 2024-03-12 14:49:55 +01:00 committed by Luca Boccassi
parent 50a38492c6
commit b7c7498de8
2 changed files with 6 additions and 0 deletions

View 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

View 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