| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[tsan] Relax stack trace check With GCC 8 stack is different. | 6 年前 | |
[sanitizer] support c11 aligned_alloc, Linux only for now llvm-svn: 212322 | 11 年前 | |
Reapply "[sanitizer] Skip /include/c++/ from summary (#78534)" Keep linux only test. This reverts commit 4619147911c2a955bb605618bc518b45da994a81. | 2 年前 | |
[test][HWASAN] Add XFAILs for missing hwasan features Reviewed By: thurston Differential Revision: https://reviews.llvm.org/D149271 | 3 年前 | |
[sanitizer] Intercept glibc's argp_parse() Glibc provides the argp_parse() function for parsing command line arguments [1]. Indicate that argc/argv are read from and arg_index is written to. Strictly speaking, we also need to indicate that argp is read from, but this would require describing its layout, and most people use a static initializer there, so it's not worth the effort. [1] https://www.gnu.org/software/libc/manual/html_node/Argp.html Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D143330 | 3 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[Driver] add -lresolv for all but Android. As there 3 intercepts that depend on libresolv, link tests in ./configure scripts may be confuse by the presence of resolv symbols (i.e. dn_expand) even with -lresolv and get a runtime error. Android provides the functionality in libc. https://reviews.llvm.org/D122849 https://reviews.llvm.org/D126851 Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D127145 | 3 年前 | |
[sanitizer] Support v2 and v3 capabilities capget() and capset() may read or write more than one cap_user_data_t, depending on the version field of cap_user_header_t. Currently the code assumes it's just one, so MSan complains if an application uses version 2 or 3, where two cap_user_data_ts are used. Parse the header in order to determine the number of cap_user_data_ts. Also add a test. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D143660 | 3 年前 | |
Add regression test for PR15823 llvm-svn: 215941 | 11 年前 | |
[tsan] don't crash on closedir(0) llvm-svn: 257223 | 10 年前 | |
[HWASAN] Fix decorate_proc_maps to work with HWASAN | 3 年前 | |
[test][HWASAN] Add XFAILs for missing hwasan features Reviewed By: thurston Differential Revision: https://reviews.llvm.org/D149271 | 3 年前 | |
[sanitizer] Add dn_comp interceptor Reviewed By: kda Differential Revision: https://reviews.llvm.org/D129247 | 3 年前 | |
[sanitizer] Use strict-whitespace in tests | 1 年前 | |
[sanitizer] Use strict-whitespace in tests | 1 年前 | |
[sanitizer] Try to enable test on Android #53721 suggests that it should work after https://reviews.llvm.org/D119461 | 4 年前 | |
[sanitizer][test] Remove no-op REQUIRES: Some patches around D109843 added REQUIRES: freebsd but they have no effects due to sanitizer_common/TestCases/Linux/lit.local.cfg.py . I informed the author but don't plan to move the tests. | 2 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[sanitizer] Support check-asan on Android This patch enabled asan tests from sanitizer_common. llvm-svn: 313444 | 8 年前 | |
Follow-up for r367863 and r367656 llvm-svn: 367888 | 6 年前 | |
[test][HWASAN] Don't disable globals in test Not needed after 40781944a8d34cf1a143b6d160ea94c61b64dbdd. | 2 年前 | |
[NFC][Py Reformat] Reformat python files in the rest of the dirs This is an ongoing series of commits that are reformatting our Python code. This catches the last of the python files to reformat. Since they where so few I bunched them together. Reformatting is done with black. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, #libc, Mordante, sivachandra Differential Revision: https://reviews.llvm.org/D150784 | 3 年前 | |
[sanitizer] Implement __sanitizer_get_allocated_size_fast The primary motivation for this change is to allow FreeHooks to obtain the allocated size of the pointer being freed in a fast, efficient manner. Differential Revision: https://reviews.llvm.org/D151360 | 3 年前 | |
[sanitizer] Disabled 2 tests on Android They block bot upgrade to NDK 21. | 5 年前 | |
[test][HWASAN] Add XFAILs for missing hwasan features Reviewed By: thurston Differential Revision: https://reviews.llvm.org/D149271 | 3 年前 | |
[sanitizer] Move mmap interceptors into sanitizer_common Reviewers: devnexen, krytarowski, eugenis Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D44125 llvm-svn: 326851 | 8 年前 | |
[test][sanitizer] Temporarily disable test Test, as expected, fails with Asan on system with 5lvl page tables. Disabling the test to migrate buildbot. | 2 年前 | |
[HWASAN] Disable unexpected_format_specifier_test because HWASAN doesn't provide a printf interceptor Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D146647 | 3 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[sanitizer][test] Remove no-op REQUIRES: Some patches around D109843 added REQUIRES: freebsd but they have no effects due to sanitizer_common/TestCases/Linux/lit.local.cfg.py . I informed the author but don't plan to move the tests. | 2 年前 | |
[compiler-rt] NFC: Fix trivial typo Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D77457 | 4 年前 | |
[test][compiler-rt] Mark several tests as UNSUPPORTED on LoongArch (#69699) | 2 年前 | |
[sanitizer] Extract check_mem_is_good into header Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D129245 | 3 年前 | |
[sanitizer-common] Expand testing for 56-bit address spaces This patch adds mmap_56bit_test.c, which attempts to deliberately mmap above 2^47. This currently exposes a failure on ASan on systems with 56-bit user address spaces, because it allows an mmap above 2^47 but the shadow mapping is only set up for a 2^47 user address space. Additionally, this patch moves pie_no_aslr from the tsan tests into sanitizer-common, for greater test coverage. Differential Revision: https://reviews.llvm.org/D149176 | 3 年前 | |
[msan] Support prctl PR_GET_NAME call (#98951) Per the man page, PR_GET_NAME stores a null terminated string into the input char name[16]. This also adds prctl support in ASAN to detect freed memory being passed to prctl(PR_GET_NAME, ...): | 1 年前 | |
Preadv2 pwritev2 san reapply (#99089) | 1 年前 | |
[sanitizer][test] Remove no-op REQUIRES: Some patches around D109843 added REQUIRES: freebsd but they have no effects due to sanitizer_common/TestCases/Linux/lit.local.cfg.py . I informed the author but don't plan to move the tests. | 2 年前 | |
[compiler-rt] Relax pthread_getaffinity test to account for cgroups/docker Fixes #58283 When running in a docker container you can have fewer cores assigned to you than get_nrpoc would suggest. Since the test just wants to know that interception worked, allow any result > 0 and <= the global core count. Reviewed By: MaskRay, vitalybuka Differential Revision: https://reviews.llvm.org/D135677 | 3 年前 | |
[sanitizer] Fix asserts in asan and tsan in pthread interceptors. (#75394) Calling one of pthread join/detach interceptor on an already joined/detached thread causes asserts such as: AddressSanitizer: CHECK failed: sanitizer_thread_arg_retval.cpp:56 "((t)) != (0)" (0x0, 0x0) (tid=1236094) #0 0x555555634f8b in __asan::CheckUnwind() compiler-rt/lib/asan/asan_rtl.cpp:69:3 #1 0x55555564e06e in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:24 #2 0x5555556491df in __sanitizer::ThreadArgRetval::BeforeJoin(unsigned long) const compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.cpp:56:3 #3 0x5555556198ed in Join<___interceptor_pthread_tryjoin_np(void*, void**)::<lambda()> > compiler-rt/lib/asan/../sanitizer_common/sanitizer_thread_arg_retval.h:74:26 #4 0x5555556198ed in pthread_tryjoin_np compiler-rt/lib/asan/asan_interceptors.cpp:311:29 The assert are replaced by error codes. | 2 年前 | |
[sanitizer] Fix asserts in asan and tsan in pthread interceptors. (#75394) Calling one of pthread join/detach interceptor on an already joined/detached thread causes asserts such as: AddressSanitizer: CHECK failed: sanitizer_thread_arg_retval.cpp:56 "((t)) != (0)" (0x0, 0x0) (tid=1236094) #0 0x555555634f8b in __asan::CheckUnwind() compiler-rt/lib/asan/asan_rtl.cpp:69:3 #1 0x55555564e06e in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:86:24 #2 0x5555556491df in __sanitizer::ThreadArgRetval::BeforeJoin(unsigned long) const compiler-rt/lib/sanitizer_common/sanitizer_thread_arg_retval.cpp:56:3 #3 0x5555556198ed in Join<___interceptor_pthread_tryjoin_np(void*, void**)::<lambda()> > compiler-rt/lib/asan/../sanitizer_common/sanitizer_thread_arg_retval.h:74:26 #4 0x5555556198ed in pthread_tryjoin_np compiler-rt/lib/asan/asan_interceptors.cpp:311:29 The assert are replaced by error codes. | 2 年前 | |
Revert "[sanitizer] Fix test linking" This reverts commit afafa883a4757d88d869d1abb6bf7e11022fd521. -pthread was not the fix. Symbols removed from GLIBC 2.34 Fixed with e60b3fcefa62311a93a9f7c8589a1da5f25b1ba9. | 4 年前 | |
[sanitizer] Add ptrace interceptor support for LoongArch Add ptrace interceptor support for LoongArch, ptrace.cpp has been tested and passed. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137228 | 3 年前 | |
[Msan] Add ptsname, ptsname_r interceptors Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D88547 | 5 年前 | |
[sanitizer-common] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[test][compiler-rt] Mark several tests as UNSUPPORTED on LoongArch (#69699) | 2 年前 | |
[sanitizer_common] Add experimental flag to tweak dlopen(<main program>) (#71715) This introduces an experimental flag 'test_only_replace_dlopen_main_program'. When enabled, this will replace dlopen(main program,...) with dlopen(NULL,...), which is the correct way to get a handle to the main program. This can be useful when ASan is statically linked, since dladdr((void*)pthread_join) or similar will return the path to the main program. Note that dlopen(main program,...) never ends well: - PIE in recent glibc versions (glibc bugzilla 24323), or non-PIE: return an error - PIE in current GRTE and older glibc: attempt to load the main program again, leading to reinitializing ASan and failing to remap the shadow memory. --------- Co-authored-by: Thurston Dang <thurston@google.com> | 2 年前 | |
Disable resize_tls_dynamic test for HWASan The test is not applicable because HWASan does not intercept __tls_get_addr. This is pre-emptive cleanup, to get ready for Kirill's patch to enable sanitizer common tests for HWASan (https://reviews.llvm.org/D147067). Note that there is an outstanding dynamic TLS bug for sanitizers - https://github.com/google/sanitizers/issues/1409 - but that isn't applicable here due to the lack of interception. Test: LIT_FILTER=resize_tls_dynamic ninja check-sanitizer Differential Revision: https://reviews.llvm.org/D147076 | 3 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[test] Make Linux/sem_init_glibc.cpp robust and fix it for 32-bit ports defining sem_init@GLIBC_2.0 (i386, mips32, powerpc32) for glibc>=2.36. Fix https://github.com/llvm/llvm-project/issues/58079 Reviewed By: mgorny Differential Revision: https://reviews.llvm.org/D135023 | 3 年前 | |
[sanitizer-common] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[sanitizer_common] Fix signal_line.cpp on SPARC (#100535) SanitizerCommon-ubsan-sparc-Linux :: Linux/signal_line.cpp currently FAILs on Linux/sparc64 (32 and 64-bit) for n == 2. Instead of the expected SIGSEGV, the test dies with SIGBUS. strace reveals that this is due to a unaligned access: --- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRALN, si_addr=0x1} --- which is to be expected on a strict-alignment target like SPARC. Fixed by changing the invalid pointer to be better aligned. Tested on sparc64-unknown-linux-gnu and x86_64-pc-linux-gnu. (cherry picked from commit 94394ca980f8ecbd845155d2170cfd865e4d62dc) | 1 年前 | |
[test][HWASAN] Add hwasan-aliasing Some tests of D149234 deppend on aliasing mode. | 3 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[sanitizer_common] Adjust signal_send.cpp for Linux/sparc64 (#100538) SanitizerCommon-ubsan-sparc-Linux :: Linux/signal_send.cpp currently FAILs on Linux/sparc64 (32 and 64-bit). Instead of the expected values for SIGUSR1 (10) and SIGUSR1 (12), that target uses 30 and 31. On Linux/x86_64, the signals get their values from x86_64-linux-gnu/bits/signum-generic.h, to be overridden in x86_64-linux-gnu/bits/signum.h. On Linux/sparc64 OTOH, the definitions are from sparc64-linux-gnu/bits/signum-arch.h and remain that way. There's no signum.h at all. The patch allows for both values. Tested on sparc64-unknown-linux-gnu and x86_64-pc-linux-gnu. (cherry picked from commit 7cecbdfe4eac3fd7268532426fb6b13e51b8720d) | 1 年前 | |
[sanitizer-common] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[test][sanitizer] Prepare test for Internal Symbolizer Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D157946 | 2 年前 | |
[sanitizer] Reject unsupported -static at link time (#83524) Most sanitizers don't support static linking. One primary reason is the incompatibility with interceptors. GetTlsSize is another reason. asan/memprof use __interception::DoesNotSupportStaticLinking (_DYNAMIC reference) to reject -static at link time. Port this detector to other sanitizers. dfsan actually supports -static for certain cases. Don't touch dfsan. | 2 年前 | |
[sanitizer-common] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[sanitizer] Disable test incompartible with recert GLIBC | 4 年前 | |
[sanitizers] Remove the message queue with IPC_RMID after D82897 | 5 年前 | |
compiler-rt: Rename cc files below test/sanitizer_common to cpp See r367803 and similar other changes. llvm-svn: 367863 | 6 年前 | |
[test][sanitizer] Unsupport test on Android | 2 年前 | |
[HWASAN] Disable unexpected_format_specifier_test because HWASAN doesn't provide a printf interceptor Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D146647 | 3 年前 | |
[sanitizer] Android ELF TLS is supported from Q (API 29) Reviewed By: oontvoo, MaskRay Differential Revision: https://reviews.llvm.org/D103214 | 5 年前 | |
Test including rpc/xdr.h requires sunrpc ...which is set based on HAVE_RPC_XDR_H. At least Fedora 32 does not have a /usr/include/rpc/xdr.h, so failed this test introduced with <https://reviews.llvm.org/D83358> "[Sanitizers] Add interceptor for xdrrec_create". Differential Revision: https://reviews.llvm.org/D84740 | 5 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 年前 | ||
| 6 年前 | ||
| 11 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 11 年前 | ||
| 10 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 8 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 8 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 5 年前 |