| /freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform.h | 496 extern uptr vmaSize; 615 uptr VdsoBeg(void) { in VdsoBeg() 633 bool GetUserRegion(int i, uptr *start, uptr *end) { in GetUserRegion() 796 uptr MemToShadowImpl(uptr x) { in MemToShadowImpl() 811 uptr MemToShadow(uptr x) { in MemToShadow() 880 uptr ShadowToMemImpl(uptr s) { in ShadowToMemImpl() 910 uptr ShadowToMem(uptr s) { in ShadowToMem() 943 uptr p = Mapping::kTraceMemBeg + (uptr)tid * kTotalTraceSize; in GetThreadTraceImpl() 976 uptr p = Mapping::kTraceMemBeg + (uptr)tid * kTotalTraceSize in GetThreadTraceHeaderImpl() 1012 void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive); [all …]
|
| H A D | tsan_rtl.h | 335 uptr sp; 580 uptr TagFromShadowStackFrame(uptr pc); 592 void AddLocation(uptr addr, uptr size); 676 void MapShadow(uptr addr, uptr size); 678 void DontNeedShadowFor(uptr addr, uptr size); 691 bool IsExpectedReport(uptr addr, uptr size); 715 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write); 726 uptr size, uptr step, bool is_write); 755 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size); 756 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size); [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/asan/ |
| H A D | asan_interface_internal.h | 91 void __asan_set_shadow_00(uptr addr, uptr size); 93 void __asan_set_shadow_f1(uptr addr, uptr size); 95 void __asan_set_shadow_f2(uptr addr, uptr size); 97 void __asan_set_shadow_f3(uptr addr, uptr size); 99 void __asan_set_shadow_f5(uptr addr, uptr size); 101 void __asan_set_shadow_f8(uptr addr, uptr size); 125 uptr __asan_region_is_poisoned(uptr beg, uptr size); 153 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, 157 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, 164 void __asan_report_error(uptr pc, uptr bp, uptr sp, [all …]
|
| H A D | asan_fake_stack.h | 81 static uptr RequiredSize(uptr stack_size_log) { in RequiredSize() 92 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { in FlagsOffset() 98 static uptr NumberOfFrames(uptr stack_size_log, uptr class_id) { in NumberOfFrames() 103 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() 114 u8 *GetFrame(uptr stack_size_log, uptr class_id, uptr pos) { in GetFrame() 122 FakeFrame *Allocate(uptr stack_size_log, uptr class_id, uptr real_stack); 125 static void Deallocate(uptr x, uptr class_id) { in Deallocate() 133 uptr AddrIsInFakeStack(uptr addr, uptr *frame_beg, uptr *frame_end); 134 USED uptr AddrIsInFakeStack(uptr addr) { in AddrIsInFakeStack() 140 static uptr BytesInSizeClass(uptr class_id) { in BytesInSizeClass() [all …]
|
| H A D | asan_allocator.h | 70 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) const { in AddrIsInside() 114 uptr size_; 118 void OnMap(uptr p, uptr size) const; 119 void OnUnmap(uptr p, uptr size) const; 124 const uptr kAllocatorSpace = ~(uptr)0; 128 const uptr kAllocatorSpace = ~(uptr)0; 133 const uptr kAllocatorSpace = ~(uptr)0; 143 const uptr kAllocatorSpace = ~(uptr)0; 223 void asan_delete(void *ptr, uptr size, uptr alignment, 233 int asan_posix_memalign(void **memptr, uptr alignment, uptr size, [all …]
|
| H A D | asan_report.h | 25 uptr beg; 26 uptr size; 28 uptr name_len; 29 uptr line; 50 void ReportGenericError(uptr pc, uptr bp, uptr sp, uptr addr, bool is_write, 53 void ReportNewDeleteTypeMismatch(uptr addr, uptr delete_size, 68 void ReportInvalidAlignedAllocAlignment(uptr size, uptr alignment, 72 void ReportAllocationSizeTooBig(uptr user_size, uptr total_size, uptr max_size, 80 void ReportStringFunctionSizeOverflow(uptr offset, uptr size, 90 void ReportMacMzReallocUnknown(uptr addr, uptr zone_ptr, [all …]
|
| H A D | asan_poisoning.cc | 34 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow() 110 uptr beg_addr = (uptr)addr; in __asan_poison_memory_region() 150 uptr beg_addr = (uptr)addr; in __asan_unpoison_memory_region() 182 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned() 275 uptr __asan_load_cxx_array_cookie(uptr *p) { in __asan_load_cxx_array_cookie() 321 void __asan_set_shadow_00(uptr addr, uptr size) { in __asan_set_shadow_00() 362 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_annotate_contiguous_container() 363 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_annotate_contiguous_container() 410 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_contiguous_container_find_bad_address() 411 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_contiguous_container_find_bad_address() [all …]
|
| H A D | asan_malloc_linux.cc | 39 uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in IsInDlsymAllocPool() 76 uptr *end_mem = (uptr*)(aligned_addr + aligned_size); in PosixMemalignFromLocalPool() 87 void* MemalignFromLocalPool(uptr alignment, uptr size) { in MemalignFromLocalPool() 109 const uptr offset = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in ReallocFromLocalPool() 150 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() 170 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) { in INTERCEPTOR() 184 INTERCEPTOR(void*, aligned_alloc, uptr boundary, uptr size) { in INTERCEPTOR() 246 void *(*calloc)(uptr n_elements, uptr elem_size); 248 void *(*memalign)(uptr alignment, uptr bytes); 253 void *(*calloc)(uptr n_elements, uptr elem_size); [all …]
|
| H A D | asan_fake_stack.cc | 30 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { in SetShadow() 34 for (uptr i = 0; i < (((uptr)1) << class_id); i++) { in SetShadow() 88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id, in Allocate() 116 uptr FakeStack::AddrIsInFakeStack(uptr ptr, uptr *frame_beg, uptr *frame_end) { in AddrIsInFakeStack() 168 uptr begin = reinterpret_cast<uptr>(ff); in ForEachFakeFrame() 202 ALWAYS_INLINE uptr OnMalloc(uptr class_id, uptr size) { in OnMalloc() 206 uptr real_stack = reinterpret_cast<uptr>(&local_stack); in OnMalloc() 209 uptr ptr = reinterpret_cast<uptr>(ff); in OnMalloc() 214 ALWAYS_INLINE void OnFree(uptr ptr, uptr class_id, uptr size) { in OnFree() 265 void __asan_alloca_poison(uptr addr, uptr size) { in __asan_alloca_poison() [all …]
|
| H A D | asan_report.cc | 67 static void PrintZoneForPointer(uptr ptr, uptr zone_ptr, in PrintZoneForPointer() 97 uptr beg = (uptr)internal_simple_strtoll(p, &p, 10); in ParseFrameDescription() 98 uptr size = (uptr)internal_simple_strtoll(p, &p, 10); in ParseFrameDescription() 99 uptr len = (uptr)internal_simple_strtoll(p, &p, 10); in ParseFrameDescription() 297 void ReportAllocationSizeTooBig(uptr user_size, uptr total_size, uptr max_size, in ReportAllocationSizeTooBig() 354 static NOINLINE void ReportInvalidPointerPair(uptr pc, uptr bp, uptr sp, in ReportInvalidPointerPair() 361 static bool IsInvalidPointerPair(uptr a1, uptr a2) { in IsInvalidPointerPair() 411 uptr a1 = reinterpret_cast<uptr>(p1); in CheckForInvalidPointerPair() 412 uptr a2 = reinterpret_cast<uptr>(p2); in CheckForInvalidPointerPair() 446 void ReportGenericError(uptr pc, uptr bp, uptr sp, uptr addr, bool is_write, in ReportGenericError() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.h | 117 bool MprotectNoAccess(uptr addr, uptr size); 118 bool MprotectReadOnly(uptr addr, uptr size); 123 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, 143 uptr Init(uptr size, const char *name = nullptr, uptr fixed_addr = 0); 144 uptr Map(uptr fixed_addr, uptr size); 145 uptr MapOrDie(uptr fixed_addr, uptr size); 146 void Unmap(uptr addr, uptr size); 398 INLINE uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() 403 INLINE uptr RoundDownTo(uptr x, uptr boundary) { in RoundDownTo() 411 INLINE uptr Log2(uptr x) { in Log2() [all …]
|
| H A D | sanitizer_allocator_primary64.h | 105 static bool CanAllocate(uptr size, uptr alignment) { in CanAllocate() 158 uptr P = reinterpret_cast<uptr>(p); in PointerIsMine() 187 uptr chunk_idx = GetChunkIdx((uptr)p, size); in GetBlockBegin() 226 static void FillMemoryProfile(uptr start, uptr rss, bool file, uptr *stats, in FillMemoryProfile() 233 void PrintStats(uptr class_id, uptr rss) { in PrintStats() 309 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() 371 uptr Get(uptr i) const { in Get() 385 void IncRange(uptr from, uptr to) const { in IncRange() 617 uptr GetMetadataEnd(uptr region_beg) const { in GetMetadataEnd() 621 uptr GetChunkIdx(uptr chunk, uptr size) const { in GetChunkIdx() [all …]
|
| H A D | sanitizer_stacktrace.h | 42 const uptr *trace; 68 static inline uptr GetPreviousInstructionPc(uptr pc); 69 static uptr GetNextInstructionPc(uptr pc); 76 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() 99 void Init(const uptr *pcs, uptr cnt, uptr extra_top_pc = 0); 100 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top, 109 void FastUnwindStack(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom, 115 uptr LocatePcInTrace(uptr pc); 122 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() 134 uptr sp = (uptr)&local_stack [all …]
|
| H A D | sanitizer_allocator_primary32.h | 89 static uptr AllocationSizeRequiredForNElements(uptr n) { in AllocationSizeRequiredForNElements() 92 static uptr MaxCached(uptr size) { in MaxCached() 107 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() 138 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() 143 static bool CanAllocate(uptr size, uptr alignment) { in CanAllocate() 150 uptr mem = reinterpret_cast<uptr>(p); in GetMetaData() 184 uptr mem = reinterpret_cast<uptr>(p); in PointerIsMine() 196 uptr mem = reinterpret_cast<uptr>(p); in GetBlockBegin() 276 uptr ComputeRegionId(uptr mem) { in ComputeRegionId() 282 uptr ComputeRegionBeg(uptr mem) { in ComputeRegionBeg() [all …]
|
| H A D | sanitizer_deadlock_detector.h | 60 bool addLock(uptr lock_id, uptr current_epoch, u32 stk) { in addLock() 119 uptr epoch_; 157 uptr newNode(uptr data) { in newNode() 186 uptr getData(uptr node) const { return data_[nodeToIndex(node)]; } in getData() 316 uptr findPathToLock(DeadlockDetectorTLS<BV> *dtls, uptr cur_node, uptr *path, in findPathToLock() 353 bool testOnlyHasEdge(uptr l1, uptr l2) { in testOnlyHasEdge() 357 bool testOnlyHasEdgeRaw(uptr idx1, uptr idx2) { in testOnlyHasEdgeRaw() 376 uptr indexToNode(uptr idx) const { in indexToNode() 383 uptr nodeToIndex(uptr node) const { in nodeToIndex() 390 uptr getAvailableNode(uptr data) { in getAvailableNode() [all …]
|
| H A D | sanitizer_allocator_size_class_map.h | 120 template <uptr kNumBits, uptr kMinSizeLog, uptr kMidSizeLog, uptr kMaxSizeLog, 121 uptr kMaxNumCachedHintT, uptr kMaxBytesCachedLog> 146 static uptr Size(uptr class_id) { in Size() 159 static uptr ClassID(uptr size) { in ClassID() 171 static uptr MaxCachedHint(uptr size) { in MaxCachedHint() 175 uptr n; in MaxCachedHint() 185 uptr prev_s = 0; in Print() 186 uptr total_cached = 0; in Print() 188 uptr s = Size(i); in Print() 191 uptr d = s - prev_s; in Print() [all …]
|
| H A D | sanitizer_win.cc | 233 void *MmapFixedOrDie(uptr fixed_addr, uptr size) { in MmapFixedOrDie() 247 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size) { in Map() 251 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size) { in MapOrDie() 281 uptr ReservedAddressRange::Init(uptr size, const char *name, uptr fixed_addr) { in Init() 310 bool MprotectNoAccess(uptr addr, uptr size) { in MprotectNoAccess() 315 void ReleaseMemoryPagesToOS(uptr beg, uptr end) { in ReleaseMemoryPagesToOS() 320 bool NoHugePagesInRegion(uptr addr, uptr size) { in NoHugePagesInRegion() 325 bool DontDumpShadowMemory(uptr addr, uptr length) { in DontDumpShadowMemory() 331 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, in FindAvailableMemoryRange() 616 uptr base_address = (uptr)mi.lpBaseOfDll; in init() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/hwasan/ |
| H A D | hwasan_interface_internal.h | 40 void __hwasan_init_frames(uptr, uptr); 46 void __hwasan_loadN(uptr, uptr); 59 void __hwasan_loadN_noabort(uptr, uptr); 72 void __hwasan_storeN(uptr, uptr); 85 void __hwasan_storeN_noabort(uptr, uptr); 98 void __hwasan_tag_memory(uptr p, u8 tag, uptr sz); 101 uptr __hwasan_tag_pointer(uptr p, u8 tag); 157 void * __sanitizer_memalign(uptr alignment, uptr size); 160 void * __sanitizer_aligned_alloc(uptr alignment, uptr size); 163 void * __sanitizer___libc_memalign(uptr alignment, uptr size); [all …]
|
| H A D | hwasan_dynamic_shadow.cc | 27 static void UnmapFromTo(uptr from, uptr to) { in UnmapFromTo() 42 static uptr MapDynamicShadow(uptr shadow_size_bytes) { in MapDynamicShadow() 49 const uptr shadow_size = in MapDynamicShadow() 53 const uptr map_start = (uptr)MmapNoAccess(map_size); in MapDynamicShadow() 82 static uptr PremapShadow() { in PremapShadow() 87 const uptr shadow = reinterpret_cast<uptr>(&__hwasan_shadow); in IsPremapShadowAvailable() 88 const uptr resolver = reinterpret_cast<uptr>(&__hwasan_premap_shadow); in IsPremapShadowAvailable() 94 static uptr FindPremappedShadowStart(uptr shadow_size_bytes) { in FindPremappedShadowStart() 96 const uptr shadow_start = reinterpret_cast<uptr>(&__hwasan_shadow); in FindPremappedShadowStart() 126 uptr FindDynamicShadowStart(uptr shadow_size_bytes) { in FindDynamicShadowStart() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/lsan/ |
| H A D | lsan_common.h | 83 uptr hit_count; 84 uptr total_size; 92 uptr addr; 93 uptr size; 124 uptr begin; 125 uptr size; 134 void ScanRangeForPointers(uptr begin, uptr end, 137 void ScanGlobalRange(uptr begin, uptr end, Frontier *frontier); 199 void GetAllocatorGlobalRange(uptr *begin, uptr *end); 210 uptr *tls_begin, uptr *tls_end, uptr *cache_begin, [all …]
|
| H A D | lsan_allocator.h | 25 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 29 uptr alignment); 35 void GetAllocatorCacheRange(uptr *begin, uptr *end); 45 uptr requested_size : 54; 47 uptr requested_size : 32; 48 uptr padding : 22; 71 static const uptr kFlags = 0; 119 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, 121 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 122 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); [all …]
|
| /freebsd-12.1/contrib/openmp/runtime/src/ |
| H A D | tsan_annotations.h | 22 typedef unsigned long uptr; typedef 35 void AnnotateCondVarWait(const char *f, int l, uptr cv, uptr lock); 39 void AnnotateRWLockAcquired(const char *f, int l, uptr m, uptr is_w); 40 void AnnotateRWLockReleased(const char *f, int l, uptr m, uptr is_w); 43 void AnnotateNewMemory(const char *f, int l, uptr mem, uptr size); 44 void AnnotateNoOp(const char *f, int l, uptr mem); 53 void AnnotateBenignRaceSized(const char *f, int l, uptr mem, uptr size, 62 void AnnotatePublishMemoryRange(const char *f, int l, uptr addr, uptr size); 63 void AnnotateUnpublishMemoryRange(const char *f, int l, uptr addr, uptr size); 67 void WTFAnnotateBenignRaceSized(const char *f, int l, uptr mem, uptr sz, [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/tsan/go/ |
| H A D | tsan_go.cc | 27 bool IsExpectedReport(uptr addr, uptr size) { in IsExpectedReport() 49 uptr pc; 52 uptr line; 53 uptr off; 54 uptr res; 75 uptr addr; 76 uptr heap; 82 uptr res; 158 void __tsan_map_shadow(uptr addr, uptr size) { in __tsan_map_shadow() 202 void __tsan_malloc(ThreadState *thr, uptr pc, uptr p, uptr sz) { in __tsan_malloc() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cc | 29 uptr requested_size; 33 void OnMap(uptr p, uptr size) const {} in OnMap() 34 void OnUnmap(uptr p, uptr size) const { in OnUnmap() 63 static const uptr kFlags = 0; 144 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment, in MsanAllocate() 238 void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in MsanCalloc() 259 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in msan_calloc() 290 void *msan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack) { in msan_aligned_alloc() 300 void *msan_memalign(uptr alignment, uptr size, StackTrace *stack) { in msan_memalign() 310 int msan_posix_memalign(void **memptr, uptr alignment, uptr size, in msan_posix_memalign() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.h | 64 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { in RoundUpTo() 69 constexpr uptr getHeaderSize() { in getHeaderSize() 82 static const uptr kFlags = 103 static const uptr kFlags = 119 void *scudoAllocate(uptr Size, uptr Alignment, AllocType Type); 120 void scudoDeallocate(void *Ptr, uptr Size, uptr Alignment, AllocType Type); 122 void *scudoCalloc(uptr NMemB, uptr Size); 123 void *scudoValloc(uptr Size); 124 void *scudoPvalloc(uptr Size); 125 int scudoPosixMemalign(void **MemPtr, uptr Alignment, uptr Size); [all …]
|