Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/
Dasan_poisoning.h41 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
74 for (uptr i = 0; i < redzone_size; i += SHADOW_GRANULARITY, shadow++) { in FastPoisonShadowPartialRightRedzone()
75 if (i + SHADOW_GRANULARITY <= size) { in FastPoisonShadowPartialRightRedzone()
78 *shadow = (SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable in FastPoisonShadowPartialRightRedzone()
Dasan_poisoning.cc28 CHECK(AddrIsInMem(addr + size - SHADOW_GRANULARITY)); in PoisonShadow()
50 offset = address & (SHADOW_GRANULARITY - 1); in ShadowSegmentEndpoint()
159 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
160 uptr aligned_e = RoundDownTo(end, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
234 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory()
276 uptr granularity = SHADOW_GRANULARITY; in __sanitizer_annotate_contiguous_container()
Dasan_mapping.h125 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE) macro
247 return (a & (SHADOW_GRANULARITY - 1)) == 0; in AddrIsAlignedByGranularity()
256 u8 last_accessed_byte = (a & (SHADOW_GRANULARITY - 1)) in AddressIsPoisoned()
Dasan_globals.cc62 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones()
67 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY), in PoisonRedZones()
68 g.size % SHADOW_GRANULARITY, in PoisonRedZones()
69 SHADOW_GRANULARITY, in PoisonRedZones()
Dasan_rtl.cc393 uptr s = size <= SHADOW_GRANULARITY ? *reinterpret_cast<u8 *>(sp) \
396 if (UNLIKELY(size >= SHADOW_GRANULARITY || \
397 ((s8)((addr & (SHADOW_GRANULARITY - 1)) + size - 1)) >= \
496 kHighMemEnd |= SHADOW_GRANULARITY * GetPageSizeCached() - 1; in InitializeHighMemEnd()
546 Printf("SHADOW_GRANULARITY: %zx\n", (uptr)SHADOW_GRANULARITY); in PrintAddressSpaceLayout()
Dasan_allocator2.cc185 uptr available = RoundUpTo(user_requested_size, SHADOW_GRANULARITY); in FreeStackSize()
243 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in Recycle()
289 const uptr min_alignment = SHADOW_GRANULARITY; in Allocate()
377 uptr size_rounded_down_to_granularity = RoundDownTo(size, SHADOW_GRANULARITY); in Allocate()
384 *shadow = fl.poison_partial ? (size & (SHADOW_GRANULARITY - 1)) : 0; in Allocate()
446 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in QuarantineChunk()
Dasan_report.cc117 (int)SHADOW_GRANULARITY); in PrintLegend()
120 for (u8 i = 1; i < SHADOW_GRANULARITY; i++) PrintShadowByte(str, "", i, " "); in PrintLegend()
864 if (*shadow_addr == 0 && access_size > SHADOW_GRANULARITY) in __asan_report_error()