Searched refs:SHADOW_GRANULARITY (Results 1 – 8 of 8) sorted by relevance
/external/compiler-rt/lib/asan/ |
D | asan_poisoning.cc | 39 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 …]
|
D | asan_poisoning.h | 44 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()
|
D | asan_mapping.h | 192 #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()
|
D | asan_globals.cc | 64 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()
|
D | asan_rtl.cc | 162 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()
|
D | asan_fake_stack.cc | 269 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()
|
D | asan_allocator.cc | 142 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()
|
D | asan_report.cc | 152 (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()
|