Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/
Dasan_mapping.h193 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET)) macro
200 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd)
202 #define kHighMemBeg (MEM_TO_SHADOW(kHighMemEnd) + 1)
204 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg)
205 #define kHighShadowEnd MEM_TO_SHADOW(kHighMemEnd)
207 # define kMidShadowBeg MEM_TO_SHADOW(kMidMemBeg)
208 # define kMidShadowEnd MEM_TO_SHADOW(kMidMemEnd)
280 return MEM_TO_SHADOW(p); in MemToShadow()
321 u8 *shadow_address = (u8*)MEM_TO_SHADOW(a); in AddressIsPoisoned()
Dasan_poisoning.h42 uptr shadow_beg = MEM_TO_SHADOW(aligned_beg); in FastPoisonShadow()
43 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow()
76 u8 *shadow = (u8*)MEM_TO_SHADOW(aligned_addr); in FastPoisonShadowPartialRightRedzone()
Dasan_rtl.cc161 uptr sp = MEM_TO_SHADOW(addr); \ in ASAN_REPORT_ERROR_N()
378 (void*)MEM_TO_SHADOW(kLowShadowBeg), in PrintAddressSpaceLayout()
379 (void*)MEM_TO_SHADOW(kLowShadowEnd), in PrintAddressSpaceLayout()
380 (void*)MEM_TO_SHADOW(kHighShadowBeg), in PrintAddressSpaceLayout()
381 (void*)MEM_TO_SHADOW(kHighShadowEnd)); in PrintAddressSpaceLayout()
384 (void*)MEM_TO_SHADOW(kMidShadowBeg), in PrintAddressSpaceLayout()
385 (void*)MEM_TO_SHADOW(kMidShadowEnd)); in PrintAddressSpaceLayout()
Dasan_poisoning.cc266 uptr s = MEM_TO_SHADOW(p); in __asan_poison_cxx_array_cookie()
274 uptr s = MEM_TO_SHADOW(reinterpret_cast<uptr>(p)); in __asan_load_cxx_array_cookie()
Dasan_allocator.cc379 if (*(u8 *)MEM_TO_SHADOW((uptr)allocated) == 0 && CanPoisonMemory()) { in Allocate()
/external/compiler-rt/lib/msan/
Dmsan_poisoning.cc27 unsigned char *s = (unsigned char *)MEM_TO_SHADOW(addr); in GetOriginIfPoisoned()
35 uptr dst_s = MEM_TO_SHADOW(addr); in SetOriginIfPoisoned()
78 u32 *src_s = (u32 *)MEM_TO_SHADOW(s); in CopyOrigin()
103 REAL(memmove)((void *)MEM_TO_SHADOW((uptr)dst), in MoveShadowAndOrigin()
104 (void *)MEM_TO_SHADOW((uptr)src), size); in MoveShadowAndOrigin()
112 REAL(memcpy)((void *)MEM_TO_SHADOW((uptr)dst), in CopyShadowAndOrigin()
113 (void *)MEM_TO_SHADOW((uptr)src), size); in CopyShadowAndOrigin()
124 uptr shadow_beg = MEM_TO_SHADOW(ptr); in SetShadow()
Dmsan_linux.cc89 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
91 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
94 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
96 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
99 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
101 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
Dmsan.h52 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) & ~0x4000000000ULL) macro
107 # define MEM_TO_SHADOW(mem) ((uptr)mem ^ 0x6000000000ULL) macro
126 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x080000000000ULL) macro
147 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x100000000000ULL) macro
162 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) & ~0x400000000000ULL) macro
183 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL) macro
193 #define MEM_TO_ORIGIN(mem) (SHADOW_TO_ORIGIN(MEM_TO_SHADOW((mem))))
Dmsan.cc465 unsigned char *s = (unsigned char*)MEM_TO_SHADOW(x); in __msan_dump_shadow()
473 unsigned char *s = (unsigned char *)MEM_TO_SHADOW((uptr)x); in __msan_test_shadow()
511 internal_memcpy((void*)MEM_TO_SHADOW((uptr)data), shadow, size); in __msan_partial_poison()
586 *(uu16 *)&__msan_retval_tls[0] = *(uu16 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load16()
592 *(uu32 *)&__msan_retval_tls[0] = *(uu32 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load32()
598 __msan_retval_tls[0] = *(uu64 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load64()
605 *(uu16 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store16()
613 *(uu32 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store32()
621 *(uu64 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store64()
Dmsan_report.cc186 uptr start = MEM_TO_SHADOW(x); in DescribeMemoryRange()
Dmsan_allocator.cc36 FlushUnneededShadowMemory(MEM_TO_SHADOW(p), size); in OnUnmap()