This is an archive of the discontinued LLVM Phabricator instance.

[MSAN] add dn_expand intercept.
ClosedPublic

Authored by kda on Jun 1 2022, 8:44 PM.

Details

Summary

This interceptor only addresses writes to inputs. Reads of inputs are not checked.

Diff Detail

Event Timeline

kda created this revision.Jun 1 2022, 8:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 8:44 PM
Herald added a subscriber: Enna1. · View Herald Transcript
kda requested review of this revision.Jun 1 2022, 8:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 8:44 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kda abandoned this revision.Jun 1 2022, 8:45 PM
kda updated this revision to Diff 433640.Jun 1 2022, 8:47 PM

remove commented out code

kda abandoned this revision.Jun 1 2022, 8:47 PM
kda updated this revision to Diff 433642.Jun 1 2022, 8:50 PM

remove commented out code

kda retitled this revision from remove commented out code to [MSAN] add dn_expand intercept..Jun 1 2022, 8:52 PM
kda added a reviewer: vitalybuka.
vitalybuka added inline comments.Jun 2 2022, 10:25 AM
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
2531

int space?

2534

maybe we should drop COMMON_INTERCEPTOR_READ_RANGE, and just keep only WRITE?

eugenis added a subscriber: eugenis.Jun 2 2022, 1:06 PM

We should also add -lresolv to tools::linkSanitizerRuntimeDeps if we are now intercepting functions from there.
Libresolv is part of libc.so on android.

kda edited the summary of this revision. (Show Details)Jun 2 2022, 2:17 PM
kda updated this revision to Diff 433887.Jun 2 2022, 2:18 PM
kda marked 2 inline comments as done.

eliminate read checking

vitalybuka accepted this revision.Jun 2 2022, 4:05 PM
This revision is now accepted and ready to land.Jun 2 2022, 4:05 PM
kda updated this revision to Diff 434050.Jun 3 2022, 9:49 AM

eliminate read checking

This revision was landed with ongoing or failed builds.Jun 3 2022, 9:49 AM
This revision was automatically updated to reflect the committed changes.
kda added a comment.Jun 3 2022, 11:13 AM

I am aware of this breakage: https://lab.llvm.org/buildbot/#/builders/77/builds/18273

I will push a fix shortly.

I am aware of this breakage: https://lab.llvm.org/buildbot/#/builders/77/builds/18273

I will push a fix shortly.

Thanks!