Searched refs:SHADOW_GRANULARITY (Results 1 – 7 of 7) sorted by relevance
/external/compiler-rt/lib/asan/ |
D | asan_poisoning.h | 41 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()
|
D | asan_poisoning.cc | 28 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()
|
D | asan_mapping.h | 125 #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()
|
D | asan_globals.cc | 62 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()
|
D | asan_rtl.cc | 393 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()
|
D | asan_allocator2.cc | 185 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()
|
D | asan_report.cc | 117 (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()
|