This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Fix missing synchronization in AllocThread.
ClosedPublic

Authored by eugenis on May 4 2021, 7:51 PM.

Details

Summary

The problem was introduced in D100348.

It's really hard to trigger the bug in a stress test - the race is just too
narrow - but the new checks in Thread::Init should at least provide usable
diagnostic if the problem ever returns.

Diff Detail

Event Timeline

eugenis requested review of this revision.May 4 2021, 7:51 PM
eugenis created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2021, 7:51 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.May 4 2021, 8:58 PM
This revision is now accepted and ready to land.May 4 2021, 8:58 PM
hctim accepted this revision.May 5 2021, 10:29 AM
This revision was automatically updated to reflect the committed changes.