Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/
Dasan_poisoning.cc39 CHECK(AddrIsInMem(addr + size - SHADOW_GRANULARITY)); in PoisonShadow()
61 offset = address & (SHADOW_GRANULARITY - 1); in ShadowSegmentEndpoint()
85 CHECK(IsAligned(end, SHADOW_GRANULARITY)); in AsanPoisonOrUnpoisonIntraObjectRedzone()
86 if (!IsAligned(ptr, SHADOW_GRANULARITY)) { in AsanPoisonOrUnpoisonIntraObjectRedzone()
88 poison ? static_cast<u8>(ptr % SHADOW_GRANULARITY) : 0; in AsanPoisonOrUnpoisonIntraObjectRedzone()
89 ptr |= SHADOW_GRANULARITY - 1; in AsanPoisonOrUnpoisonIntraObjectRedzone()
92 for (; ptr < end; ptr += SHADOW_GRANULARITY) in AsanPoisonOrUnpoisonIntraObjectRedzone()
191 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
192 uptr aligned_e = RoundDownTo(end, SHADOW_GRANULARITY); in __asan_region_is_poisoned()
296 uptr aligned_size = size & ~(SHADOW_GRANULARITY - 1); in PoisonAlignedStackMemory()
[all …]
Dasan_poisoning.h44 aligned_beg + aligned_size - SHADOW_GRANULARITY) + 1; in FastPoisonShadow()
77 for (uptr i = 0; i < redzone_size; i += SHADOW_GRANULARITY, shadow++) { in FastPoisonShadowPartialRightRedzone()
78 if (i + SHADOW_GRANULARITY <= size) { in FastPoisonShadowPartialRightRedzone()
81 *shadow = (SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable in FastPoisonShadowPartialRightRedzone()
Dasan_mapping.h192 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE) macro
315 return (a & (SHADOW_GRANULARITY - 1)) == 0; in AddrIsAlignedByGranularity()
324 u8 last_accessed_byte = (a & (SHADOW_GRANULARITY - 1)) in AddressIsPoisoned()
Dasan_globals.cc64 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones()
69 g.beg + RoundDownTo(g.size, SHADOW_GRANULARITY), in PoisonRedZones()
70 g.size % SHADOW_GRANULARITY, in PoisonRedZones()
71 SHADOW_GRANULARITY, in PoisonRedZones()
Dasan_rtl.cc162 uptr s = size <= SHADOW_GRANULARITY ? *reinterpret_cast<u8 *>(sp) \
165 if (UNLIKELY(size >= SHADOW_GRANULARITY || \
166 ((s8)((addr & (SHADOW_GRANULARITY - 1)) + size - 1)) >= \
323 kHighMemEnd |= SHADOW_GRANULARITY * GetMmapGranularity() - 1; in InitializeHighMemEnd()
395 Printf("SHADOW_GRANULARITY: %d\n", (int)SHADOW_GRANULARITY); in PrintAddressSpaceLayout()
Dasan_fake_stack.cc269 uptr PartialRzAligned = PartialRzAddr & ~(SHADOW_GRANULARITY - 1); in __asan_alloca_poison()
272 PartialRzAligned, PartialRzAddr % SHADOW_GRANULARITY, in __asan_alloca_poison()
281 (bottom - top) / SHADOW_GRANULARITY); in __asan_allocas_unpoison()
Dasan_allocator.cc142 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in Recycle()
329 const uptr min_alignment = SHADOW_GRANULARITY; in Allocate()
425 RoundDownTo(size, SHADOW_GRANULARITY); in Allocate()
433 *shadow = fl.poison_partial ? (size & (SHADOW_GRANULARITY - 1)) : 0; in Allocate()
490 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in QuarantineChunk()
Dasan_report.cc152 (int)SHADOW_GRANULARITY); in PrintLegend()
155 for (u8 i = 1; i < SHADOW_GRANULARITY; i++) PrintShadowByte(str, "", i, " "); in PrintLegend()
957 uptr granularity = SHADOW_GRANULARITY; in ReportBadParamsToAnnotateContiguousContainer()
1093 if (*shadow_addr == 0 && access_size > SHADOW_GRANULARITY) in ReportGenericError()