[5/11] patch series to port ASAN for riscv64
Depends On D87573
Paths
| Differential D87574
[RISCV][ASAN] implementation for vfork interceptor for riscv64 ClosedPublic Authored by EccoTheDolphin on Sep 12 2020, 6:06 PM.
Details
Diff Detail
Event TimelineHerald added subscribers: Restricted Project, evandro, luismarques and 26 others. · View Herald Transcript EccoTheDolphin added a child revision: D87575: [RISCV][ASAN] implementation of ThreadSelf for riscv64.Sep 12 2020, 6:08 PM Comment Actions This looks reasonable, but I'm not very familiar with the ISA.
This revision is now accepted and ready to land.Sep 16 2020, 2:31 PM
EccoTheDolphin retitled this revision from [RISCV][ASAN] implementation for vfork interceptor to [RISCV][ASAN] implementation for vfork interceptor for riscv64.Sep 20 2020, 11:29 PM Comment Actions Can we please just have a riscv version that works for both RV32 and RV64? It should just be a case of changing some ld/sd's to LOAD/STORE macros that are either [ls]w or [ls]d, and the various multiples of 8 to n*__riscv_xlen instead.
Comment Actions
The purpose of this commit series is to make sure sure we have ASAN support functional for RISCV64. I have the setup and a decent passrate. Making sure that some code does work on RV32 requires a dedicated testing environment. I can address RV32 case in a subsequent commit .
This revision was landed with ongoing or failed builds.Sep 22 2020, 10:23 PM Closed by commit rGaa1b1d35cbf6: [RISCV][ASAN] implementation for vfork interceptor for riscv64 (authored by smd, committed by vitalybuka). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 293646 compiler-rt/lib/asan/asan_interceptors.h
compiler-rt/lib/asan/asan_interceptors_vfork.S
compiler-rt/lib/hwasan/hwasan_interceptors_vfork.S
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_riscv64.inc.S
|
Why is this using SANITIZER_RISCV64 when all the other arches query their compiler-defined macros directly?