[compiler-rt] 912506b - [test][hwasan] Add `__hwasan_enable_allocator_tagging`

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 23:04:32 PST 2023


Author: Vitaly Buka
Date: 2023-12-12T23:03:36-08:00
New Revision: 912506b75d8a508353a701c230e73ca45a253161

URL: https://github.com/llvm/llvm-project/commit/912506b75d8a508353a701c230e73ca45a253161
DIFF: https://github.com/llvm/llvm-project/commit/912506b75d8a508353a701c230e73ca45a253161.diff

LOG: [test][hwasan] Add `__hwasan_enable_allocator_tagging`

It's required for hwasan `aliasing` mode.

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
index cbdf9ee00cff5e..b9a0ab3f32558c 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c
@@ -58,6 +58,10 @@ NOSAN static void *inchild(void *arg) {
 }
 
 int main(void) {
+#if __has_feature(hwaddress_sanitizer)
+  __hwasan_enable_allocator_tagging();
+#endif
+
   pid_t pid;
 
   pthread_barrier_init(&bar, NULL, 2);


        


More information about the llvm-commits mailing list