From 2522d2a8f7b894bcf5b73dc913b8228eadfb183d Mon Sep 17 00:00:00 2001 From: Jung-Sang Ahn Date: Wed, 20 Mar 2024 14:57:17 -0700 Subject: [PATCH] Add fix to kernel mmap rnd bit to github action script (#168) * test * github action workaround * Revert temp change --- .github/workflows/cmake.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4ff05db..504222d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -26,6 +26,12 @@ jobs: steps: - uses: actions/checkout@v2 + - 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: sudo sysctl vm.mmap_rnd_bits=28 + - name: Dependency Install shell: bash # Some projects don't allow in-source building, so create a separate build directory @@ -34,6 +40,6 @@ jobs: - name: Build and Test shell: bash - # Execute tests defined by the CMake configuration. + # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ./github_action_build.sh