summaryrefslogtreecommitdiff
path: root/test/hwasan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-01-10 19:36:10 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-01-10 19:36:10 +0000
commit6276041e3a1050bed303df554cfc58fd63b2c1e5 (patch)
tree68150f7d2ad71578c50ba7ad411e7780df848b76 /test/hwasan
parentd446956ab161e5cbfd2df8de5eeac3abba6d0d9f (diff)
[hwasan] An option to disable tag randomization.
Summary: Avoid flaky test failures by by using a monotonic number sequence of heap tags. Does not affect stack tags: the way we generate those guarantees uniqueness for at least 30-something first allocas in any function, as well as the UAR tag. Reviewers: alekseyshl, kcc Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D41882 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@322214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/hwasan')
-rw-r--r--test/hwasan/lit.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/hwasan/lit.cfg b/test/hwasan/lit.cfg
index 4f099af5b..07e11f75e 100644
--- a/test/hwasan/lit.cfg
+++ b/test/hwasan/lit.cfg
@@ -18,7 +18,7 @@ def build_invocation(compile_flags):
config.substitutions.append( ("%clang_hwasan ", build_invocation(clang_hwasan_cflags)) )
config.substitutions.append( ("%clangxx_hwasan ", build_invocation(clang_hwasan_cxxflags)) )
-default_hwasan_opts_str = ':'.join(['disable_allocator_tagging=1'] + config.default_sanitizer_opts)
+default_hwasan_opts_str = ':'.join(['disable_allocator_tagging=1', 'random_tags=0'] + config.default_sanitizer_opts)
if default_hwasan_opts_str:
config.environment['HWASAN_OPTIONS'] = default_hwasan_opts_str
default_hwasan_opts_str += ':'