| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix more compiler-rt tests after #149015. | 1 年前 | |
[compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* These lit configuration files are really Python source code. Using the .py file extension helps editors and tools use the correct language mode. LLVM and Clang already use this convention for lit configuration, this change simply applies it to all of compiler-rt. Reviewers: vitalybuka, dberris Differential Revision: https://reviews.llvm.org/D63658 llvm-svn: 364591 | 6 年前 | |
Move MSan lit-tests under test/msan llvm-svn: 201412 | 12 年前 | |
[compiler-rt] Cleanup use of COMPILER_RT_INCLUDE_TESTS (#98246) 1. Move checks into parent test/CMakeLists.txt 2. COMPILER_RT_INCLUDE_TESTS disable both lit and gtests. Before it was very inconsistent between sanitizers. | 2 年前 | |
[compiler-rt] Fix compiler warnings and runtime errors in sanitizer RT strxfrm(_l) test cases. Summary: Fixed an implicit definition warning by including <string.h>. Also fixed run-time assertions that the return value of strxfrm_l calls is less than the buffer size by increasing the size of the referenced buffer. Reviewers: morehouse Reviewed By: morehouse Subscribers: dberris, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D83593 | 5 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Make Test work with Internal Shell This test used a subshell which is not supported by lit's internal shell. Rewrite it to use the readfile substitution. Reviewers: thurstond, fmayer Reviewed By: thurstond, fmayer Pull Request: https://github.com/llvm/llvm-project/pull/165144 | 8 个月前 | |
[msan] Mark allocator padding as uninitialized, with new origin tag (#157187) This is follow-up work per discussion in https://github.com/llvm/llvm-project/pull/155944#discussion_r2311688571. If the allocator reserves more space than the user requested (e.g., malloc(7) and calloc(7,1) actually have 16 bytes reserved), the padding bytes will now be marked as uninitialized. Padding poisoning is controlled by the existing flag poison_in_malloc (which applies to all allocation functions, not only malloc). Origin tag: - For calloc or with track-origins > 1, the origin will be set as a new tag, ALLOC_PADDING - Otherwise, the existing ALLOC tag will be used. - In the case of ambiguity caused by origin granularity, ALLOC will take precedence. | 9 个月前 | |
[MSan] Enable for SystemZ Summary: This patch adds runtime support, adjusts tests and enables MSan. Like for ASan and UBSan, compile the tests with -mbackchain. Reviewers: eugenis, uweigand, jonpa, vitalybuka Reviewed By: eugenis, vitalybuka Subscribers: vitalybuka, mgorny, hiraditya, #sanitizers, stefansf, Andreas-Krebbel Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D76358 | 6 年前 | |
[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 年前 | |
[mips][msan] Fix all the XPASSes following r278793 and r278795 All msan tests are now passing for mipsel and mips64el except for allocator_mapping.cc which is marked unsupported. llvm-svn: 279048 | 9 年前 | |
[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 年前 | |
[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 年前 | |
[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 年前 | |
[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 年前 | |
[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 年前 | |
[msan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
sanitizer_common: deduplicate CheckFailed We have some significant amount of duplication around CheckFailed functionality. Each sanitizer copy-pasted a chunk of code. Some got random improvements like dealing with recursive failures better. These improvements could benefit all sanitizers, but they don't. Deduplicate CheckFailed logic across sanitizers and let each sanitizer only print the current stack trace. I've tried to dedup stack printing as well, but this got me into cmake hell. So let's keep this part duplicated in each sanitizer for now. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D102221 | 5 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[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: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[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 年前 | |
[test] Fix unused FileCheck prefixes in compiler-rt | 5 年前 | |
[clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= Use that for internal names (including the default ignorelists of the sanitizers). Differential Revision: https://reviews.llvm.org/D101832 | 5 年前 | |
[DIAG][msan] fix libc check string for dladdr1 call (#69359) The check for dladdr1 for shared libc is too strict. Depending on how the system is setup we sometimes pick up the none generic lib name with the version string in it. Update check to for libc to account for version string. | 2 年前 | |
[msan] Add lit test for dladdr This adds a simple lit test for dladdr. (There is currently a dladdr testcase in compiler-rt/lib/msan/tests/msan_test.cpp, but not a stand-alone lit test.) This is an incremental step towards adding a test case (and, eventually, an interceptor) for the more complicated dladdr1 function. Differential Revision: https://reviews.llvm.org/D154255 | 3 年前 | |
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 年前 | |
Switch dtls_test.c from XFAIL to UNSUPPORTED on aarch64. It passes on some buildbots, so we can't expect failure. | 11 个月前 | |
[msan] Use Debug Info to point to affected fields Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D132909 | 3 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[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 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] Add more specific messages for use-after-destroy Reviewed By: kda, kstoimenov Differential Revision: https://reviews.llvm.org/D132907 | 3 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[compiler-rt] eventfd api interception on freebsd. (#76564) | 2 年前 | |
[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 年前 | |
[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 年前 | |
[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 年前 | |
[msan] Add interceptors for Linux 64-bit stat variants glibc >= 2.33 uses shared functions for stat family functions. D111984 added support for non-64 bit variants but they do not appear to be enough as we have been noticing msan errors on 64-bit stat variants on Chrome OS. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D121652 | 4 年前 | |
[msan] Add interceptors for Linux 64-bit stat variants glibc >= 2.33 uses shared functions for stat family functions. D111984 added support for non-64 bit variants but they do not appear to be enough as we have been noticing msan errors on 64-bit stat variants on Chrome OS. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D121652 | 4 年前 | |
[msan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[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 年前 | |
[MSan] Remove explicit -m64 from RUN lines. Target-specific flags should usually be configured by CMake/lit. llvm-svn: 230999 | 11 年前 | |
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] [msan] Support POSIX iconv(3) on NetBSD 9.99.17+ Fixes build of test. | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Fix minor issues in testcases (#144073) Previously, 1. ifaddrs.cpp : mistake size_t (xxx) as sizeof (xxx), resulting in inadequate checks. 2. qsort.cpp : mistake kSize2 as kSize1, resulting in an unexpected buffer overlow issue. | 1 年前 | |
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 年前 | |
[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 年前 | |
[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: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[compiler-rt] Use just built libatomic if available Use libclang_rt.atomic.so instead of the libatomic installed on the system if it is available. Differential Revision: https://reviews.llvm.org/D151680 | 2 年前 | |
[compiler-rt] Use just built libatomic if available Use libclang_rt.atomic.so instead of the libatomic installed on the system if it is available. Differential Revision: https://reviews.llvm.org/D151680 | 2 年前 | |
Rename config.host_os to config.target_os. config.host_os is derived from CMAKE_SYSTEM_NAME which specifies the target. See: https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html To reduce confusion, rename it to config.target_os. The variable name config.target_os was already being used by the Orc tests. Rename it to config.orc_test_target_os with a FIXME to remove. Reviewers: JDevlieghere, MaskRay Reviewed By: MaskRay Pull Request: https://github.com/llvm/llvm-project/pull/149015 | 1 年前 | |
[compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* These lit configuration files are really Python source code. Using the .py file extension helps editors and tools use the correct language mode. LLVM and Clang already use this convention for lit configuration, this change simply applies it to all of compiler-rt. Reviewers: vitalybuka, dberris Differential Revision: https://reviews.llvm.org/D63658 llvm-svn: 364591 | 6 年前 | |
msan, codegen, instcombine: Keep more lifetime markers used for msan Reviewers: eugenis Subscribers: hiraditya, cfe-commits, #sanitizers, llvm-commits Tags: #clang, #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D66695 llvm-svn: 369979 | 6 年前 | |
[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: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Enable MSAN for loongarch64 This patch adds basic memory sanitizer support for loongarch64 with 47-bit VMA, which memory layout is based on x86_64. The LLVM part of the LoongArch memory sanitizer implementation will be done separately, which will fix failing tests in check-msan. These failing tests fail with the following same error: "error in backend: unsupported architecture". Reviewed By: #sanitizers, vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D140528 | 3 年前 | |
[MSan] Enable MSAN for loongarch64 This patch adds basic memory sanitizer support for loongarch64 with 47-bit VMA, which memory layout is based on x86_64. The LLVM part of the LoongArch memory sanitizer implementation will be done separately, which will fix failing tests in check-msan. These failing tests fail with the following same error: "error in backend: unsupported architecture". Reviewed By: #sanitizers, vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D140528 | 3 年前 | |
[MSan] Fix check overflow in a test case (#150429) Supplement to PR #144073 Previously, _msan_check_mem_is_initialized.cpp_ initialized a 32-byte stack array, but checked the shadow for the offset range [12, 42), exceeding the stack array size. MSan does not guarantee that the shadow corresponding to the overflow part is 0, so it is undefined to require the overflow part to be unpoisoned. | 1 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] Print both shadow and user address before: 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map of [0x211000000005, 0x21100000012e), 297 bytes: now: 0x2f60d213ac10[0x7f60d213ac10] 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map [0x211000000005, 0x21100000012e) of [0x711000000005, 0x711000000135), 297 bytes: Differential Revision: https://reviews.llvm.org/D111261 | 4 年前 | |
Remove function name from sanitize-memory-track-origins binary. This work is being done to reduce the size of MSAN with track origins binary. Builds upon: https://reviews.llvm.org/D131205 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131415 | 3 年前 | |
[msan] Print both shadow and user address before: 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map of [0x211000000005, 0x21100000012e), 297 bytes: now: 0x2f60d213ac10[0x7f60d213ac10] 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map [0x211000000005, 0x21100000012e) of [0x711000000005, 0x711000000135), 297 bytes: Differential Revision: https://reviews.llvm.org/D111261 | 4 年前 | |
[msan] Print both shadow and user address before: 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map of [0x211000000005, 0x21100000012e), 297 bytes: now: 0x2f60d213ac10[0x7f60d213ac10] 00 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 Shadow map [0x211000000005, 0x21100000012e) of [0x711000000005, 0x711000000135), 297 bytes: Differential Revision: https://reviews.llvm.org/D111261 | 4 年前 | |
Reapply "[msan] Automatically print shadow for failing outlined checks" (#145611) (#145615) This reverts commit 5eb5f0d8760c6b757c1da22682b5cf722efee489 i.e., relands 1b71ea411a9d36705663b1724ececbdfec7cc98c. Test case was failing on aarch64 because the long double type is implemented differently on x86 vs aarch64. This reland restricts the test to x86. ---- Original CL description: A commonly used aid for debugging MSan reports is __msan_print_shadow(), which requires manual app code annotations (typically of the variable in the UUM report or nearby). This is in contrast to ASan, which automatically prints out the shadow map when a check fails. This patch changes MSan to print the shadow that failed an outlined check (checks are outlined per function after the -msan-instrumentation-with-call-threshold is exceeded) if verbosity >= 1. Note that we do not print out the shadow map of "neighboring" variables because this is technically infeasible; see "Caveat" below. This patch can be easier to use than __msan_print_shadow() because this does not require manual app code annotations. Additionally, due to optimizations, __msan_print_shadow() calls can sometimes spuriously affect whether a variable is initialized. As a side effect, this patch also enables outlined checks for arbitrary-sized shadows (vs. the current hardcoded handlers for {1,2,4,8}-byte shadows). Caveat: the shadow does not necessarily correspond to an individual user variable, because MSan instrumentation may combine and/or truncate multiple shadows prior to emitting a check that the mangled shadow is zero (e.g., convertShadowToScalar(), handleSSEVectorConvertIntrinsic(), materializeInstructionChecks()). OTOH it is arguably a strength that this feature emit the shadow that directly matters for the MSan check, but which cannot be obtained using the MSan API. | 1 年前 | |
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 年前 | |
[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 年前 | |
[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 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Enable MSAN for loongarch64 This patch adds basic memory sanitizer support for loongarch64 with 47-bit VMA, which memory layout is based on x86_64. The LLVM part of the LoongArch memory sanitizer implementation will be done separately, which will fix failing tests in check-msan. These failing tests fail with the following same error: "error in backend: unsupported architecture". Reviewed By: #sanitizers, vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D140528 | 3 年前 | |
[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 年前 | |
[msan] Set poison_in_dtor=1 by default It's still disabled by default at compile time. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D123875 | 4 年前 | |
[msan] add a regression test for PR32842 Make sure MSan doesn't miss a bug comparing two integers with defined low bits. llvm-svn: 302788 | 9 年前 | |
[msan] Disabled test failing on new GLIBC | 4 年前 | |
[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: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Fix minor issues in testcases (#144073) Previously, 1. ifaddrs.cpp : mistake size_t (xxx) as sizeof (xxx), resulting in inadequate checks. 2. qsort.cpp : mistake kSize2 as kSize1, resulting in an unexpected buffer overlow issue. | 1 年前 | |
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 年前 | |
[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 年前 | |
[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 年前 | |
[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 年前 | |
Remove function name from sanitize-memory-track-origins binary. This work is being done to reduce the size of MSAN with track origins binary. Builds upon: https://reviews.llvm.org/D131205 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131415 | 3 年前 | |
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 %ms in scanf. Differential Revision: https://reviews.llvm.org/D85350 | 5 年前 | |
[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: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
Remove function name from sanitize-memory-track-origins binary. This work is being done to reduce the size of MSAN with track origins binary. Builds upon: https://reviews.llvm.org/D131205 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131415 | 3 年前 | |
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] Fix sigaltstack false positive. struct stack_t on Linux x86_64 has internal padding which may be left uninitialized. The check should be replaced with multiple checks for individual fields of the struct. For now, remove the check altogether. | 6 年前 | |
[sanitizer][msan] VarArgHelper for loongarch64 This patch adds support for variadic argument for loongarch64, which is based on MIPS64. And check-msan all pass. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D158587 | 2 年前 | |
test/msan/sigwait: Don't silently ignore assertion failures Summary: As the parent process would return 0 independent of whether the child succeeded, assertions in the child would be ignored. Reviewers: eugenis Reviewed By: eugenis Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D82400 | 6 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSAN] add flag to suppress storage of stack variable names with -sanitize-memory-track-origins Allows for even more savings in the binary image while simultaneously removing the name of the offending stack variable. Depends on D131631 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131728 | 3 年前 | |
[test][msan] Update for noundef on retval | 3 年前 | |
[msan] Add interceptors for Linux 64-bit stat variants glibc >= 2.33 uses shared functions for stat family functions. D111984 added support for non-64 bit variants but they do not appear to be enough as we have been noticing msan errors on 64-bit stat variants on Chrome OS. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D121652 | 4 年前 | |
[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 年前 | |
Add %run to all lit tests llvm-svn: 207709 | 12 年前 | |
[MSan] Enable MSAN for loongarch64 This patch adds basic memory sanitizer support for loongarch64 with 47-bit VMA, which memory layout is based on x86_64. The LLVM part of the LoongArch memory sanitizer implementation will be done separately, which will fix failing tests in check-msan. These failing tests fail with the following same error: "error in backend: unsupported architecture". Reviewed By: #sanitizers, vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D140528 | 3 年前 | |
[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 年前 | |
[msan] strsignal interceptor Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D120082 | 4 年前 | |
[msan] Fix strxfrm test Revert D83719 and explicitly set locate to "C". | 5 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[MSan] Enable MSAN for aarch64 This patch enabled msan for aarch64 with 39-bit VMA and 42-bit VMA. As defined by lib/msan/msan.h the memory layout used is for 39-bit is: 00 0000 0000 - 40 0000 0000: invalid 40 0000 0000 - 43 0000 0000: shadow 43 0000 0000 - 46 0000 0000: origin 46 0000 0000 - 55 0000 0000: invalid 55 0000 0000 - 56 0000 0000: app (low) 56 0000 0000 - 70 0000 0000: invalid 70 0000 0000 - 80 0000 0000: app (high) And for 42-bit VMA: 000 0000 0000 - 100 0000 0000: invalid 100 0000 0000 - 11b 0000 0000: shadow 11b 0000 0000 - 120 0000 0000: invalid 120 0000 0000 - 13b 0000 0000: origin 13b 0000 0000 - 2aa 0000 0000: invalid 2aa 0000 0000 - 2ab 0000 0000: app (low) 2ab 0000 0000 - 3f0 0000 0000: invalid 3f0 0000 0000 - 400 0000 0000: app (high) Most of tests are passing with exception of: * Linux/mallinfo.cc * chained_origin_limits.cc * dlerror.cc * param_tls_limit.cc * signal_stress_test.cc * nonnull-arg.cpp The 'Linux/mallinfo.cc' is due the fact AArch64 returns the sret in 'x8' instead of default first argument 'x1'. So a function prototype that aims to mimic (by using first argument as the return of function) won't work. For GCC one can make a register alias (register var asm ("r8")), but for clang it detects is an unused variable and generate wrong code. The 'chained_origin_limits' is probably due a wrong code generation, since it fails only when origin memory is used (-fsanitize-memory-track-origins=2) and only in the returned code (return buf[50]). The 'signal_streess_test' and 'nonnull-arg' are due currently missing variadic argument handling in memory sanitizer code instrumentation on LLVM side. Both 'dlerror' and 'param_tls_test' are unknown failures that require further investigation. All the failures are XFAIL for aarch64 for now. llvm-svn: 247809 | 10 年前 | |
[msan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
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] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
Remove function name from sanitize-memory-track-origins binary. This work is being done to reduce the size of MSAN with track origins binary. Builds upon: https://reviews.llvm.org/D131205 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131415 | 3 年前 | |
[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 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] Use Debug Info to point to affected fields Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D132909 | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[test][msan] Reformat RUN lines | 2 年前 | |
[test][msan] Remove redundant --check-prefixes | 2 年前 | |
[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 年前 | |
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] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename .cc file in test/msan to .cpp Like r367463, but for test/msan. llvm-svn: 367653 | 6 年前 | |
[msan] Mark allocator padding as uninitialized, with new origin tag (#157187) This is follow-up work per discussion in https://github.com/llvm/llvm-project/pull/155944#discussion_r2311688571. If the allocator reserves more space than the user requested (e.g., malloc(7) and calloc(7,1) actually have 16 bytes reserved), the padding bytes will now be marked as uninitialized. Padding poisoning is controlled by the existing flag poison_in_malloc (which applies to all allocation functions, not only malloc). Origin tag: - For calloc or with track-origins > 1, the origin will be set as a new tag, ALLOC_PADDING - Otherwise, the existing ALLOC tag will be used. - In the case of ambiguity caused by origin granularity, ALLOC will take precedence. | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 6 年前 | ||
| 12 年前 | ||
| 2 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 8 个月前 | ||
| 9 个月前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 9 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 5 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 11 个月前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 11 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 9 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 12 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 10 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 9 个月前 |