Skip to content

Commit cf337a6

Browse files
authored
Merge pull request DeusData#2962 from DeusData/fix/msan-lane-aslr
ci(msan): lower mmap ASLR entropy on the host before the MSan suite
2 parents ff812bf + 5987629 commit cf337a6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/_test.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,14 @@ jobs:
460460
run: scripts/ci/msan-lane.sh build
461461

462462
- name: MSan suite (exclusions per scripts/msan.sh)
463-
run: scripts/ci/msan-lane.sh run
463+
# Reduce mmap ASLR entropy on the host first, as the TSan leg does: with
464+
# the runner kernel's higher default the MSan runtime tries to re-exec
465+
# itself with ADDR_NO_RANDOMIZE, which the container's seccomp profile
466+
# refuses, and it aborts ("CHECK failed: msan_linux.cpp:193 ...
467+
# personality") before any test runs. The container shares this kernel.
468+
run: |
469+
sudo sysctl -w vm.mmap_rnd_bits=28 || true
470+
scripts/ci/msan-lane.sh run
464471
465472
# macOS leak coverage. LeakSanitizer runs by default under ASan on Linux, so
466473
# test-unix's ubuntu legs have always had it; on macOS it is off by default

0 commit comments

Comments
 (0)