This is an archive of the discontinued LLVM Phabricator instance.

[ASan] Refactored SHADOW_OFFSET implementation to use SHADOW_OFFSET_CONST.
ClosedPublic

Authored by kstoimenov on Dec 6 2021, 7:20 PM.

Diff Detail

Event Timeline

kstoimenov created this revision.Dec 6 2021, 7:20 PM
kstoimenov requested review of this revision.Dec 6 2021, 7:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2021, 7:20 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kstoimenov retitled this revision from [ASan] Refactored SHADOW_OFFSET implementation. to [ASan] Refactored SHADOW_OFFSET implementation to use SHADOW_OFFSET_CONST. .Dec 6 2021, 7:21 PM
kstoimenov added a reviewer: vitalybuka.

I guess instead of skipping cases you need to have an empty branch

compiler-rt/lib/asan/asan_mapping.h
183

SANITIZER_ANDROID before

195

SANITIZER_ANDROID after

kstoimenov updated this revision to Diff 392267.Dec 6 2021, 7:47 PM
kstoimenov retitled this revision from [ASan] Refactored SHADOW_OFFSET implementation to use SHADOW_OFFSET_CONST. to [ASan] Refactored SHADOW_OFFSET implementation to use SHADOW_OFFSET_CONST..

Added back some ifs.

vitalybuka accepted this revision.Dec 6 2021, 7:50 PM

Mayby this was the reason and we missed some if before revert

This revision is now accepted and ready to land.Dec 6 2021, 7:50 PM
kstoimenov marked 2 inline comments as done.Dec 6 2021, 7:52 PM

Good catch. I think this is what tripping it over before.

kstoimenov updated this revision to Diff 392384.Dec 7 2021, 6:53 AM

Added SHADOW_OFFSET_DYNAMIC.

kstoimenov updated this revision to Diff 392386.Dec 7 2021, 6:55 AM

Missed 2 spots.

Added SHADOW_OFFSET_DYNAMIC, PTAL.

kstoimenov updated this revision to Diff 392440.Dec 7 2021, 9:39 AM

After rebase.

This revision was landed with ongoing or failed builds.Dec 7 2021, 9:53 AM
This revision was automatically updated to reflect the committed changes.