llvm-project/compiler-rt/lib/sanitizer_common
Sergey Matveev 89bcec8117 [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address.
Instead of using arch_prctl(ARCH_GET_FS), read the address from the
tread descriptor itself. This lets us avoid sandboxing issues. Also,
GetThreadStackAndTls() can now be implemented on i386.

llvm-svn: 182853
2013-05-29 13:07:42 +00:00
..
scripts [lsan] Convert the remaining LSan tests to output tests. 2013-05-29 10:12:37 +00:00
tests [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address. 2013-05-29 13:07:42 +00:00
CMakeLists.txt [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part. 2013-05-29 12:11:43 +00:00
Makefile.mk
sanitizer_allocator.cc [sanitizer] Use raw check in internal allocator to prevent self-deadlocks. Try to fix Windows build. 2013-05-29 10:41:53 +00:00
sanitizer_allocator.h [sanitizer] factor out ByteMap from SizeClassAllocator32 so that it can be later replaced with a more memory-efficient implementation on 64-bit. 2013-05-20 07:29:21 +00:00
sanitizer_allocator_internal.h [sanitizer] Use raw check in internal allocator to prevent self-deadlocks. Try to fix Windows build. 2013-05-29 10:41:53 +00:00
sanitizer_atomic.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
sanitizer_atomic_clang.h [Sanitizer] Add basic test for atomic_compare_exchange implementation 2013-03-25 08:48:16 +00:00
sanitizer_atomic_msvc.h [ASan] Rename a atomic_compare_exchange_strong parameter to avoid a compiler warning 2013-05-23 11:40:51 +00:00
sanitizer_common.cc [nolibc] Move all platforms to internal_getpid. 2013-05-17 16:56:53 +00:00
sanitizer_common.h Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator. 2013-05-29 09:15:39 +00:00
sanitizer_common_interceptors.inc [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size. 2013-05-29 12:33:31 +00:00
sanitizer_common_interceptors_scanf.inc [sanitizer] More accurate scanf parsing without GNU extensions. 2013-02-12 14:29:34 +00:00
sanitizer_common_libcdep.cc [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate library 2013-05-17 16:17:19 +00:00
sanitizer_common_syscalls.inc [sanitizer] Fix lint. 2013-04-22 13:28:26 +00:00
sanitizer_flags.cc [asan] Common flags in ASan. 2013-05-06 11:27:58 +00:00
sanitizer_flags.h [asan] Common flags in ASan. 2013-05-06 11:27:58 +00:00
sanitizer_internal_defs.h [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_lfstack.h [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
sanitizer_libc.cc Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator. 2013-05-29 09:15:39 +00:00
sanitizer_libc.h [nolibc] Move all platforms to internal_getpid. 2013-05-17 16:56:53 +00:00
sanitizer_linux.cc [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part. 2013-05-29 12:11:43 +00:00
sanitizer_linux.h [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address. 2013-05-29 13:07:42 +00:00
sanitizer_linux_libcdep.cc [sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address. 2013-05-29 13:07:42 +00:00
sanitizer_list.h asan/tsan: fix bug in list implementation 2013-01-11 10:15:13 +00:00
sanitizer_mac.cc [nolibc] Move GetPageSize to the individual platforms. 2013-05-20 17:05:29 +00:00
sanitizer_mutex.h [Sanitizer] Add default constructor for BlockingMutex 2013-03-14 13:30:56 +00:00
sanitizer_placement_new.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
sanitizer_platform.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
sanitizer_platform_interceptors.h [sanitizer] Intercept getpeername. 2013-05-29 11:49:25 +00:00
sanitizer_platform_limits_posix.cc [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size. 2013-05-29 12:33:31 +00:00
sanitizer_platform_limits_posix.h [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size. 2013-05-29 12:33:31 +00:00
sanitizer_posix.cc [nolibc] Move libc-dependent sanitizer_posix.cc code to sanitizer_posix_libcdep.cc. 2013-05-21 10:27:07 +00:00
sanitizer_posix_libcdep.cc [nolibc] Move libc-dependent sanitizer_posix.cc code to sanitizer_posix_libcdep.cc. 2013-05-21 10:27:07 +00:00
sanitizer_printf.cc [nolibc] Move all platforms to internal_getpid. 2013-05-17 16:56:53 +00:00
sanitizer_procmaps.h [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_quarantine.h Fix MSVC warnings at the -W2 level 2013-05-29 12:03:49 +00:00
sanitizer_report_decorator.h [UBSan] Use common report decorator to print colorful diagnostics in UBSan, and be more consistent w/ Printf/RawWrite 2013-02-27 12:58:24 +00:00
sanitizer_stackdepot.cc [asan] asan_allocator2: by default use the StackDepot to store the stack traces instead of storing them in the redzones 2012-12-26 06:30:02 +00:00
sanitizer_stackdepot.h [sanitizer] Further split private and public sanitizer headers. 2013-01-30 13:12:08 +00:00
sanitizer_stacktrace.cc Use an address-of operator here to silence an MSVC warning. 2013-05-27 16:02:19 +00:00
sanitizer_stacktrace.h [sanitizer] Move GetStackTrace from ASan to sanitizer_common. 2013-05-08 12:45:55 +00:00
sanitizer_stoptheworld.h [libsanitizer] Add register dumping support to SuspendedThreadsList. 2013-04-01 13:36:42 +00:00
sanitizer_stoptheworld_linux_libcdep.cc [nolibc] Move stoptheworld to RTSanitizerCommonLibc. 2013-05-21 11:38:39 +00:00
sanitizer_symbolizer.h [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part. 2013-05-29 12:11:43 +00:00
sanitizer_symbolizer_itanium.cc [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines 2013-04-03 07:24:35 +00:00
sanitizer_symbolizer_libcdep.cc Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator. 2013-05-29 09:15:39 +00:00
sanitizer_symbolizer_linux.cc [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part. 2013-05-29 12:11:43 +00:00
sanitizer_symbolizer_linux_libcdep.cc [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part. 2013-05-29 12:11:43 +00:00
sanitizer_symbolizer_mac.cc [ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every platform except Linux (because we don't support sandboxing anywhere else yet) 2013-05-23 11:53:36 +00:00
sanitizer_symbolizer_win.cc [ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every platform except Linux (because we don't support sandboxing anywhere else yet) 2013-05-23 11:53:36 +00:00
sanitizer_syscall_generic.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_syscall_linux_x86_64.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_thread_registry.cc Fix MSVC warnings at the -W2 level 2013-05-29 12:03:49 +00:00
sanitizer_thread_registry.h [sanitizer] Move FindThreadByOSIdLocked from lsan to sanitizer_common. 2013-05-27 10:35:51 +00:00
sanitizer_win.cc [nolibc] Move all platforms to internal_getpid. 2013-05-17 16:56:53 +00:00