This is an archive of the discontinued LLVM Phabricator instance.

[asan] Add unaligned double ended container support
ClosedPublic

Authored by vitalybuka on Nov 27 2022, 10:52 PM.

Diff Detail

Event Timeline

vitalybuka created this revision.Nov 27 2022, 10:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2022, 10:52 PM
Herald added a subscriber: Enna1. · View Herald Transcript
vitalybuka requested review of this revision.Nov 27 2022, 10:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2022, 10:52 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kstoimenov added inline comments.Nov 28 2022, 4:21 PM
compiler-rt/test/asan/TestCases/contiguous_container.cpp
1

Should we also turn on explicitly -fsanitize=alignment to make sure that it works when alignment checks are on? Also make sure that the data that we are passing in is not aligned?

vitalybuka added inline comments.Nov 28 2022, 6:02 PM
compiler-rt/test/asan/TestCases/contiguous_container.cpp
1

Probably no, I don't expect anything special from alignment checks.

AdvenamTacet accepted this revision.Nov 28 2022, 9:01 PM

D138771 LGTM; I was looking on a support for unaligned double ended containers (with shared granules) in parallel, so I tested that implementation on an alternative test case I wrote independently.

Btw. I think compiler-rt/test/asan/TestCases/contiguous_container.cpp deserves a variable name refactor, but that's for another patch/revision.

This revision is now accepted and ready to land.Nov 28 2022, 9:01 PM
This revision was landed with ongoing or failed builds.Nov 29 2022, 10:57 AM
This revision was automatically updated to reflect the committed changes.