This is an archive of the discontinued LLVM Phabricator instance.

[Sanitizer] Add interceptor for pthread_sigmask
ClosedPublic

Authored by labath on Feb 19 2019, 6:05 AM.

Details

Summary

pthread_sigmask is just like sigprocmask, except that its behavior in
multithreaded programs is explicitly specified. Sanitizers were lacking
a common interceptor for pthread_sigmask (although some specific
sanitizers defined custom version), which lead to false positives
(at least in msan) when using this function.

The interceptor implementation, and its test are based on the equivalent
code for sigprocmask.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Feb 19 2019, 6:05 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 19 2019, 6:05 AM
This revision is now accepted and ready to land.Feb 25 2019, 12:45 PM

Thank you for the review.

This revision was automatically updated to reflect the committed changes.