Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_poisoning.cpp35 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow() function
287 PoisonShadow(addr, aligned_size, in PoisonAlignedStackMemory()
463 PoisonShadow(a, b1 - a, 0); in __sanitizer_annotate_contiguous_container()
465 PoisonShadow(b2, c - b2, kAsanContiguousContainerOOBMagic); in __sanitizer_annotate_contiguous_container()
520 PoisonShadow(a, b - a, kAsanContiguousContainerOOBMagic); in __sanitizer_annotate_double_ended_contiguous_container()
527 PoisonShadow(a, b - a, 0); in __sanitizer_annotate_double_ended_contiguous_container()
545 PoisonShadow(a, c - a, 0); in __sanitizer_annotate_double_ended_contiguous_container()
554 PoisonShadow(a, c - a, kAsanContiguousContainerOOBMagic); in __sanitizer_annotate_double_ended_contiguous_container()
562 PoisonShadow(a, c - a, 0); in __sanitizer_annotate_double_ended_contiguous_container()
570 PoisonShadow(a2, c2 - a2, kAsanContiguousContainerOOBMagic); in __sanitizer_annotate_double_ended_contiguous_container()
H A Dasan_allocator.cpp219 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in PreQuarantine()
242 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in Recycle()
283 PoisonShadow(p, size, kAsanHeapLeftRedzoneMagic); in OnMap()
297 PoisonShadow(p, user_begin - p, kAsanHeapLeftRedzoneMagic); in OnMapSecondary()
298 PoisonShadow(user_end, size - (user_end - p), kAsanHeapLeftRedzoneMagic); in OnMapSecondary()
306 PoisonShadow(p, size, 0); in OnUnmap()
412 PoisonShadow(chunk, beg - chunk, kAsanHeapLeftRedzoneMagic); in RePoisonChunk()
423 PoisonShadow(chunk, allocated_size, kAsanHeapLeftRedzoneMagic); in RePoisonChunk()
618 PoisonShadow(alloc_beg, user_beg - alloc_beg, kAsanHeapLeftRedzoneMagic); in Allocate()
619 PoisonShadow(tail_beg, tail_end - tail_beg, kAsanHeapLeftRedzoneMagic); in Allocate()
[all …]
H A Dasan_rtl.cpp106 PoisonShadow(ptr, size, kAsanInternalHeapMagic); in OnLowLevelAllocate()
570 PoisonShadow(bottom, RoundUpTo(top - bottom, ASAN_SHADOW_GRANULARITY), 0); in UnpoisonStack()
628 PoisonShadow(bottom, (uptr)sp - bottom, 0); in __asan_handle_vfork()
H A Dasan_poisoning.h27 void PoisonShadow(uptr addr, uptr size, u8 value);
H A Dasan_fake_stack.cpp40 PoisonShadow(ptr, size, static_cast<u8>(magic)); in SetShadow()
81 PoisonShadow(reinterpret_cast<uptr>(this), RequiredSize(stack_size_log()), in PoisonAll()
H A Dasan_interceptors.cpp162 PoisonShadow(beg, RoundUpTo(length, GetPageSize()), 0);
176 PoisonShadow(beg, rounded_length, 0); in munmap_interceptor()
352 PoisonShadow(bottom, ssize, 0); in ClearShadowMemoryForContextStack()
H A Dasan_globals.cpp403 PoisonShadow(reinterpret_cast<uptr>(globals), n * sizeof(__asan_global), in __asan_register_globals()
422 PoisonShadow(reinterpret_cast<uptr>(globals), n * sizeof(__asan_global), 0); in __asan_unregister_globals()
H A Dasan_thread.cpp323 PoisonShadow(stack_bottom_, stack_top_ - stack_bottom_, 0); in ClearShadowForThreadStackAndTLS()