| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Move MSan lit-tests under test/msan llvm-svn: 201412 | 12 年前 | |
Move MSan lit-tests under test/msan llvm-svn: 201412 | 12 年前 | |
[msan] Strip __interceptor_ from reports Showing __interceptor_ as part of the function name in reports does not make sense and is distracting. Strip the interceptor function name before printing. Reviewed By: dvyukov, vitalybuka Differential Revision: https://reviews.llvm.org/D151343 | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[compiler-rt] Avoid memintrinsic calls inserted by the compiler D135716 introduced -ftrivial-auto-var-init=pattern where supported. Unfortunately this introduces unwanted memset() for large stack arrays, as shown by the new tests added for asan and msan (tsan already had this test). In general, the problem of compiler-inserted memintrinsic calls (memset/memcpy/memmove) is not new to compiler-rt, and has been a problem before. To avoid introducing unwanted memintrinsic calls, we redefine memintrinsics as __sanitizer_internal_mem* at the assembly level for most source files automatically (where sanitizer_common_internal_defs.h is included). In few cases, redefining a symbol in this way causes issues for interceptors, namely the memintrinsic interceptor themselves. For such source files we have to selectively disable the redefinition. Other alternatives have been considered, but simply do not work well in the context of compiler-rt: 1. Linker --wrap: this does not work because --wrap only applies to the final link, and would not apply when building sanitizer static libraries. 2. Changing references to memset() via objcopy: this may work, but due to the complexities of the build system, introducing such a post-processing step for the right object files (in particular object files defining memset cannot be touched) seems infeasible. The chosen solution works well (as shown by the tests). Other libraries have chosen the same solution where nothing else works (see e.g. glibc's "symbol-hacks.h"). v4: - Add interface attribute to __sanitizer_internal_mem* declarations as well, as otherwise some compilers (MSVC) will complain. - Add SANITIZER_COMMON_NO_REDEFINE_BUILTINS to source files using C++STL, since this could lead to ODR violations (see added comment). v3: - Don't use ALIAS() to alias internal_mem*() functions to __sanitizer_internal_mem*() functions, but just define them as ALWAYS_INLINE functions instead. This will work on darwin and windows. v2: - Fix ubsan_minimal build where compiler decides to insert memset/memcpy: ubsan_minimal has work without RTSanitizerCommonLibc, therefore do not redefine the builtins. - Fix definition of internal_mem* functions with compilers that want the aliased function to already be defined before. - Fix definition of __sanitizer_internal_mem* functions with compilers more pedantic about attribute placement around extern "C". Reviewed By: vitalybuka, dvyukov Differential Revision: https://reviews.llvm.org/D151152 | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] unpoison_file from fclose and fflash Also unpoison IO_write_base/_IO_write_end buffer memcpy from fclose and fflash can copy internal bytes without metadata into user memory. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D91858 | 5 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
Fix more compiler-rt tests after #149015. | 1 年前 | |
[msan] Intercept mallinfo2 only on GLIBC 2.33+ Followup to #73729 | 2 年前 | |
[msan] Intercept mallinfo2 only on GLIBC 2.33+ Followup to #73729 | 2 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[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, ...): | 2 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan][test] Fix cpusetsize for another pthread_getaffinity_np.cpp test Similar to D127368 | 4 年前 | |
[compiler-rt][test] Add REQUIRES: shell in tests that use the ulimit command (#105339) This patch adds the REQUIRES: shell directive to six test files that use the ulimit command, ensuring these tests are only run in environments where a full POSIX-compliant shell is available. The lit internal shell does not use or support the ulimit command, which causes failures when running tests with LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt Specifically, one of the errors encountered is: `` # RUN: at line 4 ulimit -s 1000 # executed command: ulimit -s 1000 # .---command stderr------------ # | 'ulimit': command not found # ----------------------------- # error: command failed with exit status: 127 `` Since, the lit internal shell doesn't support ulimit`, adding this requirement prevents these tests from failing in the lit internal shell, thereby improving the reliability of the test suite in environments where the full shell is not available. This change is relevant for [[RFC] Enabling the Lit Internal Shell by Default](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179/3) fixes: #102398 | 1 年前 | |
[llvm-lit] Fix error in compiler-rt tests when using lit internal shell with env (#102069) When running tests in compiler-rt using the lit internal shell with the following command: LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt one common error that occurs is: 'XRAY_OPTIONS=patch_premain=false:verbosity=1': command not found This error, along with over 50 similar "environment variable not found" errors, appears across 35 files in complier-rt. These errors happen because the environment variables are not being set correctly when the internal shell is used, leading to commands failing due to unrecognized environment variables. This patch addresses the issue by using the env command to properly set the environment variables before running the tests. By explicitly setting the environment variables through env, the internal shell can correctly interpret and apply them, allowing the tests to pass. fixes: #102395 [link to RFC](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179) | 1 年前 | |
[compiler-rt][test] Fix typo in stderr redirection (#98397) This patch fixes a typo in the RUN line where stderr should be redirected to stdout instead of the other way around. | 2 年前 | |
[msan] Guard FP_XSTATE_MAGIC1 usage with SANITIZER_GLIBC Fix build for Linux musl. Reviewed By: #sanitizers, dvyukov Differential Revision: https://reviews.llvm.org/D118970 | 4 年前 | |
[msan] Guard FP_XSTATE_MAGIC1 usage with SANITIZER_GLIBC Fix build for Linux musl. Reviewed By: #sanitizers, dvyukov Differential Revision: https://reviews.llvm.org/D118970 | 4 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSAN] Add fiber switching APIs Add functions exposed via the MSAN interface to enable MSAN within binaries that perform manual stack switching (e.g. through using fibers or coroutines). This functionality is analogous to the fiber APIs available for ASAN and TSAN. Fixes google/sanitizers#1232 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D86471 | 5 年前 | |
[tests][msan] Use -fno-sanitize-memory-param-retval in tests Supports either default of -f[no-]sanitize-memory-param-retval. Reviewed By: aeubanks, MaskRay Differential Revision: https://reviews.llvm.org/D134683 | 3 年前 | |
[sanitizer] Add callbacks for epoll_pwait2 Depends on D107207. Differential Revision: https://reviews.llvm.org/D107209 | 4 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 12 年前 | ||
| 12 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 |