This is an archive of the discontinued LLVM Phabricator instance.

tsan: avoid false positives related to epoll
ClosedPublic

Authored by dvyukov on Apr 27 2022, 3:51 AM.

Details

Summary

An application can use the mere fact of epoll_wait returning an fd
as synchronization with the write on the fd that triggered the notification.
This pattern come up in an internal networking server (b/229276331).

If an fd is added to epoll, setup a link from the fd to the epoll fd
and use it for synchronization as well.

Diff Detail

Event Timeline

dvyukov created this revision.Apr 27 2022, 3:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 3:51 AM
dvyukov requested review of this revision.Apr 27 2022, 3:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2022, 3:51 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Apr 27 2022, 5:11 AM
This revision is now accepted and ready to land.Apr 27 2022, 5:11 AM
This revision was automatically updated to reflect the committed changes.