| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix typical relocation linkage issue.
Reviwewers: dim, emaste
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D51681
llvm-svn: 341924
|
|
|
|
|
|
|
|
|
| |
This function isn't declared with a const parameter anywhere; neither
in MSVC (neither in ucrt or in older msvcrt versions) nor in mingw-w64.
Differential Revision: https://reviews.llvm.org/D51876
llvm-svn: 341903
|
|
|
|
|
|
|
| |
The problem was not in a non-rooted device, but in tagged local
variable address passed to a system call, see comments in the code.
llvm-svn: 341875
|
|
|
|
|
|
|
|
|
|
| |
This fixes building on a case sensitive filesystem with mingw-w64
headers, where all headers are lowercase. This header actually also
is named with a lowercase name in the Windows SDK as well.
Differential Revision: https://reviews.llvm.org/D51877
llvm-svn: 341857
|
|
|
|
| |
llvm-svn: 341739
|
|
|
|
|
|
| |
Requires a rooted device => fails on sanitizer-x86_64-linux-android bot.
llvm-svn: 341738
|
|
|
|
| |
llvm-svn: 341736
|
|
|
|
|
|
|
| |
Adds a line to /proc/$PID/maps with more or less up-to-date memory
stats of the process.
llvm-svn: 341735
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
In this change we apply `XRAY_NEVER_INSTRUMENT` to more functions in the
profiling implementation to ensure that these never get instrumented if
the compiler used to build the library is capable of doing XRay
instrumentation.
We also consolidate all the allocators into a single header
(xray_allocator.h) which sidestep the use of the internal allocator
implementation in sanitizer_common.
This addresses more cases mentioned in llvm.org/PR38577.
Reviewers: mboerger, eizan
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D51776
llvm-svn: 341647
|
|
|
|
| |
llvm-svn: 341638
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Enables trace-malloc-unbalanced.test on Windows, fixing two problems it had with Windows before.
The first fix is specifying python instead of relying on a script's shebang since they can't be used on Windows.
The second fix is making the regex tolerate windows' implementation of the "%p" format string.
Reviewers: Dor1s
Reviewed By: Dor1s
Subscribers: morehouse
Differential Revision: https://reviews.llvm.org/D51760
llvm-svn: 341632
|
|
|
|
| |
llvm-svn: 341625
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
When targeting MSVC: compile using clang's cl driver mode (this is needed for
libfuzzer's exit_on_src_pos feature). Don't use -lstdc++ when linking,
it isn't needed and causes a warning.
On Windows: Fix exit_on_src_pos.test by making sure debug info isn't
overwritten during compilation of second binary by using .exe extension.
Reviewers: morehouse
Reviewed By: morehouse
Subscribers: aprantl, JDevlieghere
Differential Revision: https://reviews.llvm.org/D51757
llvm-svn: 341622
|
|
|
|
|
|
| |
malloc can't happen before main
llvm-svn: 341615
|
|
|
|
|
|
|
|
|
| |
Check size limit before rounding up, otherwise malloc((size_t)-1)
would happily allocate 0 bytes.
Steal a nice test case from scudo.
llvm-svn: 341612
|
|
|
|
| |
llvm-svn: 341610
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
When building without COMPILER_RT_HWASAN_WITH_INTERCEPTORS, skip
interceptors for malloc/free/etc and only export their versions with
__sanitizer_ prefix.
Also remove a hack in mallinfo() interceptor that does not apply to
hwasan.
Reviewers: kcc
Subscribers: kubamracek, krytarowski, llvm-commits
Differential Revision: https://reviews.llvm.org/D51711
llvm-svn: 341598
|
|
|
|
| |
llvm-svn: 341594
|
|
|
|
| |
llvm-svn: 341592
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D51739
llvm-svn: 341569
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Patch by Jonathan Metzman (@metzman).
Reviewers: Dor1s, morehouse
Reviewed By: Dor1s
Subscribers: delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D51735
llvm-svn: 341562
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__msan_va_arg_origin_tls
Add the __msan_va_arg_origin_tls TLS array to keep the origins for variadic function parameters.
Change the instrumentation pass to store parameter origins in this array.
This is a reland of r341528.
test/msan/vararg.cc doesn't work on Mips, PPC and AArch64 (because this
patch doesn't touch them), XFAIL these arches.
Also turned out Clang crashed on i80 vararg arguments because of
incorrect origin type returned by getOriginPtrForVAArgument() - fixed it
and added a test.
llvm-svn: 341554
|
|
|
|
| |
llvm-svn: 341541
|
|
|
|
|
|
|
|
| |
MachO symbols are prefixed with an extra '_' (that's 3 in total for this
function), so assembly calls have to go through a wrapper to insert any prefix
needed.
llvm-svn: 341540
|
|
|
|
|
|
|
|
|
|
| |
__msan_va_arg_origin_tls
Add the __msan_va_arg_origin_tls TLS array to keep the origins for
variadic function parameters.
Change the instrumentation pass to store parameter origins in this array.
llvm-svn: 341528
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Patch by Jonathan Metzman (@metzman).
Reviewers: morehouse, Dor1s
Reviewed By: Dor1s
Subscribers: kcc, delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D51712
llvm-svn: 341514
|
|
|
|
| |
llvm-svn: 341507
|
|
|
|
| |
llvm-svn: 341501
|
|
|
|
|
|
|
|
|
|
| |
Sigtrap is used for error reporting, but all other signals are better
left for the platform.
In particular, sanitizer signal handlers do not dump registers or
memory which makes debugging harder for no good reason.
llvm-svn: 341500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Memmem is not available on Windows.
Patch By: metzman
Reviewers: morehouse
Reviewed By: morehouse
Subscribers: george.karpenkov, morehouse
Differential Revision: https://reviews.llvm.org/D51692
llvm-svn: 341495
|
|
|
|
| |
llvm-svn: 341480
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Remove unneeded #include of <unistd.h> from SymbolizeDeadlock.cpp to
enable compilation on Windows and enable symbolize-deadlock.test on
Windows.
Patch by Jonathan Metzman (@metzman).
Reviewers: Dor1s
Reviewed By: Dor1s
Subscribers: kcc, delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D51685
llvm-svn: 341473
|
|
|
|
|
|
| |
- Temporary hack to make the buildbot failure stop on Darwin.
llvm-svn: 341445
|
|
|
|
|
|
|
|
|
| |
sendmmsg requires glibc >= 2.14.
Fixes PR38589.
Review: https://reviews.llvm.org/D51538
llvm-svn: 341442
|
|
|
|
| |
llvm-svn: 341441
|
|
|
|
| |
llvm-svn: 341440
|
|
|
|
|
|
| |
pthread_create on Linux)
llvm-svn: 341438
|
|
|
|
|
|
| |
can call t->Destroy in __hwasan_thread_exit, same as on Android
llvm-svn: 341435
|
|
|
|
| |
llvm-svn: 341432
|
|
|
|
|
|
| |
GetThreadStackAndTls was always called with 'at_initialization=true', fixed that.
llvm-svn: 341431
|
|
|
|
|
|
| |
creation/destruction
llvm-svn: 341428
|
|
|
|
|
|
| |
(16-byte-aligned)
llvm-svn: 341420
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Enable tests on Windows and make check-fuzzer pass on it. Make
check-fuzzer pass on Windows by fixing libFuzzer, fixing tests, and by
disabling tests on Windows. Most of these are disabled temporarily as
support for the tests and the features they test will be added
incrementally. Other tests will not be enabled since they require
things that are not on Windows (eg: afl_driver tests). Every test
that was explicitly disabled on Windows has a comment explaining why
(unless obvious like merge-posix.test).
The lit.cfg file was modified to support running tests on windows.
fuzzer-dirs.test was fixed by making the Windows implementation print
the same error message as the posix version.
merge-control-file.test was fixed by making the test binary end with
the ".exe" extension (on all platforms).
Patch By: metzman
Reviewers: morehouse
Reviewed By: morehouse
Subscribers: srhines, mgorny
Differential Revision: https://reviews.llvm.org/D51549
llvm-svn: 341385
|
|
|
|
|
|
| |
Previous commit incorrectly updated the read1 case.
llvm-svn: 341384
|
|
|
|
|
|
|
| |
The new assembly makes our benchmark faster, so it should be safe to
update the check.
llvm-svn: 341381
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`test/asan/TestCases/Darwin/segv_read_write.c`
* The `fd` arg passed to `mmap()` should be `-1`. It is not defined
what passing `0` does on Darwin.
* The comment about the shadow memory doesn't make any sense to me,
so I'm removing it.
Differential Revision: https://reviews.llvm.org/D44579
llvm-svn: 341307
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tests for ios, watchos, tvos, and their simulator counterparts.
This commit does not make the tests actually pass. This will be handled
in later commits.
rdar://problem/41126835
Differential Revision: https://reviews.llvm.org/D51270
llvm-svn: 341306
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER` is not set in the environment.
Summary: Give a better error message when trying to run the iossim tests and `SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER` is not set in the environment.
Reviewers: kubamracek, george.karpenkov
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D51272
llvm-svn: 341300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
simulator tests.
rdar://problem/41126835
Reviewers: kubamracek, vsk, george.karpenkov
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D51273
llvm-svn: 341299
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: rdar://problem/41126835
Reviewers: vsk, kubamracek
Subscribers: #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D51271
llvm-svn: 341298
|