This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Init TSAN from FuncEntry
AbandonedPublic

Authored by vitalybuka on Apr 10 2017, 2:45 PM.

Details

Summary

It's possible to create binaries with instrumented code which is called before
regular TSAN interceptors.

This patch replaces r270873. r270873 does not work with Google code.

Event Timeline

vitalybuka created this revision.Apr 10 2017, 2:45 PM
vitalybuka updated this revision to Diff 94747.Apr 10 2017, 2:50 PM

Fix comment

vitalybuka planned changes to this revision.Apr 11 2017, 8:48 PM

Existing .preinit_array makes sense and consistent with other sanitizes.
Mentioned Google issues need to be fixed on Google side.

vitalybuka abandoned this revision.Apr 12 2017, 1:51 PM