1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Instrumentation/HWAddressSanitizer
Peter Collingbourne f94f2b195d hwasan: Emit the globals note even when globals are uninstrumented.
This lets us support the scenario where a binary is linked from a mix
of object files with both instrumented and non-instrumented globals.
This is likely to occur on Android where the decision of whether to use
instrumented globals is based on the API level, which is user-facing.

Previously, in this scenario, it was possible for the comdat from
one of the object files with non-instrumented globals to be selected,
and since this comdat did not contain the note it would mean that the
note would be missing in the linked binary and the globals' shadow
memory would be left uninitialized, leading to a tag mismatch failure
at runtime when accessing one of the instrumented globals.

It is harmless to include the note when targeting a runtime that does
not support instrumenting globals because it will just be ignored.

Differential Revision: https://reviews.llvm.org/D85871
2020-08-13 16:33:22 -07:00
..
X86
alloca-array.ll hwasan: Pad arrays with non-1 size correctly. 2019-07-16 03:25:50 +00:00
alloca-compat.ll hwasan: Compatibility fixes for short granules. 2019-09-27 01:02:10 +00:00
alloca-with-calls.ll hwasan: Pad arrays with non-1 size correctly. 2019-07-16 03:25:50 +00:00
alloca.ll hwasan: Compatibility fixes for short granules. 2019-09-27 01:02:10 +00:00
atomic.ll hwasan: Move memory access checks into small outlined functions on aarch64. 2019-01-23 02:20:10 +00:00
basic-compat.ll hwasan: Compatibility fixes for short granules. 2019-09-27 01:02:10 +00:00
basic.ll hwasan: Compatibility fixes for short granules. 2019-09-27 01:02:10 +00:00
dbg-declare-tag-offset.ll hwasan: Use bits [3..11) of the ring buffer entry address as the base stack tag. 2019-06-17 23:39:51 +00:00
dbg-value-tag-offset.ll hwasan: add tag_offset DWARF attribute to optimized debug info 2019-12-12 16:18:54 -08:00
globals.ll hwasan: Emit the globals note even when globals are uninstrumented. 2020-08-13 16:33:22 -07:00
kernel-alloca.ll Added address-space mangling for stack related intrinsics 2019-07-22 12:42:48 +00:00
kernel-inline.ll
kernel.ll hwasan: Move memory access checks into small outlined functions on aarch64. 2019-01-23 02:20:10 +00:00
landingpad.ll hwasan: Untag unwound stack frames by wrapping personality functions. 2019-08-23 01:28:44 +00:00
mem-intrinsics.ll [HWASAN] Instrument memorty intrinsics by default 2018-12-24 16:02:48 +00:00
personality.ll hwasan: Untag unwound stack frames by wrapping personality functions. 2019-08-23 01:28:44 +00:00
prologue.ll hwasan: Use llvm.read_register intrinsic to read the PC on aarch64 instead of taking the function's address. 2019-06-27 23:24:07 +00:00
with-calls.ll hwasan: Remove the old frame descriptor mechanism. 2019-06-28 17:53:26 +00:00