[HWASA] Restore LsanMetadata from D141642 Diff5
authorVitaly Buka <vitalybuka@google.com>
Wed, 18 Jan 2023 07:40:30 +0000 (23:40 -0800)
committerVitaly Buka <vitalybuka@google.com>
Wed, 18 Jan 2023 07:45:51 +0000 (23:45 -0800)
commit0e08a85429567343f087fa8631c2a6a05258bf70
tree96f33dc246f786ab30eba402e85a43bb15cdcd28
parentd94b069a89ec6c54030540c031a1032845bdbac0
[HWASA] Restore LsanMetadata from D141642 Diff5

Unlike asan, we can't use pointer arithmetics to get from user ptr to
metadata. Asan does not use CombinedAllocator::GetMetadata and store
metadata next to the user data.
compiler-rt/lib/hwasan/hwasan_allocator.cpp