This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch google/stable in repository compiler-rt.
from 52b72376f Creating branches/google/stable and tags/google/stable/2018-0 [...] adds f0a15bb04 [CMake] Install resource files into a share/ directory adds d446956ab Revert "[CMake] Install resource files into a share/ directory" adds 6276041e3 [hwasan] An option to disable tag randomization. adds a099b7729 [MSan] Enable use-after-dtor instrumentation by default. adds 02894dbfc Reland "Install resource files into a share/ directory" adds e3b7aea56 Revert "Install resource files into a share/ directory" adds 28af137d9 Reland "Install resource files into a share/ directory" adds 37d070890 Revert "Install resource files into a share/ directory" adds 9ebd4e4b0 [hwasan] Stack instrumentation. adds fd25fae6e lib Fuzzer FreeBSD support adds 649c2cd46 [scudo] Add SANITIZER_CXX_ABI_LIBRARY to SCUDO_DYNAMIC_LIBS adds 183c8e855 Correct the setitimer interceptor on NetBSD adds 6084adf43 [libFuzzer] Fix bug introduced in r322380 that always links -lc++. adds 7e19f4a23 Switch from Bourne shell to simply base shell to build libfuzzer adds 04fbb3145 [SanitizerCoverage][Fuchsia] Make TracePcGuardController link [...] adds 428d40eb6 Revert "[SanitizerCoverage][Fuchsia] Make TracePcGuardControl [...] adds 456e800a8 [hwasan] An LLVM flag to disable stack tag randomization. adds cc0796dba [Sanitizers, LSan, Darwin] Allow for lack of VM_MEMORY_OS_ALLOC_ONCE adds b6c53ea52 Reland "Install resource files into a share/ directory" adds 7e6115183 [hwasan] Build runtime library with -fPIC, not -fPIE. adds 80e8d9367 [libFuzzer] Support using libc++ adds ff43dd5fc cfi: Add a blacklist entry for MSVC's std::get_temporary_buff [...] adds c91431d33 [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) adds 88b81d910 Hotfix for test/asan/TestCases/alloca_constant_size.cc adds e775da2f5 Add new interceptor: acct(2) adds 3bbf11426 Revert "[libFuzzer] Support using libc++" adds 03a88ba9f Reland "[libFuzzer] Support using libc++" adds 94146226b [scudo] Limit by default the TSD pool to 2 on Android adds 47982b479 [scudo] Fix for the Scudo interface function scope adds 6ae9c03ff [Sanitizers] Make common allocator agnostic to failure handli [...] adds e82ed9abe [Sanitizers] Changes in Hwasan allocator missed in D42198. adds e52e2db35 Add new interceptors for pwcache(3)-style functions adds 9da0b3ee3 Add new interceptors: access(2), faccessat(2) adds f38deca51 Add new NetBSD interceptors: getgrouplist(3) & getgroupmembership(3) adds 5cf8b1fd2 Break a line into two lines adds 777298246 Enable sanitizer_common tests on NetBSD adds 27f906494 [scudo] Use -fsanitize=scudo rather than --whole-archive in tests adds 97adb78ea [builtins] Use FlushInstructionCache on windows on aarch64 as well adds d1d38b2a6 [XRay] [compiler-rt] fix heap overflow by computing record po [...] adds 8d059e127 Correct typo after r322829 adds e5ef80b1e Reland "Make TracePcGuardController linker-initialized" adds f531b819a [scudo] Pass SANITIZER_COMMON_LINK_FLAGS to the shared librar [...] adds 0d316e13a [sanitizer] Allow Fuchsia to use getauxval adds 7126eeb1f [TSan][MIPS] Expand sanitizer memory space to lower addresses adds 53ff2c12e Intercept accept4() on NetBSD adds 7cb30314a Support the localtime interceptor for NetBSD adds 59ecbc342 Force lit to execute the ASan and TSan tests on iOS devices s [...] adds 690f5d7fc [sanitizer] Fix syntax error introduced in r322991 adds ebdf2a759 Revert "[sanitizer] Fix syntax error introduced in r322991" adds d2855aa8a Reland "Fix syntax error introduced in r322991" adds f627ac38d [Fuzzer] Parametrize add_custom_libcxx adds 23d02f585 Revert "[Fuzzer] Parametrize add_custom_libcxx" adds a07d3e08b [compiler-rt] Implement __clear_cache() on OpenBSD/mips64 adds 7ccfd6078 Reland "[Fuzzer] Parametrize add_custom_libcxx" adds 065458866 [sanitizer] Pass the CMake compiler to custom libc++ build adds 2bcda34aa [NFC] fix trivial typos in comments adds eed59a7be [lsan] Respect log_path option in standalone LSan adds 3b42012c9 [ubsan] Disable signal handling on Android. adds 2e28adfb2 Small fixes for detect_invalid_pointer_pairs. adds 6aef87469 [PowerPC][asan] Fix asan tests to handle changed memory layouts adds ca36f1620 [ubsan] Add preinit initializer for ubsan adds 2fbd5f8be Add a new interceptor: paccept(2) adds d0c532095 [scudo] Allow for weak hooks, gated by a define adds a3840a49f Break a line into <= 80 characters adds e5e86e756 [builtins] Align addresses to cache lines in __clear_cache fo [...] adds b5dc4a980 [scudo] Remove SANITIZER_LINUX requirement for the malloc int [...] adds ebea91f91 Correct typo in TSan code adds a4d661384 [sanitizer] Implement GetNumberOfCPUs for Windows adds 6039ea1c5 [scudo] Overhaul malloc related interceptors adds 286b899df [NFC] fix trivial typos in comments and documents adds 87a6c64d8 [cmake] [compiler-rt] Call llvm_setup_rpath() when adding sha [...] adds b5ef2d8f9 [sanitizer] Update from zx_time_get to zx_clock_get adds ab55d9e96 [xray] Don't try to run XRay unit tests on Darwin adds b5f55167a [cmake] [compiler-rt] Remove duplicate CMAKE_CXX_FLAGS. adds 180c7ddfa Revert: [compiler-rt] r323626 - [cmake] [compiler-rt] Remove [...] adds 2b93db0ed tsan: deflake a test adds 3db13318d [scudo] Add support for Fuchsia OS. adds bc8316b26 [XRay] [compiler-rt] stop writing garbage in naive log records adds a9aa2e1be [scudo] Add default implementations for weak functions adds 7f6dcb2e6 [libFuzzer] Fix sizeof(ptr) bug. adds f95854ec1 [sanitizer] Add interceptors for readlinkat, name_to_handle_a [...] adds 6f72890ad [fuzzer] Update and enable libFuzzer on Fuchsia adds 0d04d5476 [sanitizer] Fix tests on Android and Darwin adds db2a14940 [sanitizer] Move readlinkat.c test from Linux to Posix adds dde86494a [XRay][compiler-rt+llvm] Update XRay register stashing semantics adds 0f69c8b59 [CMake] Remove -stdlib= which is unused when passing -nostdinc++ adds a42aefa82 Make detect_invalid_pointer_pairs option to be tristate. adds f22d2ba6f [scudo] Minor Secondary changes adds d493d265c [sanitizer] Implement NanoTime & MonotonicNanoTime for Windows adds 593182721 Update readlink.c and readlinkat.c to use larger buffers on Darwin. adds 06fb62d8d [sanitizer] Fix array sizes used for path in tests adds 5197e945a Add new interceptors: strlcpy(3) and strlcat(3) adds 67df2e367 Correct the return value of strlcat(3) in the interceptor adds 485b98533 Add new NetBSD interceptors: devname(3), devname_r(3) adds c31edaaeb Correct FileCheck usage in two newly added tests adds e255a22fb [asan] Make concurrent_overflow.cc less flaky adds f9581fb08 Use NULL instead of nullptr in invalid-pointer-pairs-compare- [...] adds 844c5235e Handle NetBSD symbol mangling devname -> __devname50 adds 363c49d86 [sanitizer] Allocator local cache improvements adds 6f859b45f [sanitizer] SizeClassMap minor improvement/correctness changes adds c823c774f [sanitizer] Revert rL324263 adds f9e5bd634 [Sanitizers, Darwin] Disable SANITIZER_SUPPORTS_WEAK_HOOKS be [...] adds 46ba4a5a8 [Fuzzer] Use Zircon's public API on Fuchsia adds 7d51e8d28 Correct a bug in GetArgsAndEnv() for NetBSD adds 57343e23f [asan] Fix filename size on linux platforms. adds e0120a0f6 Update for llvm change. adds 1ceec9ed7 Remove extra space. adds 18a0d3b3b Add space inside the regular expression. adds df07897cb Update test counter_promo_nest.c to meet llvm change adds 816aba3c5 [builtins] Workaround for infinite recursion in c?zdi2 adds 4e053fa54 [scudo] Allow options to be defined at compile time adds e54662584 [XRay] Rename Buffer.Buffer to Buffer.Data adds 8d274a021 Mark the textdomain.cc test as unsupported on BSDs adds cc0ab3fcf Correct a typo in tsan_pthread_setname_np in the FreeBSD code adds 2ad995068 [compiler-rt] Replace forkpty with posix_spawn adds d755bfd98 [sanitizer] Implement NanoTime() on Darwin adds 2d44375c5 Revert r324847, there's bot failures. adds 5603ad4d9 [sanitizer] Size class map & local cache improvements adds 0d0f9187c [sanitizer] Implement GetRSS on Windows adds cf74a02bf [libFuzzer] Set -experimental_len_control=1000 as default. adds 9815d7b45 [sanitizer] Fix flakiness in the tests adds 1f9dab592 Add new interceptor: lstat(2) adds f92619e1c Add NetBSD syscall hooks skeleton in sanitizers adds cff1a203e Prevent recursive MSan interceptors in fgets(3) adds 9719bd128 Prevent recursive MSan interceptors in strftime(3) like functions adds 9a797cae1 Teach sanitizer about NetBSD specific ioctl(2) calls adds 8dde6e6cf Add Xray instrumentation support to FreeBSD adds 518205e13 Enable syscall-specific functions in TSan/NetBSD adds 236dbb3c3 Enable test/asan for NetBSD adds ae2be2c20 Implement a large part of NetBSD syscalls of netbsd_syscall_hooks.h adds f9f8aaa68 Try to unbreak Darwin after XRay/FreeBSD commit adds 07b262bc1 [TSan] Fix static TLS boundaries calculations in __tls_get_ad [...] adds aa8e12a1b [asan] Add "arm64" into the list of 64-bit architectures adds 6a42ba835 Revert part of SVN r. 325240 in lit.cfg adds f43b9b62e Reintroduce FreeBSD support in test/xray adds e7fe297b7 Add initial XRay support for NetBSD adds 036ea9015 Recognize all NetBSD architectures in UBSan adds 0fcd67b94 Stop intercepting forkpty(3) and openpty(3) on NetBSD adds e55a0bdc6 Add new interceptor: fgetln(3) adds 409d44eac Add new interceptor: strmode(3) adds a28e4dd99 Msan, fixing DTLS_on_tls_get_addr signature empty implementation adds 6033e88e4 Fix racy msan test adds b19000fa6 [hwasan] Fix inline instrumentation. adds deef7d330 [sanitizer] Allow to set SANITIZER_CAN_USE_PREINIT_ARRAY externally adds 9665582c0 Xray instrumentation / enabling more tests adds 7f21db7a9 Remove empty files adds 6817f0769 Try to fix the syntax in test adds d84e57a96 [libFuzzer] Include TEMP_MAX_LEN in Fuzzer::PrintStats. adds 326a82bf8 [Sanitizers] Increase allocated chunk limit for LargeMmapAllocator adds afd1691b6 Correct ctype(3) functions with NLS on NetBSD adds a8e9075ee [cfi] Lazy initialization of CFI interceptors adds 241e7ddf9 [ubsan-minimal] Fix the ubsan_minimal debug build (COMPILER_R [...] adds 2c3261fe1 Skip two more ioctl interceptors for NetBSD adds fbef9e077 [scudo] Make some tests less Linux-y adds e89072679 [MSan] Print current stack on CHECK violation adds 7049a1add [asan] Be more careful and verbose when allocating dynamic sh [...] adds 4a681734b Fix-up for r326106: FindAvailableMemoryRange needs a nullptr [...] adds 8022cb9fc [asan] Intercept std::rethrow_exception indirectly adds fc6bcc38c Re-land "Emit proper CodeView when -gcodeview is passed witho [...] adds 1ff8ec9d0 Fix which Darwin versions have ObjC runtime with full subscri [...] adds 872879f43 [asan] Fix build for Android adds a7b4abf1d Fix build for iOS/ARM ("__Unwind_RaiseException" is not avail [...] adds 14d860750 [asan] Enable ASAN_INTERCEPT___CXA_THROW for x86 Android adds cb26bd2b6 Add new interceptors: getttyent(3) family adds 2332b74dc Add new interceptors: getprotoent(3) family adds a3d3defff Add new interceptors: getnetent(3) family adds e1f8adc18 [scudo] Introduce Chunk::getHeaderSize adds 39423f4c6 Disable ASan exceptions on NetBSD adds 9727fe027 [RISCV] Force enable int128 for compiling long double routines adds cb51fdb0a [profile] Test the exported symbol set for empty programs adds 9008dc9a4 [PATCH] [compiler-rt, RISCV] Support builtins for RISC-V adds 72f23c7ea OpenBSD UBsan support / ubsan part adds 673953878 OpenBSD Ubsan support / interception adds eaf568bd2 Adding Msan support to FreeBSD adds d7c673142 OpenBSD UBsan support, cmake part adds 453f0a028 Sanitiser common, using u64 type for GetTid on posix systems adds 19e82ec81 [msan] Restrict -ftls-model=initial-exec to FreeBSD adds d40246d4b OpenBSD UBsan support / common adds b4e600115 OpenBSD UBsan support enabling SANITIZER_OPENBSD widely adds 64555d366 Support OpenBSD in common interceptors adds cab1663ed Hotfix for D44035 adds 6f21d22a1 Revert D44035 adds a0c344366 Remove obsolete ptrace(2) operations from NetBSD adds 18248228f Fix NetBSD 32-bit build adds 4507b0d0e Remove more references to ptrace_pt_{g,s}et_sigmask adds 115b7e9a6 [sanitizer] Fix the return type for GetTid in Fuchsia implementation adds 6a52b697d OpenBSD sanitizer common, define RLIMIT_AS constant new 6d2bda7ef Creating branches/google/stable and tags/google/stable/2018-0 [...]
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: cmake/Modules/AddCompilerRT.cmake | 41 +- cmake/Modules/CompilerRTUtils.cmake | 9 + cmake/base-config-ix.cmake | 16 +- cmake/builtin-config-ix.cmake | 4 +- cmake/config-ix.cmake | 19 +- include/CMakeLists.txt | 1 + include/sanitizer/netbsd_syscall_hooks.h | 4734 ++++++++++++++++++++ include/xray/xray_records.h | 2 +- lib/asan/asan_allocator.cc | 18 +- lib/asan/asan_flags.cc | 5 +- lib/asan/asan_flags.inc | 6 +- lib/asan/asan_interceptors.cc | 43 + lib/asan/asan_interceptors.h | 15 +- lib/asan/asan_linux.cc | 3 +- lib/asan/asan_mac.cc | 28 +- lib/asan/asan_report.cc | 6 +- lib/asan/asan_win.cc | 4 +- lib/asan/tests/CMakeLists.txt | 3 + lib/asan/tests/asan_test.cc | 5 + lib/builtins/CMakeLists.txt | 12 + lib/builtins/clear_cache.c | 17 +- lib/builtins/clzdi2.c | 6 + lib/builtins/ctzdi2.c | 6 + lib/builtins/int_types.h | 2 +- lib/builtins/riscv/mulsi3.S | 28 + lib/cfi/cfi.cc | 21 +- lib/cfi/cfi_blacklist.txt | 4 +- lib/dfsan/CMakeLists.txt | 7 +- lib/esan/esan_interceptors.cpp | 1 + lib/fuzzer/CMakeLists.txt | 38 + lib/fuzzer/FuzzerDefs.h | 14 +- lib/fuzzer/FuzzerDriver.cpp | 2 +- lib/fuzzer/FuzzerExtFunctionsWeak.cpp | 4 +- lib/fuzzer/FuzzerExtraCounters.cpp | 2 +- lib/fuzzer/FuzzerFlags.def | 5 +- lib/fuzzer/FuzzerInterface.h | 22 +- lib/fuzzer/FuzzerLoop.cpp | 16 +- lib/fuzzer/FuzzerMain.cpp | 2 +- lib/fuzzer/FuzzerMutate.cpp | 2 +- lib/fuzzer/FuzzerOptions.h | 2 +- lib/fuzzer/FuzzerUtilFuchsia.cpp | 74 +- lib/fuzzer/FuzzerUtilLinux.cpp | 4 +- lib/fuzzer/FuzzerUtilPosix.cpp | 2 +- lib/fuzzer/afl/afl_driver.cpp | 10 +- lib/fuzzer/build.sh | 2 +- lib/fuzzer/tests/CMakeLists.txt | 20 +- lib/hwasan/CMakeLists.txt | 2 +- lib/hwasan/hwasan.cc | 22 +- lib/hwasan/hwasan.h | 4 +- lib/hwasan/hwasan_allocator.cc | 14 +- lib/hwasan/hwasan_flags.inc | 4 + lib/hwasan/hwasan_interceptors.cc | 10 + lib/hwasan/hwasan_interface_internal.h | 6 + lib/hwasan/hwasan_linux.cc | 33 +- lib/hwasan/hwasan_thread.cc | 16 +- lib/interception/interception.h | 6 +- lib/interception/interception_linux.cc | 6 +- lib/interception/interception_linux.h | 8 +- lib/lsan/lsan.cc | 2 + lib/lsan/lsan_allocator.cc | 10 +- lib/lsan/lsan_common_mac.cc | 9 +- lib/msan/CMakeLists.txt | 7 +- lib/msan/msan.cc | 11 + lib/msan/msan.h | 13 +- lib/msan/msan_allocator.cc | 14 +- lib/msan/msan_interceptors.cc | 33 +- lib/msan/tests/CMakeLists.txt | 8 +- lib/msan/tests/msan_test.cc | 7 + lib/profile/InstrProfData.inc | 2 +- lib/sanitizer_common/CMakeLists.txt | 4 + lib/sanitizer_common/sanitizer_allocator.cc | 13 +- .../sanitizer_allocator_combined.h | 12 +- .../sanitizer_allocator_internal.h | 7 +- .../sanitizer_allocator_local_cache.h | 86 +- .../sanitizer_allocator_primary32.h | 31 +- .../sanitizer_allocator_secondary.h | 79 +- .../sanitizer_allocator_size_class_map.h | 31 +- lib/sanitizer_common/sanitizer_common.h | 2 +- .../sanitizer_common_interceptors.inc | 603 ++- .../sanitizer_common_interceptors_ioctl.inc | 4 + lib/sanitizer_common/sanitizer_coverage_fuchsia.cc | 12 +- lib/sanitizer_common/sanitizer_errno.h | 2 +- lib/sanitizer_common/sanitizer_flags.inc | 5 +- lib/sanitizer_common/sanitizer_fuchsia.cc | 6 +- lib/sanitizer_common/sanitizer_getauxval.h | 7 +- .../sanitizer_interceptors_ioctl_netbsd.inc | 1489 ++++++ lib/sanitizer_common/sanitizer_internal_defs.h | 29 +- lib/sanitizer_common/sanitizer_libignore.cc | 3 +- lib/sanitizer_common/sanitizer_linux.cc | 33 +- lib/sanitizer_common/sanitizer_mac.cc | 28 +- lib/sanitizer_common/sanitizer_openbsd.cc | 101 + lib/sanitizer_common/sanitizer_platform.h | 15 +- .../sanitizer_platform_interceptors.h | 35 +- .../sanitizer_platform_limits_netbsd.cc | 1942 +++++++- .../sanitizer_platform_limits_netbsd.h | 1970 +++++++- ...bsd.cc => sanitizer_platform_limits_openbsd.cc} | 120 +- .../sanitizer_platform_limits_openbsd.h | 382 ++ .../sanitizer_platform_limits_posix.h | 20 +- .../sanitizer_platform_limits_solaris.h | 12 + lib/sanitizer_common/sanitizer_posix.h | 1 + lib/sanitizer_common/sanitizer_posix_libcdep.cc | 4 +- lib/sanitizer_common/sanitizer_stacktrace.h | 4 +- lib/sanitizer_common/sanitizer_syscall_generic.inc | 3 +- lib/sanitizer_common/sanitizer_syscalls_netbsd.inc | 3786 ++++++++++++++++ lib/sanitizer_common/sanitizer_tls_get_addr.cc | 3 +- lib/sanitizer_common/sanitizer_win.cc | 28 +- .../symbolizer/scripts/build_symbolizer.sh | 2 +- .../tests/sanitizer_allocator_test.cc | 15 +- lib/sanitizer_common/tests/sanitizer_test_utils.h | 8 +- lib/scudo/CMakeLists.txt | 10 +- lib/scudo/scudo_allocator.cpp | 46 +- lib/scudo/scudo_allocator.h | 19 +- lib/scudo/scudo_allocator_secondary.h | 24 +- lib/scudo/scudo_flags.cpp | 20 +- lib/scudo/scudo_interceptors.cpp | 75 - lib/scudo/scudo_interface_internal.h | 3 + lib/scudo/scudo_malloc.cpp | 83 + lib/scudo/scudo_platform.h | 12 +- lib/tsan/CMakeLists.txt | 5 +- lib/tsan/rtl/tsan_interceptors.cc | 18 +- lib/tsan/rtl/tsan_mman.cc | 14 +- lib/tsan/rtl/tsan_platform.h | 28 +- lib/ubsan/CMakeLists.txt | 1 + lib/ubsan/ubsan_flags.cc | 13 +- ...ndalone.cc => ubsan_init_standalone_preinit.cc} | 22 +- lib/ubsan/ubsan_platform.h | 11 +- lib/ubsan/ubsan_signals_standalone.cc | 23 +- lib/ubsan_minimal/ubsan_minimal_handlers.cc | 13 + lib/xray/tests/CMakeLists.txt | 7 +- lib/xray/tests/unit/buffer_queue_test.cc | 8 +- lib/xray/tests/unit/fdr_logging_test.cc | 11 +- lib/xray/xray_buffer_queue.cc | 8 +- lib/xray/xray_buffer_queue.h | 2 +- lib/xray/xray_fdr_logging.cc | 6 +- lib/xray/xray_fdr_logging_impl.h | 23 +- lib/xray/xray_flags.cc | 4 +- lib/xray/xray_flags.inc | 2 +- lib/xray/xray_inmemory_log.cc | 39 +- lib/xray/xray_trampoline_x86_64.S | 90 +- lib/xray/xray_x86_64.cc | 30 +- lib/xray/xray_x86_64.inc | 5 +- test/asan/CMakeLists.txt | 9 +- test/asan/TestCases/Posix/asan-sigbus.cpp | 4 + test/asan/TestCases/Posix/concurrent_overflow.cc | 7 +- test/asan/TestCases/Posix/coverage.cc | 2 +- .../Posix/invalid-pointer-pairs-threads.cc | 4 +- test/asan/TestCases/Posix/ioctl.cc | 4 + test/asan/TestCases/alloca_constant_size.cc | 7 +- test/asan/TestCases/alloca_loop_unpoisoning.cc | 4 + test/asan/TestCases/alloca_vla_interact.cc | 4 + test/asan/TestCases/debug_double_free.cc | 3 + test/asan/TestCases/debug_ppc64_mapping.cc | 18 +- test/asan/TestCases/debug_report.cc | 3 + test/asan/TestCases/intercept-rethrow-exception.cc | 64 + .../invalid-pointer-pairs-compare-errors.cc | 6 +- ...ss.cc => invalid-pointer-pairs-compare-null.cc} | 29 +- .../invalid-pointer-pairs-compare-success.cc | 2 +- .../invalid-pointer-pairs-subtract-errors.cc | 2 +- .../invalid-pointer-pairs-subtract-success.cc | 4 +- test/asan/TestCases/malloc-no-intercept.c | 5 + test/asan/lit.cfg | 9 +- test/builtins/CMakeLists.txt | 5 + test/builtins/Unit/riscv/mulsi3_test.c | 119 + test/fuzzer/CMakeLists.txt | 67 +- test/fuzzer/CleanseTest.cpp | 2 +- test/fuzzer/TraceMallocThreadedTest.cpp | 1 + test/fuzzer/afl-driver-stderr.test | 1 + test/fuzzer/caller-callee.test | 1 + test/fuzzer/cxxstring.test | 2 +- test/fuzzer/dump_coverage.test | 1 + test/fuzzer/equivalence-signals.test | 1 + test/fuzzer/equivalence.test | 1 + test/fuzzer/lit.cfg | 13 +- test/fuzzer/lit.site.cfg.in | 2 + test/fuzzer/memcmp.test | 1 + test/fuzzer/memcmp64.test | 1 + test/fuzzer/minimize_two_crashes.test | 1 + test/fuzzer/recommended-dictionary.test | 1 + test/fuzzer/strcmp.test | 1 + test/fuzzer/strncmp.test | 1 + test/fuzzer/strstr.test | 1 + test/fuzzer/value-profile-mem.test | 1 + test/fuzzer/value-profile-strcmp.test | 1 + test/fuzzer/value-profile-strncmp.test | 1 + test/hwasan/TestCases/stack-oob.cc | 25 + test/hwasan/TestCases/stack-uar.cc | 23 + test/hwasan/lit.cfg | 4 +- test/lit.common.cfg | 21 + test/lsan/TestCases/Linux/log-path_test.cc | 26 + test/msan/Linux/name_to_handle_at.cc | 28 + test/msan/check-handler.cc | 16 + test/msan/dtls_test.c | 2 + test/msan/dtor-member.cc | 2 +- test/msan/getutent.cc | 4 + test/msan/iconv.cc | 2 +- test/msan/lit.cfg | 2 +- test/msan/pthread_getattr_np_deadlock.cc | 1 + test/msan/pthread_getname_np.cc | 12 + test/msan/pvalloc.cc | 1 + test/msan/strlen_of_shadow.cc | 2 + test/msan/textdomain.cc | 2 + test/msan/tls_reuse.cc | 1 + test/msan/tsearch.cc | 2 +- test/msan/tzset.cc | 1 + test/msan/use-after-dtor.cc | 19 +- test/profile/Linux/counter_promo_nest.c | 3 + test/profile/instrprof-darwin-dead-strip.c | 16 +- test/profile/instrprof-reset-counters.c | 2 +- test/sanitizer_common/CMakeLists.txt | 8 +- .../TestCases/Linux/name_to_handle_at.cc | 21 + test/sanitizer_common/TestCases/NetBSD/access.cc | 5 + test/sanitizer_common/TestCases/NetBSD/devname.cc | 22 + .../sanitizer_common/TestCases/NetBSD/devname_r.cc | 27 + .../sanitizer_common/TestCases/NetBSD/faccessat.cc | 6 + test/sanitizer_common/TestCases/NetBSD/fgetln.cc | 23 + .../TestCases/NetBSD/getgrouplist.cc | 29 + .../TestCases/NetBSD/getgroupmembership.cc | 30 + .../TestCases/NetBSD/gid_from_group.cc | 16 + .../TestCases/NetBSD/group_from_gid.cc | 17 + .../TestCases/NetBSD}/lit.local.cfg | 2 +- test/sanitizer_common/TestCases/NetBSD/lstat.cc | 16 + test/sanitizer_common/TestCases/NetBSD/netent.cc | 84 + test/sanitizer_common/TestCases/NetBSD/paccept.cc | 74 + test/sanitizer_common/TestCases/NetBSD/protoent.cc | 89 + test/sanitizer_common/TestCases/NetBSD/strlcat.cc | 52 + test/sanitizer_common/TestCases/NetBSD/strlcpy.cc | 52 + test/sanitizer_common/TestCases/NetBSD/strmode.cc | 20 + test/sanitizer_common/TestCases/NetBSD/ttyent.cc | 70 + .../TestCases/NetBSD/uid_from_user.cc | 16 + .../TestCases/NetBSD/user_from_uid.cc | 17 + test/sanitizer_common/TestCases/Posix/readlink.c | 26 + test/sanitizer_common/TestCases/Posix/readlinkat.c | 26 + test/sanitizer_common/TestCases/ctype.c | 89 + test/sanitizer_common/lit.common.cfg | 2 +- test/scudo/double-free.cpp | 8 - test/scudo/lit.cfg | 13 +- test/scudo/memalign.c | 27 +- test/scudo/mismatch.cpp | 24 +- test/scudo/realloc.cpp | 10 +- test/scudo/sizes.cpp | 18 +- test/tsan/Darwin/norace-objcxx-run-time.mm | 2 +- test/tsan/lit.cfg | 7 +- test/tsan/strerror_r.cc | 16 +- test/tsan/thread_name.cc | 2 +- test/tsan/tls_race2.cc | 3 + test/ubsan/CMakeLists.txt | 3 + test/ubsan/TestCases/Float/cast-overflow.cpp | 10 + test/ubsan/lit.common.cfg | 2 +- test/ubsan_minimal/CMakeLists.txt | 3 + test/xray/CMakeLists.txt | 12 +- .../{Linux => Posix}/always-never-instrument.cc | 2 +- .../{Linux => Posix}/arg1-arg0-logging.cc | 0 .../xray/TestCases/{Linux => Posix}/arg1-logger.cc | 0 .../{Linux => Posix}/arg1-logging-implicit-this.cc | 2 +- .../{Linux => Posix}/argv0-log-file-name.cc | 0 .../TestCases/{Linux => Posix}/basic-filtering.cc | 2 +- .../common-trampoline-alignment.cc | 2 +- .../TestCases/{Linux => Posix}/coverage-sample.cc | 0 .../custom-event-handler-alignment.cc | 2 +- .../{Linux => Posix}/custom-event-logging.cc | 0 test/xray/TestCases/{Linux => Posix}/fdr-mode.cc | 2 +- .../{Linux => Posix}/fdr-single-thread.cc | 2 +- .../TestCases/{Linux => Posix}/fdr-thread-order.cc | 2 +- .../{Linux => Posix}/fixedsize-logging.cc | 0 .../TestCases/{Linux => Posix}/func-id-utils.cc | 0 .../TestCases/{Linux => Posix}/logging-modes.cc | 0 .../{Linux => Posix}/optional-inmemory-log.cc | 0 .../{Linux => Posix}/patching-unpatching.cc | 0 test/xray/TestCases/{Linux => Posix}/pic_test.cc | 0 .../xray/TestCases/{Linux => Posix}/quiet-start.cc | 2 +- test/xray/lit.cfg | 14 +- utils/generate_netbsd_ioctls.awk | 759 ++++ utils/generate_netbsd_syscalls.awk | 2986 ++++++++++++ 273 files changed, 21428 insertions(+), 1127 deletions(-) create mode 100644 include/sanitizer/netbsd_syscall_hooks.h create mode 100644 lib/builtins/riscv/mulsi3.S create mode 100644 lib/sanitizer_common/sanitizer_interceptors_ioctl_netbsd.inc create mode 100644 lib/sanitizer_common/sanitizer_openbsd.cc copy lib/sanitizer_common/{sanitizer_platform_limits_netbsd.cc => sanitizer_platfo [...] create mode 100644 lib/sanitizer_common/sanitizer_platform_limits_openbsd.h create mode 100644 lib/sanitizer_common/sanitizer_syscalls_netbsd.inc delete mode 100644 lib/scudo/scudo_interceptors.cpp create mode 100644 lib/scudo/scudo_malloc.cpp copy lib/ubsan/{ubsan_init_standalone.cc => ubsan_init_standalone_preinit.cc} (59%) create mode 100644 test/asan/TestCases/intercept-rethrow-exception.cc copy test/asan/TestCases/{invalid-pointer-pairs-subtract-success.cc => invalid-poi [...] create mode 100644 test/builtins/Unit/riscv/mulsi3_test.c create mode 100644 test/hwasan/TestCases/stack-oob.cc create mode 100644 test/hwasan/TestCases/stack-uar.cc create mode 100644 test/lsan/TestCases/Linux/log-path_test.cc create mode 100644 test/msan/Linux/name_to_handle_at.cc create mode 100644 test/msan/check-handler.cc create mode 100644 test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/access.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/devname.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/devname_r.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/faccessat.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/fgetln.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/getgrouplist.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/getgroupmembership.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/gid_from_group.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/group_from_gid.cc copy test/{asan/TestCases/Darwin => sanitizer_common/TestCases/NetBSD}/lit.local.c [...] create mode 100644 test/sanitizer_common/TestCases/NetBSD/lstat.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/netent.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/paccept.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/protoent.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/strlcat.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/strlcpy.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/strmode.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/ttyent.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/uid_from_user.cc create mode 100644 test/sanitizer_common/TestCases/NetBSD/user_from_uid.cc create mode 100644 test/sanitizer_common/TestCases/Posix/readlink.c create mode 100644 test/sanitizer_common/TestCases/Posix/readlinkat.c create mode 100644 test/sanitizer_common/TestCases/ctype.c rename test/xray/TestCases/{Linux => Posix}/always-never-instrument.cc (95%) rename test/xray/TestCases/{Linux => Posix}/arg1-arg0-logging.cc (100%) rename test/xray/TestCases/{Linux => Posix}/arg1-logger.cc (100%) rename test/xray/TestCases/{Linux => Posix}/arg1-logging-implicit-this.cc (94%) rename test/xray/TestCases/{Linux => Posix}/argv0-log-file-name.cc (100%) rename test/xray/TestCases/{Linux => Posix}/basic-filtering.cc (98%) rename test/xray/TestCases/{Linux => Posix}/common-trampoline-alignment.cc (97%) rename test/xray/TestCases/{Linux => Posix}/coverage-sample.cc (100%) rename test/xray/TestCases/{Linux => Posix}/custom-event-handler-alignment.cc (96%) rename test/xray/TestCases/{Linux => Posix}/custom-event-logging.cc (100%) rename test/xray/TestCases/{Linux => Posix}/fdr-mode.cc (99%) rename test/xray/TestCases/{Linux => Posix}/fdr-single-thread.cc (97%) rename test/xray/TestCases/{Linux => Posix}/fdr-thread-order.cc (98%) rename test/xray/TestCases/{Linux => Posix}/fixedsize-logging.cc (100%) rename test/xray/TestCases/{Linux => Posix}/func-id-utils.cc (100%) rename test/xray/TestCases/{Linux => Posix}/logging-modes.cc (100%) rename test/xray/TestCases/{Linux => Posix}/optional-inmemory-log.cc (100%) rename test/xray/TestCases/{Linux => Posix}/patching-unpatching.cc (100%) rename test/xray/TestCases/{Linux => Posix}/pic_test.cc (100%) rename test/xray/TestCases/{Linux => Posix}/quiet-start.cc (96%) create mode 100755 utils/generate_netbsd_ioctls.awk create mode 100755 utils/generate_netbsd_syscalls.awk