This is an archive of the discontinued LLVM Phabricator instance.

[MSan] Use COMMON_INTERCEPTOR_ENTER in libdl interceptors.
ClosedPublic

Authored by koriakin on Apr 25 2016, 2:50 PM.

Details

Summary

This fixes fails in test/msan/dlerror.cc - when real dlerror calls strcmp,
our strcmp interceptor now skips poison checking, since it's called in
interceptor context. Strictly speaking, only the dlerror change is
necessary to fix the fail, but let's also change the other two just in case.

This fixes the bug XFAILed in D19205 (obsoleting it) and D17503.

Diff Detail

Repository
rL LLVM

Event Timeline

koriakin retitled this revision from to [MSan] Use COMMON_INTERCEPTOR_ENTER in libdl interceptors..
koriakin updated this object.
koriakin added reviewers: eugenis, samsonov, kcc.
koriakin set the repository for this revision to rL LLVM.
koriakin added a project: Restricted Project.
koriakin added a subscriber: llvm-commits.
eugenis edited edge metadata.Apr 25 2016, 2:57 PM

Looks great, but please keep COMMON_INTERCEPTOR_* macros together. Move dl* interceptors code instead.

koriakin edited edge metadata.

This version moves the interceptors instead of moving the macro and struct.

eugenis accepted this revision.Apr 25 2016, 3:08 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 25 2016, 3:08 PM
This revision was automatically updated to reflect the committed changes.