Searched refs:ASAN_SHADOW_GRANULARITY (Results 1 – 9 of 9) sorted by relevance
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_poisoning.h | 48 MEM_TO_SHADOW(aligned_beg + aligned_size - ASAN_SHADOW_GRANULARITY) + 1; in FastPoisonShadow() 81 for (uptr i = 0; i < redzone_size; i += ASAN_SHADOW_GRANULARITY, shadow++) { in FastPoisonShadowPartialRightRedzone() 82 if (i + ASAN_SHADOW_GRANULARITY <= size) { in FastPoisonShadowPartialRightRedzone() 86 (ASAN_SHADOW_GRANULARITY == 128) ? 0xff : value; // unaddressable in FastPoisonShadowPartialRightRedzone()
|
H A D | asan_thread.cpp | 313 stack_top_ = RoundDownTo(stack_bottom_ + stack_size, ASAN_SHADOW_GRANULARITY); in SetThreadStackAndTls() 314 stack_bottom_ = RoundDownTo(stack_bottom_, ASAN_SHADOW_GRANULARITY); in SetThreadStackAndTls() 330 uptr tls_begin_aligned = RoundDownTo(tls_begin_, ASAN_SHADOW_GRANULARITY); in ClearShadowForThreadStackAndTLS() 331 uptr tls_end_aligned = RoundUpTo(tls_end_, ASAN_SHADOW_GRANULARITY); in ClearShadowForThreadStackAndTLS() 353 uptr mem_ptr = RoundDownTo(aligned_addr, ASAN_SHADOW_GRANULARITY); in GetStackFrameAccessByAddr() 360 mem_ptr -= ASAN_SHADOW_GRANULARITY; in GetStackFrameAccessByAddr() 366 mem_ptr -= ASAN_SHADOW_GRANULARITY; in GetStackFrameAccessByAddr() 373 uptr *ptr = (uptr *)(mem_ptr + ASAN_SHADOW_GRANULARITY); in GetStackFrameAccessByAddr()
|
H A D | asan_rtl.cpp | 161 uptr s = size <= ASAN_SHADOW_GRANULARITY ? *reinterpret_cast<u8 *>(sp) \ 164 if (UNLIKELY(size >= ASAN_SHADOW_GRANULARITY || \ 165 ((s8)((addr & (ASAN_SHADOW_GRANULARITY - 1)) + size - 1)) >= \ 384 Printf("SHADOW_GRANULARITY: %d\n", (int)ASAN_SHADOW_GRANULARITY); in PrintAddressSpaceLayout() 439 SetLowLevelAllocateMinAlignment(ASAN_SHADOW_GRANULARITY); in AsanInitInternal() 569 PoisonShadow(bottom, RoundUpTo(top - bottom, ASAN_SHADOW_GRANULARITY), 0); in UnpoisonStack()
|
H A D | asan_mapping.h | 242 # define ASAN_SHADOW_GRANULARITY (1ULL << ASAN_SHADOW_SCALE) macro 392 return (a & (ASAN_SHADOW_GRANULARITY - 1)) == 0; in AddrIsAlignedByGranularity() 402 (a & (ASAN_SHADOW_GRANULARITY - 1)) + kAccessSize - 1; in AddressIsPoisoned()
|
H A D | asan_flags.cpp | 144 if (f->redzone < (int)ASAN_SHADOW_GRANULARITY) in InitializeFlags() 145 f->redzone = ASAN_SHADOW_GRANULARITY; in InitializeFlags()
|
H A D | asan_globals.cpp | 63 uptr aligned_size = RoundUpTo(g.size, ASAN_SHADOW_GRANULARITY); in PoisonRedZones() 68 g.beg + RoundDownTo(g.size, ASAN_SHADOW_GRANULARITY), in PoisonRedZones() 69 g.size % ASAN_SHADOW_GRANULARITY, ASAN_SHADOW_GRANULARITY, in PoisonRedZones()
|
H A D | asan_allocator.cpp | 219 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in PreQuarantine() 242 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in Recycle() 292 uptr user_end = RoundDownTo(user_begin + user_size, ASAN_SHADOW_GRANULARITY); in OnMapSecondary() 293 user_begin = RoundUpTo(user_begin, ASAN_SHADOW_GRANULARITY); in OnMapSecondary() 413 uptr end_aligned_down = RoundDownTo(end, ASAN_SHADOW_GRANULARITY); in RePoisonChunk() 539 const uptr min_alignment = ASAN_SHADOW_GRANULARITY; in Allocate() 616 uptr tail_beg = RoundUpTo(user_end, ASAN_SHADOW_GRANULARITY); in Allocate() 623 RoundDownTo(size, ASAN_SHADOW_GRANULARITY); in Allocate() 631 *shadow = fl.poison_partial ? (size & (ASAN_SHADOW_GRANULARITY - 1)) : 0; in Allocate()
|
H A D | asan_interceptors_memintrinsics.h | 29 if (UNLIKELY(size == 0 || size > sizeof(uptr) * ASAN_SHADOW_GRANULARITY)) in DECLARE_REAL()
|
H A D | asan_activation.cpp | 115 disabled.min_redzone = Max(16, (int)ASAN_SHADOW_GRANULARITY); in AsanDeactivate()
|