Skip to content

Commit

Permalink
Fix false positives from ThreadSanitizer
Browse files Browse the repository at this point in the history
Since Linux Kernel 6.5 we are getting false positives from the ci,
lower the ALSR entropy to disable ALSR, which works as a temporary
workaround.

google/sanitizers#1716
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056762

closes #5115

No functional change
  • Loading branch information
Disservin committed Mar 14, 2024
1 parent abd8239 commit fb07281
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/instrumented.sh
Expand Up @@ -8,6 +8,13 @@ error()
}
trap 'error ${LINENO}' ERR

# Since Linux Kernel 6.5 we are getting false positives from the ci,
# lower the ALSR entropy to disable ALSR, which works as a temporary workaround.
# https://github.com/google/sanitizers/issues/1716
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2056762
sudo sysctl -w vm.mmap_rnd_bits=28


# define suitable post and prefixes for testing options
case $1 in
--valgrind)
Expand Down

0 comments on commit fb07281

Please sign in to comment.