| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__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
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
llvm-svn: 341286
|
|
|
|
|
|
|
|
|
|
|
|
| |
sysctl has a different signature under OpenBSD
Reviewers: krytarowski
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D51572
llvm-svn: 341285
|
|
|
|
|
|
|
| |
Fixes "allocator is out of memory trying to allocate 0x0 bytes" by
always allocating at least one byte.
llvm-svn: 341229
|
|
|
|
|
|
| |
Cast the 5th argument to (void *), removing cast.
llvm-svn: 341192
|
|
|
|
|
|
| |
Cast the first argument to (int *) removing const.
llvm-svn: 341187
|
|
|
|
|
|
| |
Add an explicit cast from uptr to size_t to prevent potential type mismatch.
llvm-svn: 341183
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Switch local sysctl(2) calls to internal_sysctl().
This is a preparation for introduction of interceptors for
the sysctl*() family of functions and switching `internal_sysctl*()`
to libc calls bypassing interceptors.
No functional change intended with this revision.
Reviewers: vitalybuka, joerg, kcc
Reviewed By: vitalybuka
Subscribers: kubamracek, llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D51425
llvm-svn: 341181
|
|
|
|
|
|
| |
(HwasanThreadLocalMallocStorage) that had incorrect size and used 10x more than needed RAM (500K instead of 50K per thread)
llvm-svn: 341170
|
|
|
|
| |
llvm-svn: 341166
|
|
|
|
|
|
| |
thread
llvm-svn: 341160
|
|
|
|
| |
llvm-svn: 341159
|
|
|
|
|
|
| |
on Linux at all
llvm-svn: 341158
|
|
|
|
|
|
| |
stack addresses
llvm-svn: 341156
|
|
|
|
|
|
| |
threaded tests
llvm-svn: 341143
|
|
|
|
| |
llvm-svn: 341133
|
|
|
|
|
|
| |
heavy) simply maintain a linked list of Threads
llvm-svn: 341111
|
|
|
|
| |
llvm-svn: 341090
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Port libFuzzer to windows-msvc.
This patch allows libFuzzer targets to be built and run on Windows, using -fsanitize=fuzzer and/or fsanitize=fuzzer-no-link. It allows these forms of coverage instrumentation to work on Windows as well.
It does not fix all issues, such as those with -fsanitize-coverage=stack-depth, which is not usable on Windows as of this patch.
It also does not fix any libFuzzer integration tests. Nearly all of them fail to compile, fixing them will come in a later patch, so libFuzzer tests are disabled on Windows until them.
Patch By: metzman
Reviewers: morehouse, rnk
Reviewed By: morehouse, rnk
Subscribers: #sanitizers, delcypher, morehouse, kcc, eraman
Differential Revision: https://reviews.llvm.org/D51022
llvm-svn: 341082
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
using sysctl to get the tic frequency data.
still linkage issue for X-ray_init not resolved.
Reviewers: dberris, kubamracek
Reviewed By: dberris
Differential Revision: https://reviews.llvm.org/D51399
llvm-svn: 341019
|
|
|
|
|
|
|
|
|
| |
Now that all _zx_vmar_... calls have been updated, we can undo the
change made in r337801 and switch over to the new calls.
Differential Revision: https://reviews.llvm.org/D51468
llvm-svn: 341011
|
|
|
|
|
|
| |
disable tagging in malloc with inside pthread_create)
llvm-svn: 341007
|
|
|
|
| |
llvm-svn: 341005
|
|
|
|
| |
llvm-svn: 340989
|
|
|
|
| |
llvm-svn: 340985
|
|
|
|
| |
llvm-svn: 340983
|