[PATCH] D43325: [TSan] Fix static TLS boundaries calculations in __tls_get_addr interceptor.
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 11:00:31 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL325276: [TSan] Fix static TLS boundaries calculations in __tls_get_addr interceptor. (authored by alekseyshl, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D43325
Files:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Index: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
@@ -2535,7 +2535,8 @@
ThreadState *thr = cur_thread();
if (!thr)
return res;
- DTLS::DTV *dtv = DTLS_on_tls_get_addr(arg, res, thr->tls_addr, thr->tls_size);
+ DTLS::DTV *dtv = DTLS_on_tls_get_addr(arg, res, thr->tls_addr,
+ thr->tls_addr + thr->tls_size);
if (!dtv)
return res;
// New DTLS block has been allocated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43325.134460.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180215/d4093bb7/attachment.bin>
More information about the llvm-commits
mailing list