[hwasan] Record allocation thread id in HeapAllocationRecord
authorEnna1 <xumingjie.enna1@bytedance.com>
Tue, 4 Apr 2023 03:24:46 +0000 (11:24 +0800)
committerEnna1 <xumingjie.enna1@bytedance.com>
Tue, 4 Apr 2023 03:25:18 +0000 (11:25 +0800)
commitdc7498eb027b512091159731163327a0ff4f182e
treec33cc93be3146b4312dbfcec81066a100ceb5264
parent329cb1d3f4d590fac8221f0356fb086f9b196e40
[hwasan] Record allocation thread id in HeapAllocationRecord

Extend HeapAllocationRecord to record allocation thread id, print thread id in memory allocation stack trace.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D147215
compiler-rt/lib/hwasan/hwasan_allocator.cpp
compiler-rt/lib/hwasan/hwasan_allocator.h
compiler-rt/lib/hwasan/hwasan_report.cpp
compiler-rt/test/hwasan/TestCases/double-free.c
compiler-rt/test/hwasan/TestCases/hwasan_symbolize.cpp
compiler-rt/test/hwasan/TestCases/realloc-after-free.c
compiler-rt/test/hwasan/TestCases/set-error-report-callback.cpp
compiler-rt/test/hwasan/TestCases/tag_in_free.c
compiler-rt/test/hwasan/TestCases/thread-uaf.c
compiler-rt/test/hwasan/TestCases/use-after-free.c