diff --git a/.github/actions/linux-build/action.yml b/.github/actions/linux-build/action.yml index 418ace362a..2db9153e74 100644 --- a/.github/actions/linux-build/action.yml +++ b/.github/actions/linux-build/action.yml @@ -44,6 +44,13 @@ inputs: runs: using: "composite" steps: + # taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917 + - name: Fix kernel mmap rnd bits + shell: bash + # 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 dependencies shell: bash run: | diff --git a/.github/actions/linux-run_examples/action.yml b/.github/actions/linux-run_examples/action.yml index fbbf75f88e..a46f0d01ad 100644 --- a/.github/actions/linux-run_examples/action.yml +++ b/.github/actions/linux-run_examples/action.yml @@ -7,6 +7,13 @@ inputs: runs: using: "composite" steps: + # taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917 + - name: Fix kernel mmap rnd bits + shell: bash + # 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 Dependencies shell: bash run: | diff --git a/.github/actions/linux-test/action.yml b/.github/actions/linux-test/action.yml index 2ae4d5c860..46c7c5f73b 100644 --- a/.github/actions/linux-test/action.yml +++ b/.github/actions/linux-test/action.yml @@ -23,6 +23,13 @@ inputs: runs: using: "composite" steps: + # taken from https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917 + - name: Fix kernel mmap rnd bits + shell: bash + # 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 Dependencies shell: bash run: |