llvm-project/compiler-rt/test/tsan/Linux
Alexander Potapenko be77afe43d tsan: Add a missing disable_sanitizer_instrumentation attribute
Turns out the test was working by accident: we need to ensure
TSan instrumentation is not called from the fork() hook, otherwise the
tool will deadlock. Previously it worked because alloc_free_blocks() got
inlined into __tsan_test_only_on_fork(), but it cannot always be the
case.

Adding __attribute__((disable_sanitizer_instrumentation)) will prevent
TSan from instrumenting alloc_free_blocks().

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D120050
2022-02-17 15:34:41 +01:00
..
check_memcpy.c [compiler-rt][test] Add shared_unwind requirement 2021-10-06 11:10:36 -07:00
check_preinit.cpp
clockwait_double_lock.c [tsan] Add pthread_cond_clockwait interceptor 2020-11-18 14:39:19 -08:00
clone_deadlock.cpp tsan: enable clone interceptor only on Linux 2021-11-11 19:27:47 +01:00
clone_setns.cpp tsan: ignore some errors in the clone_setns test 2021-11-12 14:12:36 +01:00
dlopen_static_tls.cpp tsan: deflake dlopen_static_tls.cpp 2021-12-13 12:01:40 +01:00
double_race.cpp tsan: don't instrument runtime callbacks in tests 2021-10-06 08:44:04 +02:00
fork_deadlock.cpp tsan: Add a missing disable_sanitizer_instrumentation attribute 2022-02-17 15:34:41 +01:00
fork_multithreaded4.cpp tsan: add another fork deadlock test 2021-11-24 13:25:53 +01:00
fork_syscall.cpp tsan: add a simple syscall test 2021-05-12 06:42:11 +02:00
lit.local.cfg.py
mutex_robust.cpp
mutex_robust2.cpp
pie_no_aslr.cpp
sethostent.cpp tsan: fix crash during thread exit 2021-11-16 16:43:09 +01:00
syscall.cpp tsan: fix latent race size bug in test 2021-07-30 11:39:26 +02:00
syscall.h tsan: fix syscall test on aarch64 2021-05-12 09:00:51 +02:00
thread_timedjoin.c
thread_tryjoin.c
user_fopen.cpp
user_malloc.cpp