Home
last modified time | relevance | path

Searched refs:MEM_TO_SHADOW (Results 1 – 7 of 7) sorted by relevance

/external/compiler-rt/lib/asan/
Dasan_mapping.h92 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET)) macro
99 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd)
101 #define kHighMemBeg (MEM_TO_SHADOW(kHighMemEnd) + 1)
103 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg)
104 #define kHighShadowEnd MEM_TO_SHADOW(kHighMemEnd)
106 # define kMidShadowBeg MEM_TO_SHADOW(kMidMemBeg)
107 # define kMidShadowEnd MEM_TO_SHADOW(kMidMemEnd)
179 return MEM_TO_SHADOW(p); in MemToShadow()
220 u8 *shadow_address = (u8*)MEM_TO_SHADOW(a); in AddressIsPoisoned()
Dasan_poisoning.h37 uptr shadow_beg = MEM_TO_SHADOW(aligned_beg); in FastPoisonShadow()
38 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow()
46 u8 *shadow = (u8*)MEM_TO_SHADOW(aligned_addr); in FastPoisonShadowPartialRightRedzone()
Dasan_rtl.cc367 (void*)MEM_TO_SHADOW(kLowShadowBeg), in PrintAddressSpaceLayout()
368 (void*)MEM_TO_SHADOW(kLowShadowEnd), in PrintAddressSpaceLayout()
369 (void*)MEM_TO_SHADOW(kHighShadowBeg), in PrintAddressSpaceLayout()
370 (void*)MEM_TO_SHADOW(kHighShadowEnd)); in PrintAddressSpaceLayout()
373 (void*)MEM_TO_SHADOW(kMidShadowBeg), in PrintAddressSpaceLayout()
374 (void*)MEM_TO_SHADOW(kMidShadowEnd)); in PrintAddressSpaceLayout()
/external/compiler-rt/lib/msan/
Dmsan.cc333 unsigned char *s = (unsigned char*)MEM_TO_SHADOW(x); in __msan_print_shadow()
355 unsigned char *s = (unsigned char*)MEM_TO_SHADOW((uptr)x); in __msan_test_shadow()
403 internal_memcpy((void*)MEM_TO_SHADOW((uptr)data), shadow, size); in __msan_partial_poison()
478 __msan_retval_tls[0] = *(uu16 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load16()
482 __msan_retval_tls[0] = *(uu32 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load32()
486 __msan_retval_tls[0] = *(uu64 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load64()
490 *(uu16 *)MEM_TO_SHADOW((uptr)p) = __msan_param_tls[1]; in __sanitizer_unaligned_store16()
494 *(uu32 *)MEM_TO_SHADOW((uptr)p) = __msan_param_tls[1]; in __sanitizer_unaligned_store32()
498 *(uu64 *)MEM_TO_SHADOW((uptr)p) = __msan_param_tls[1]; in __sanitizer_unaligned_store64()
Dmsan_linux.cc38 static const uptr kShadowBeg = MEM_TO_SHADOW(kMemBeg);
39 static const uptr kShadowEnd = MEM_TO_SHADOW(kMemEnd);
Dmsan.h28 #define MEM_TO_SHADOW(mem) (((uptr)mem) & ~0x400000000000ULL) macro
29 #define MEM_TO_ORIGIN(mem) (MEM_TO_SHADOW(mem) + 0x200000000000ULL)
Dmsan_interceptors.cc1098 fast_memset((void*)MEM_TO_SHADOW((uptr)a), 0, size); in __msan_unpoison()
1103 fast_memset((void*)MEM_TO_SHADOW((uptr)a), in __msan_poison()
1109 fast_memset((void*)MEM_TO_SHADOW((uptr)a), in __msan_poison_stack()
1115 fast_memset((void*)MEM_TO_SHADOW((uptr)a), 0, size); in __msan_clear_and_unpoison()
1132 fast_memcpy((void*)MEM_TO_SHADOW((uptr)dst), in __msan_copy_poison()
1133 (void*)MEM_TO_SHADOW((uptr)src), size); in __msan_copy_poison()
1140 internal_memmove((void*)MEM_TO_SHADOW((uptr)dst), in __msan_move_poison()
1141 (void*)MEM_TO_SHADOW((uptr)src), size); in __msan_move_poison()