summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan
Commit message (Collapse)AuthorAgeFilesLines
...
* tsan: support synchronization by means of linux aioDmitry Vyukov2013-11-271-2/+2
| | | | | | http://llvm-reviews.chandlerc.com/D2269 llvm-svn: 195830
* [msan] Test for r195349.Evgeniy Stepanov2013-11-211-0/+22
| | | | llvm-svn: 195350
* [msan] Tweak io_submit syscall hook.Evgeniy Stepanov2013-11-201-1/+8
| | | | llvm-svn: 195246
* [msan] Unpoison memory that is returned to the OS and flush its shadow.Evgeniy Stepanov2013-11-202-2/+39
| | | | llvm-svn: 195244
* [msan] Fix origin tracking in unaligned load/store.Evgeniy Stepanov2013-11-192-47/+67
| | | | llvm-svn: 195130
* [msan] A test for r194697.Evgeniy Stepanov2013-11-146-0/+143
| | | | llvm-svn: 194699
* [Sanitizer] Specify a default value for each common runtime flagAlexey Samsonov2013-11-121-5/+1
| | | | llvm-svn: 194479
* [msan] One more test for r194374.Evgeniy Stepanov2013-11-111-0/+35
| | | | llvm-svn: 194375
* [sanitizer] Warn if interception fails.Evgeniy Stepanov2013-11-112-4/+14
| | | | | | This includes a clang-format pass over common interceptors. llvm-svn: 194372
* [msan] Sanity check for non-PIE.Evgeniy Stepanov2013-11-111-0/+6
| | | | llvm-svn: 194370
* [Sanitizer] Make StackTrace::Unwind the only public way to unwind a stack trace.Alexey Samsonov2013-11-072-6/+5
| | | | llvm-svn: 194196
* [msan] Fix a very unfortunate typo in origin copying.Evgeniy Stepanov2013-11-052-5/+5
| | | | | | It was causing randomly missing origins. llvm-svn: 194036
* [sanitizer] Intercept strptime.Evgeniy Stepanov2013-11-022-1/+10
| | | | llvm-svn: 193903
* [msan] Intercept memccpy.Evgeniy Stepanov2013-11-012-0/+58
| | | | llvm-svn: 193897
* [Sanitizer] Unify summary reporting across all sanitizers.Alexey Samsonov2013-11-011-9/+1
| | | | | | | | | | This change unifies the summary printing across sanitizers: now each tool uses specific version of ReportErrorSummary() method, which deals with symbolization of the top frame and formatting a summary message. This change modifies the summary line for ASan+LSan mode: now the summary mentions "AddressSanitizer" instead of "LeakSanitizer". llvm-svn: 193864
* [msan] Check that address is an app region before printing shadow.Evgeniy Stepanov2013-11-011-0/+4
| | | | llvm-svn: 193863
* [sanitizer] Enhance io_submti syscall handler.Evgeniy Stepanov2013-11-011-0/+14
| | | | llvm-svn: 193848
* Consistently use StackTrace::PrintStack in ASan, LSan and MSanAlexey Samsonov2013-11-011-9/+4
| | | | llvm-svn: 193834
* [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.Alexey Samsonov2013-10-312-5/+2
| | | | | | | | | | | | | | | | | | | | | Summary: TSan and MSan need to know if interceptor was called by the user code or by the symbolizer and use pre- and post-symbolization hooks for that. Make Symbolizer class responsible for calling these hooks instead. This would ensure the hooks are only called when necessary (during in-process symbolization, they are not needed for out-of-process) and save specific sanitizers from tracing all places in the code where symbolization will be performed. Reviewers: eugenis, dvyukov Reviewed By: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2067 llvm-svn: 193807
* [msan] Intercept dlerror.Evgeniy Stepanov2013-10-312-0/+22
| | | | llvm-svn: 193760
* [msan] Disable mlock/mlockall to work around a linux kernel bug.Evgeniy Stepanov2013-10-312-0/+36
| | | | | | The same logic is present in ASan and TSan. llvm-svn: 193755
* [sanitizer] Intercept getline, getdelim.Evgeniy Stepanov2013-10-312-0/+32
| | | | llvm-svn: 193730
* [sanitizer] Intercept drand48_r, lrand48_r.Evgeniy Stepanov2013-10-291-0/+16
| | | | llvm-svn: 193655
* [sanitizer] Intercept sincos, remquo, lgamma, lgamma_r.Evgeniy Stepanov2013-10-291-0/+81
| | | | llvm-svn: 193645
* [sanitizer] Ptrace syscall handler.Evgeniy Stepanov2013-10-291-0/+5
| | | | llvm-svn: 193633
* tsan/asan: support pthread_setname_np to set thread namesDmitry Vyukov2013-10-291-0/+3
| | | | llvm-svn: 193602
* [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags ↵Alexey Samsonov2013-10-292-1/+2
| | | | | | to turn on/off the symbolization llvm-svn: 193587
* [msan] Intercept shmat.Evgeniy Stepanov2013-10-292-0/+45
| | | | llvm-svn: 193581
* [msan] Fix a typo and enable poison_in_free flag.Evgeniy Stepanov2013-10-282-1/+17
| | | | llvm-svn: 193529
* asan/msan: separate different report blocks with new linesDmitry Vyukov2013-10-281-1/+1
| | | | | | this makes the reports consistent with tsan, and much more readable. llvm-svn: 193520
* Overhaul the symbolizer interface.Peter Collingbourne2013-10-252-6/+6
| | | | | | | | | | | | | | | | | | | | | | This moves away from creating the symbolizer object and initializing the external symbolizer as separate steps. Those steps now always take place together. Sanitizers with a legacy requirement to specify their own symbolizer path should use InitSymbolizer to initialize the symbolizer with the desired path, and GetSymbolizer to access the symbolizer. Sanitizers with no such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for initialization. The symbolizer interface has been made thread-safe (as far as I can tell) by protecting its member functions with mutexes. Finally, the symbolizer interface no longer relies on weak externals, the introduction of which was probably a mistake on my part. Differential Revision: http://llvm-reviews.chandlerc.com/D1985 llvm-svn: 193448
* [sanitizer] Intercept tmpnam, tmpnam_r, tempnam.Evgeniy Stepanov2013-10-251-0/+13
| | | | llvm-svn: 193415
* [sanitizer] Remove pthread_attr_getstackaddr interceptor.Evgeniy Stepanov2013-10-251-6/+0
| | | | | | The function is deprecated. llvm-svn: 193409
* [msan] Zerofill initstate_r buffer in random_r test.Evgeniy Stepanov2013-10-251-1/+3
| | | | llvm-svn: 193406
* [sanitizer] Intercept pthread_attr_get*.Evgeniy Stepanov2013-10-253-2/+72
| | | | llvm-svn: 193405
* [msan] Separate access and origin blocks in msan reports with an extra ↵Evgeniy Stepanov2013-10-251-0/+1
| | | | | | whiteline. llvm-svn: 193401
* [sanitizer] Intercept random_r.Evgeniy Stepanov2013-10-251-0/+13
| | | | llvm-svn: 193396
* [sanitizer] Intercept shmctl.Evgeniy Stepanov2013-10-241-0/+26
| | | | llvm-svn: 193348
* [msan] Unpoison errno in common interceptors.Evgeniy Stepanov2013-10-242-6/+26
| | | | llvm-svn: 193343
* [msan] Fix invalid origin copying.Evgeniy Stepanov2013-10-243-11/+67
| | | | | | | | | | | | | | Origin copying may destroy valid origin info. This is caused by __msan_copy_origin widening the address range to the nearest 4-byte aligned addresses both on the left and on the right. If the target buffer is uninitialized and the source is fully initialized, this will result in overriding valid origin of target buffer with stale (possibly 0) origin of the source buffer. With this change the widened origin is copied only if corresponding shadow values are non zero. llvm-svn: 193338
* [msan] Change wording in the invalid origin message.Evgeniy Stepanov2013-10-241-3/+4
| | | | llvm-svn: 193335
* [sanitizer] Intercept ether_* functions.Evgeniy Stepanov2013-10-231-0/+20
| | | | llvm-svn: 193241
* [msan] Drain allocator cache when leaving thread.Evgeniy Stepanov2013-10-223-1/+57
| | | | llvm-svn: 193163
* [sanitizer] Intercept initgroups.Evgeniy Stepanov2013-10-221-0/+11
| | | | llvm-svn: 193158
* [sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.Evgeniy Stepanov2013-10-182-41/+28
| | | | llvm-svn: 192965
* [sanitizer] Intercept getmntent, getmntent_r.Evgeniy Stepanov2013-10-181-0/+29
| | | | llvm-svn: 192959
* [sanitizer] Fix unpoisoning of msghdr::msg_name in recvmsg interceptor.Evgeniy Stepanov2013-10-171-0/+73
| | | | llvm-svn: 192886
* [Sanitizer] Move pthread_cond_signal and pthread_cond_broadcast to common ↵Alexey Samsonov2013-10-171-3/+16
| | | | | | interceptors llvm-svn: 192876
* [msan] Handle origins in __sanitizer_unaligned_(load|store)*.Evgeniy Stepanov2013-10-162-0/+28
| | | | llvm-svn: 192776
* Make some pthread_mutex_* and pthread_cond_* interceptors common.Alexey Samsonov2013-10-161-0/+33
| | | | | | | | | | | | Reviewers: eugenis, dvyukov Reviewed By: dvyukov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1937 llvm-svn: 192774
OpenPOWER on IntegriCloud