diff --git a/.github/workflows/abidiff.yml b/.github/workflows/abidiff.yml index 036a7ec17d..13316cb360 100644 --- a/.github/workflows/abidiff.yml +++ b/.github/workflows/abidiff.yml @@ -18,6 +18,11 @@ jobs: run: shell: bash steps: + - name: Fix kernel mmap rnd bits + # 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: sysctl vm.mmap_rnd_bits=28 - name: Install prerequisites run: | apt-get update diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8b0360dda..91811b5992 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,11 @@ jobs: container: image: ghcr.io/managarm/mlibc-crossers:latest steps: + - name: Fix kernel mmap rnd bits + # 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: sysctl vm.mmap_rnd_bits=28 - name: Install prerequisites run: | apt-get update @@ -58,6 +63,11 @@ jobs: container: image: ghcr.io/managarm/mlibc-crossers:latest steps: + - name: Fix kernel mmap rnd bits + # 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: sysctl vm.mmap_rnd_bits=28 - name: Install prerequisites run: | apt-get update