summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * [Sanitizer] Cleanup {ASAN, MSAN}_INTERCEPT_FUNC[_VER] macroJulian Lettner2019-04-292-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Note that this change is not strictly NFC since we add the `(&(name) != &WRAP(name)` part to the conditional for the `_VER` variant of the macro. Reviewers: vitalybuka Differential Revision: https://reviews.llvm.org/D61204 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359466 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Use __APPLE__ instead of __MACH__ in checkPetr Hosek2019-04-291-1/+1
| | | | | | | | | | | | | | The latter doesn't seem to be working for all targets. This addresses the issue introduced in r359413. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359423 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Fix the missing assembly on DarwinPetr Hosek2019-04-291-1/+1
| | | | | | | | | | | | This was introduced in r359413. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359421 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Fix the typo in the preprocessor checkPetr Hosek2019-04-291-1/+1
| | | | | | | | | | | | This was introduced in r359413. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359419 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Use aliases for function redirectsPetr Hosek2019-04-2941-95/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | Symbol aliases are supported by all platforms that compiler-rt builtins target, and we can use these instead of function redirects to avoid the extra indirection. This is part of the cleanup proposed in "[RFC] compiler-rt builtins cleanup and refactoring". Differential Revision: https://reviews.llvm.org/D60931 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359413 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Use single line C++/C99 comment stylePetr Hosek2019-04-28240-3869/+3489
| | | | | | | | | | | | | | | | | | | | | | Use the uniform single line C++/99 style for code comments. This is part of the cleanup proposed in "[RFC] compiler-rt builtins cleanup and refactoring". Differential Revision: https://reviews.llvm.org/D60352 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359411 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Reformat builtins with clang-formatPetr Hosek2019-04-28193-5873/+5341
| | | | | | | | | | | | | | | | | | | | | | Update formatting to use the LLVM style. This is part of the cleanup proposed in "[RFC] compiler-rt builtins cleanup and refactoring". Differential Revision: https://reviews.llvm.org/D60351 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359410 91177308-0d34-0410-b5e6-96231b3b80d8
| * [CMake] Don't modify `FUZZER_SUPPORTED_ARCH` is place.Dan Liew2019-04-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On a Darwin host we were modifying the `FUZZER_SUPPORTED_ARCH` in place which would strip out non-x86 architectures. This unhelpful if we want to use `FUZZER_SUPPORTED_ARCH` later. To fix this we introduce `FUZZER_TEST_ARCH` which is similar to what we have for for the other sanitizers. For non-Darwin host platforms `FUZZER_TEST_ARCH` is the same as `FUZZER_SUPPORTED_ARCH` but for Darwin host platforms we use `darwin_filter_host_archs(...)` as the previous code did. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359394 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer] Calculate SizeClassAllocator32::ByteMap type from ↵Vitaly Buka2019-04-278-102/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Params::kSpaceSize and Params::kRegionSizeLog Reviewers: eugenis Subscribers: kubamracek, cryptoad, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61206 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359374 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer] NFC: add static_assert to confirm that we use reasonable ByteMap ↵Vitaly Buka2019-04-271-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type Summary: If bots work we can replace #ifs with template specialization by TwoLevelByteMapSize1. There is known users of TwoLevelByteMap with TwoLevelByteMapSize1 equal 8, and users of FlatByteMap with TwoLevelByteMapSize1 equal 2. Reviewers: eugenis Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61200 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359364 91177308-0d34-0410-b5e6-96231b3b80d8
| * [NFC][Sanitizer] Remove GetRealFunctionAddress and replace usagesJulian Lettner2019-04-274-46/+11
| | | | | | | | | | | | | | | | Reviewers: vitalybuka Differential Revision: https://reviews.llvm.org/D61205 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359362 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert "[sanitizer] NFC: add static_assert to confirm that we use optimal ↵JF Bastien2019-04-261-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ByteMap type" Fails on bots with: /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h:69:3: error: static_assert failed due to requirement 'TwoLevelByteMapSize1 > 128' "TwoLevelByteMap should be used" static_assert(TwoLevelByteMapSize1 > 128, "TwoLevelByteMap should be used"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/buildslave/jenkins/workspace/clang-stage1-cmake-RA-expensive/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h:29:34: note: in instantiation of template class '__sanitizer::SizeClassAllocator32<__sanitizer::AP32>' requested here typename PrimaryAllocator::AddressSpaceView>::value, ^ http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-expensive/13960/console git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359352 91177308-0d34-0410-b5e6-96231b3b80d8
| * [Sanitizer][Windows] Speculative fix for broken build on WindowsJulian Lettner2019-04-261-2/+7
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359339 91177308-0d34-0410-b5e6-96231b3b80d8
| * [Sanitizer] Fix testJulian Lettner2019-04-261-0/+2
| | | | | | | | | | | | | | I broke the build, panicked and applied the wrong fix in my previous commit. The ASSERT was obsolete, but not the call INTERCEPT_FUNCTION. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359336 91177308-0d34-0410-b5e6-96231b3b80d8
| * [Sanitizer] Fix compliation error in testJulian Lettner2019-04-261-2/+0
| | | | | | | | | | | | | | Remove obsolete assert. I missed this in my previous patch: https://reviews.llvm.org/D61145 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359335 91177308-0d34-0410-b5e6-96231b3b80d8
| * Implement __sanitizer::conditional<B, T, F>Vitaly Buka2019-04-262-0/+24
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359334 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer] NFC: add static_assert to confirm that we use optimal ByteMap typeVitaly Buka2019-04-261-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If bots work we can replace #ifs with template specialization by TwoLevelByteMapSize1. Reviewers: eugenis Subscribers: kubamracek, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61200 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359333 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert "[CMake] Fix the value of `config.target_cflags` for non-macOS Apple"Dan Liew2019-04-265-55/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1bcdbd68616dc7f8debe126caafef7a7242a0e6b. It's been reported that some bots are failing with this change with CMake error like: ``` CMake Error at /b/s/w/ir/k/llvm-project/compiler-rt/cmake/config-ix.cmake:177 (message): Unsupported architecture: arm64 Call Stack (most recent call first): /b/s/w/ir/k/llvm-project/compiler-rt/cmake/config-ix.cmake:216 (get_target_flags_for_arch) /b/s/w/ir/k/llvm-project/compiler-rt/test/tsan/CMakeLists.txt:78 (get_test_cflags_for_apple_platform) ``` I'm reverting the patch now to unbreak builds. I will investigate properly when time permits. rdar://problem/50124489 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359327 91177308-0d34-0410-b5e6-96231b3b80d8
| * [NFC][Sanitizer] Change "return type" of INTERCEPT_FUNCTION to voidJulian Lettner2019-04-263-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | This temporary change tells us about all the places where the return value of the INTERCEPT_FUNCTION macro is actually used. In the next patch I will cleanup the macro and remove GetRealFuncAddress. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D61145 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359325 91177308-0d34-0410-b5e6-96231b3b80d8
| * [NFC] Remove ::kForTest from AP64, it does not use it.Vitaly Buka2019-04-262-8/+8
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359323 91177308-0d34-0410-b5e6-96231b3b80d8
| * [asan_symbolize] Teach `asan_symbolize.py` to symbolicate using a module mapDan Liew2019-04-262-0/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The use case here is to be able get the UUIDs of the modules that need to be symbolicated so that external plugins can see them. This information can be extracted from ASan reports if the `print_module_map` ASan option is enabled. Currently printing of the module map is only implemented on Darwin and so this is effectively a Darwin only feature right now. The module map hooks into symbolization using the new plugin infrastructure. A new hook in `AsanSymbolizerPlugInProxy` (and in `AsanSymbolizerPlugIn`) is also provided to allow external plugins to hook into the module look up process. This will allow external plugins to look up modules with knowledge of their UUID. The new plug-in is currently stored in the `asan_symbolize.py` script. We could potentially move this into a separate file in the future (to reduce clutter) if we can come up with a policy for where to search for plugins that should always get loaded. rdar://problem/49476995 Reviewers: kubamracek, yln, samsonov, dvyukov, vitalybuka Subscribers: #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D60531 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359322 91177308-0d34-0410-b5e6-96231b3b80d8
| * [CMake] Fix the value of `config.target_cflags` for non-macOS AppleDan Liew2019-04-265-9/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | platforms. The main problem here is that `-*-version_min=` was not being passed to the compiler when building test cases. This can cause problems when testing on devices running older OSs because Clang would previously assume the minimum deployment target is the the latest OS in the SDK which could be much newer than what the device is running. Previously the generated value looked like this: `-arch arm64 -isysroot <path_to_xcode>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk` With this change it now looks like: `-arch arm64 -stdlib=libc++ -miphoneos-version-min=8.0 -isysroot <path_to_xcode>/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk` This mirrors the setting of `config.target_cflags` on macOS. This change is made for ASan, LibFuzzer, TSan, and UBSan. To implement this a new `get_test_cflags_for_apple_platform()` function has been added that when given an Apple platform name and architecture returns a string containing the C compiler flags to use when building tests. This also calls a new helper function `is_valid_apple_platform()` that validates Apple platform names. rdar://problem/50124489 Differential Revision: https://reviews.llvm.org/D58578 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359305 91177308-0d34-0410-b5e6-96231b3b80d8
| * [lsan] Use SANITIZER_WORDSIZE when selecting ByteMapVitaly Buka2019-04-265-13/+34
| | | | | | | | | | | | | | Originally this code was added for 64-bit platform and it was never update. Add static_assert to validate type of ByteMap. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359286 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert "[lsan] Use SANITIZER_WORDSIZE when selecting ByteMap"Vitaly Buka2019-04-265-34/+13
| | | | | | | | | | | | | | | | New static_assert fails on a bot. This reverts commit r359269. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359276 91177308-0d34-0410-b5e6-96231b3b80d8
| * NFC: Clang-format msan_allocator.ccVitaly Buka2019-04-261-61/+61
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359270 91177308-0d34-0410-b5e6-96231b3b80d8
| * [lsan] Use SANITIZER_WORDSIZE when selecting ByteMapVitaly Buka2019-04-265-13/+34
| | | | | | | | | | | | | | Originally this code as added for 64-bit platform and was never changed. Add static_assert to make sure that we have correct map on all platforms. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359269 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Disable MSan interceptors in SIGINT handler.Matt Morehouse2019-04-262-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Avoids an MSan false positive if the SIGINT comes while the user callback is running. The false positive happens when the interrupt handler calls opendir() to remove some temporary files, which is intercepted by MSan. Fixes https://github.com/google/oss-fuzz/issues/2332. Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits, Dor1s, metzman Tags: #llvm Differential Revision: https://reviews.llvm.org/D61163 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359254 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] Require linux for libcxx.testMatt Morehouse2019-04-251-0/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359223 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Build custom libc++abi without exceptions.Matt Morehouse2019-04-252-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Since neither compiler-rt nor the libc++ we build use exceptions, we don't need libc++abi to have them either. This resolves an issue where libFuzzer's private libc++ contains implementations for __cxa_throw and friends, causing fuzz targets built with their own C++ library to segfault during exception unwinding. See https://github.com/google/oss-fuzz/issues/2328. Reviewers: phosek, EricWF, kcc Reviewed By: phosek Subscribers: kcc, dberris, mgorny, christof, llvm-commits, metzman Tags: #llvm Differential Revision: https://reviews.llvm.org/D61053 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359218 91177308-0d34-0410-b5e6-96231b3b80d8
| * [NFC][Sanitizer] Extract GetFuncAddr from GetRealFunctionAddressJulian Lettner2019-04-253-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Hopefully, this will enable cleanup/removal of GetRealFunctionAddress in follow-up commits. Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61110 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359213 91177308-0d34-0410-b5e6-96231b3b80d8
| * [scudo][standalone] Introduce the SizeClassMapKostya Kortchinsky2019-04-255-1/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: As with the sanitizer_common allocator, the SCM allows for efficient mapping between sizes and size-classes, table-free. It doesn't depart significantly from the original, except that we allow the use of size-class 0 for other purposes (as opposed to chunks of size 0). The Primary will use it to hold TransferBatches. Reviewers: vitalybuka, eugenis, hctim, morehouse Reviewed By: vitalybuka Subscribers: srhines, mgorny, delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D61088 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359199 91177308-0d34-0410-b5e6-96231b3b80d8
| * [sanitizer_common] Remove some old commented-out printf statements, and ↵Mitch Phillips2019-04-241-6/+1
| | | | | | | | | | | | fixed up the order of includes. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359150 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] NFC fixed [whitespace/braces] LINT warningVitaly Buka2019-04-241-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359133 91177308-0d34-0410-b5e6-96231b3b80d8
| * [fuzzer] Fix reload.test on Linux/aarch64Adhemerval Zanella2019-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | The compiler generates a 'brk' instruction for __builtin_trap on aarch64 and Linux kernel issues a SIGTRAP. It is different from x86, where compiler emits an 'ud2' and kernel issues a SIGILL. A straightforward is to use abort instead. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359126 91177308-0d34-0410-b5e6-96231b3b80d8
| * [compiler-rt] Fix warning about virtual destructor in sanitizer_flag_parser.hVitaly Buka2019-04-241-0/+3
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359125 91177308-0d34-0410-b5e6-96231b3b80d8
| * [llvm-symbolizer] Quick fix for broken sanitizer botMitch Phillips2019-04-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (sanitizer-x86_64-linux) until I can triage the issue properly. The build has been broken due to the symbolizer build checks failing. As the symbolizer build script relies on the old svn repo layout, it may take a little while longer to find the responsible patch for the breakage. This may be a completely valid fix, but I will need to confirm it. For now, it unbreaks the build. Tracking data: Build where the break first occurred: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/21211 Changelist authors: @grimar, @maskray, @whitequark, @spatel, @dpreobra For the authors, no action needed (yet). Will follow up when I can identify the cause. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359123 91177308-0d34-0410-b5e6-96231b3b80d8
| * [scudo][standalone] Introduce the Secondary allocatorKostya Kortchinsky2019-04-2414-88/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The Secondary allocator wraps the platform allocation primitives. It is meant to be used for larger sizes that the Primary can't fullfill, as it will be slower, and sizes are multiple of the system page size. This also changes some of the existing code, notably the opaque platform data being passed to the platform specific functions: we can shave a couple of syscalls on Fuchsia by storing additional data (this addresses a TODO). Reviewers: eugenis, vitalybuka, hctim, morehouse Reviewed By: morehouse Subscribers: mgorny, delcypher, jfb, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D60787 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359097 91177308-0d34-0410-b5e6-96231b3b80d8
| * The error message for mismatched value sites is very cryptic.Dmitry Mikulin2019-04-232-6/+6
| | | | | | | | | | | | | | | | Make it more readable for an average user. Differential Revision: https://reviews.llvm.org/D60896 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359043 91177308-0d34-0410-b5e6-96231b3b80d8
| * [TSan] Support fiber API on macOSJulian Lettner2019-04-2015-43/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Committing on behalf of Yuri Per (yuri). Reviewers: dvyukov, kubamracek, yln Reviewed By: kubamracek Authored By: yuri Differential Revision: https://reviews.llvm.org/D58110 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358802 91177308-0d34-0410-b5e6-96231b3b80d8
| * [CMake] Add fuzzer as a component for runtime buildsChris Bieneman2019-04-191-0/+2
| | | | | | | | | | | | Calling `add_compiler_rt_component` sets up the component connection between runtime builds and the parent CMake configuration. Adding this call allows specifying `fuzzer` as a `LLVM_RUNTIME_DISTRIBUTION_COMPONENT`. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358780 91177308-0d34-0410-b5e6-96231b3b80d8
| * [gn] Support dots in CMake paths in the sync scriptPetr Hosek2019-04-191-1/+0
| | | | | | | | | | | | | | | | Some file paths use dots to pick up sources from parent directories. Differential Revision: https://reviews.llvm.org/D60734 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358774 91177308-0d34-0410-b5e6-96231b3b80d8
| * Removed regiser dump checks from FP unit test.Mitch Phillips2019-04-191-41/+14
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358770 91177308-0d34-0410-b5e6-96231b3b80d8
| * [HWASan] Added no-FP unit test for register dump.Mitch Phillips2019-04-191-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Unit test for D60798. Reviewers: eugenis Subscribers: kubamracek, #sanitizers, llvm-commits, pcc Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D60806 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358769 91177308-0d34-0410-b5e6-96231b3b80d8
| * Updated test case.Mitch Phillips2019-04-191-7/+19
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358768 91177308-0d34-0410-b5e6-96231b3b80d8
| * Added no-FP unit test for register dump.Mitch Phillips2019-04-191-0/+43
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358767 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] revert part of r358726 committed by mistake (oops)Kostya Serebryany2019-04-191-1/+0
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358727 91177308-0d34-0410-b5e6-96231b3b80d8
| * [libFuzzer] in fork mode, make sure the child stats are always collected. ↵Kostya Serebryany2019-04-192-2/+4
| | | | | | | | | | | | This should fix the flakiness in fork-ubsan.test git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358726 91177308-0d34-0410-b5e6-96231b3b80d8
| * [builtins] Build x86_64 with GENERIC_TF_SOURCESYi Kong2019-04-181-0/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358706 91177308-0d34-0410-b5e6-96231b3b80d8
| * Summary:Jonathan Metzman2019-04-184-33/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add close_fd_mask functionality to AFL driver. Summary: Add support for env var AFL_DRIVER_CLOSE_FD_MASK which behaves the same as libFuzzer's -close_fd_mask=1. Also add tests. Reviewers: kcc, vitalybuka, morehouse Reviewed By: morehouse Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D60334 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358703 91177308-0d34-0410-b5e6-96231b3b80d8
| * [asan_symbolize] Workaround bug in old Python 2 versions.Dan Liew2019-04-181-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change landed in r358657 broke some of the buildbots because they use an older version of Python 2 that raises this error. ``` File "/Volumes/data/dev/llvm/upstream/master/src/projects/compiler-rt/lib/asan/scripts/asan_symbolize.py", line 509 exec(f.read(), globals_space, None) SyntaxError: unqualified exec is not allowed in function 'load_plugin_from_file' it contains a nested function with free variables ``` I can reproduce this problem when using Python 2.7.6. To workaround this some indirection has been added to prevent the broken (the line at fault would never be executed) SyntaxError error in old Python versions from being raised. rdar://problem/49476995 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358682 91177308-0d34-0410-b5e6-96231b3b80d8