[llvm-branch-commits] [compiler-rt] a7d156a - Revert "[sanitizer] Add CHECKs to validate calculated TLS range (#107941)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 10 16:12:49 PDT 2024
Author: Florian Mayer
Date: 2024-09-10T16:12:46-07:00
New Revision: a7d156a7021ba9d72648a1c68668deb08a75a7ab
URL: https://github.com/llvm/llvm-project/commit/a7d156a7021ba9d72648a1c68668deb08a75a7ab
DIFF: https://github.com/llvm/llvm-project/commit/a7d156a7021ba9d72648a1c68668deb08a75a7ab.diff
LOG: Revert "[sanitizer] Add CHECKs to validate calculated TLS range (#107941)"
This reverts commit 957af7373881e62eec34ca87106fa2a2c2391d8e.
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
index a1107ff7d24737..666e6f3b351067 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
@@ -151,10 +151,6 @@ DTLS::DTV *DTLS_on_tls_get_addr(void *arg_void, void *res,
// This may happen inside the DTOR of main thread, so just ignore it.
tls_size = 0;
}
- if (tls_size) {
- CHECK_LE(tls_beg, reinterpret_cast<uptr>(res));
- CHECK_LT(reinterpret_cast<uptr>(res), tls_beg + tls_size);
- }
dtv->beg = tls_beg;
dtv->size = tls_size;
return dtv;
More information about the llvm-branch-commits
mailing list