Home
last modified time | relevance | path

Searched refs:shadow_start (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/compiler-rt/lib/asan/
Dasan_shadow_setup.cpp60 uptr shadow_start = kLowShadowBeg; in InitializeShadowMemory() local
66 if (shadow_start == kDefaultShadowSentinel) { in InitializeShadowMemory()
67 shadow_start = FindDynamicShadowStart(); in InitializeShadowMemory()
71 __asan_shadow_memory_dynamic_address = shadow_start; in InitializeShadowMemory()
73 if (kLowShadowBeg) shadow_start -= GetMmapGranularity(); in InitializeShadowMemory()
77 MemoryRangeIsAvailable(shadow_start, kHighShadowEnd); in InitializeShadowMemory()
92 ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow"); in InitializeShadowMemory()
99 MemoryRangeIsAvailable(shadow_start, kMidMemBeg - 1) && in InitializeShadowMemory()
103 ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow"); in InitializeShadowMemory()
117 shadow_start, kHighShadowEnd); in InitializeShadowMemory()
Dasan_linux.cpp93 uptr shadow_start = reinterpret_cast<uptr>(&__asan_shadow); in FindPremappedShadowStart() local
97 UnmapFromTo(shadow_start + shadow_size, shadow_start + premap_shadow_size); in FindPremappedShadowStart()
98 return shadow_start; in FindPremappedShadowStart()
Dasan_rtems.cpp32 uptr shadow_start = SHADOW_OFFSET; in ResetShadowMemory() local
34 uptr gap_start = MEM_TO_SHADOW(shadow_start); in ResetShadowMemory()
37 REAL(memset)((void *)shadow_start, 0, shadow_end - shadow_start); in ResetShadowMemory()
/external/llvm-project/compiler-rt/lib/hwasan/
Dhwasan_poisoning.cpp25 uptr shadow_start = MemToShadow(p); in TagMemoryAligned() local
29 uptr page_start = RoundUpTo(shadow_start, page_size); in TagMemoryAligned()
30 uptr page_end = RoundDownTo(shadow_start + shadow_size, page_size); in TagMemoryAligned()
34 internal_memset((void *)shadow_start, tag, page_start - shadow_start); in TagMemoryAligned()
36 shadow_start + shadow_size - page_end); in TagMemoryAligned()
41 internal_memset((void *)shadow_start, tag, shadow_size); in TagMemoryAligned()
Dhwasan_dynamic_shadow.cpp58 const uptr shadow_start = reinterpret_cast<uptr>(&__hwasan_shadow); in FindPremappedShadowStart() local
63 UnmapFromTo(shadow_start + shadow_size, shadow_start + premap_shadow_size); in FindPremappedShadowStart()
64 return shadow_start; in FindPremappedShadowStart()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_shadow_setup.cpp42 uptr shadow_start = FindDynamicShadowStart(); in InitializeShadowMemory() local
44 __memprof_shadow_memory_dynamic_address = shadow_start; in InitializeShadowMemory()
47 shadow_start -= GetMmapGranularity(); in InitializeShadowMemory()
54 ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow"); in InitializeShadowMemory()
/external/compiler-rt/lib/asan/
Dasan_rtl.cc456 uptr shadow_start = kLowShadowBeg; in AsanInitInternal() local
458 shadow_start -= GetMmapGranularity(); in AsanInitInternal()
460 MemoryRangeIsAvailable(shadow_start, kHighShadowEnd); in AsanInitInternal()
483 ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow"); in AsanInitInternal()
490 MemoryRangeIsAvailable(shadow_start, kMidMemBeg - 1) && in AsanInitInternal()
494 ReserveShadowMemoryRange(shadow_start, kLowShadowEnd, "low shadow"); in AsanInitInternal()
507 shadow_start, kHighShadowEnd); in AsanInitInternal()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_mac.cpp1149 uptr shadow_start = in MapDynamicShadow() local
1153 if (shadow_start == 0) { in MapDynamicShadow()
1171 shadow_start = FindAvailableMemoryRange(space_size, alignment, granularity, in MapDynamicShadow()
1173 if (shadow_start == 0) { in MapDynamicShadow()
1178 CHECK_NE((uptr)0, shadow_start); in MapDynamicShadow()
1179 CHECK(IsAligned(shadow_start, alignment)); in MapDynamicShadow()
1180 return shadow_start; in MapDynamicShadow()
Dsanitizer_linux_libcdep.cpp901 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow() local
903 UnmapFromTo(map_start, shadow_start - left_padding); in MapDynamicShadow()
904 UnmapFromTo(shadow_start + shadow_size, map_start + map_size); in MapDynamicShadow()
906 return shadow_start; in MapDynamicShadow()
Dsanitizer_win.cpp360 uptr shadow_start = FindAvailableMemoryRange(space_size, alignment, in MapDynamicShadow() local
362 CHECK_NE((uptr)0, shadow_start); in MapDynamicShadow()
363 CHECK(IsAligned(shadow_start, alignment)); in MapDynamicShadow()
364 return shadow_start; in MapDynamicShadow()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc189 char *shadow_start = (char*)MemToShadow(start); in MapRodata() local
191 for (char *p = shadow_start; p < shadow_end; p += marker.size()) { in MapRodata()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cpp203 char *shadow_start = (char *)MemToShadow(segment.start); in MapRodata() local
205 for (char *p = shadow_start; p < shadow_end; in MapRodata()