Home
last modified time | relevance | path

Searched refs:tag_t (Results 1 – 15 of 15) sorted by relevance

/openbsd/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp198 tag_t base_tag = in PrintStackAllocations()
261 static bool TagsEqual(tag_t tag, tag_t *tag_ptr) { in TagsEqual()
267 tag_t inline_tag = *reinterpret_cast<tag_t *>(mem + kShadowAlignment - 1); in TagsEqual()
309 tag_t *left, tag_t *right) { in ShowHeapOrGlobalCandidate()
436 tag_t *tag_ptr = reinterpret_cast<tag_t*>(MemToShadow(untagged_addr)); in PrintAddressDescription()
523 tag_t *center_row_beg = reinterpret_cast<tag_t *>( in PrintTagInfoAroundAddr()
579 tag_t *tag_ptr = nullptr; in ReportInvalidFree()
580 tag_t mem_tag = 0; in ReportInvalidFree()
683 tag_t *tag_ptr = reinterpret_cast<tag_t*>(MemToShadow(untagged_addr)); in ReportTailOverwritten()
711 tag_t *tag_ptr = in ReportTagMismatch()
[all …]
H A Dhwasan_checks.h83 tag_t mem_tag, uptr ptr, uptr sz) { in PossiblyShortTagMatches()
84 tag_t ptr_tag = GetTagFromPointer(ptr); in PossiblyShortTagMatches()
105 tag_t mem_tag = *(tag_t *)MemToShadow(ptr_raw); in CheckAddress()
119 tag_t ptr_tag = GetTagFromPointer(p); in CheckAddressSized()
121 tag_t *shadow_first = (tag_t *)MemToShadow(ptr_raw); in CheckAddressSized()
122 tag_t *shadow_last = (tag_t *)MemToShadow(ptr_raw + sz); in CheckAddressSized()
123 for (tag_t *t = shadow_first; t < shadow_last; ++t) in CheckAddressSized()
H A Dhwasan_poisoning.h19 uptr TagMemory(uptr p, uptr size, tag_t tag);
20 uptr TagMemoryAligned(uptr p, uptr size, tag_t tag);
H A Dhwasan_allocator.cpp33 static constexpr tag_t kFallbackAllocTag = 0xBB & kTagMask;
34 static constexpr tag_t kFallbackFreeTag = 0xBC;
218 tag_t tag = t ? t->GenerateRandomTag() : kFallbackAllocTag; in HwasanAllocate()
251 tag_t mem_tag = *reinterpret_cast<tag_t *>( in PointerAndMemoryTagsMatch()
280 tag_t pointer_tag = GetTagFromPointer(reinterpret_cast<uptr>(tagged_ptr)); in HwasanDeallocate()
299 tag_t short_granule_memtag = *(reinterpret_cast<tag_t *>( in HwasanDeallocate()
321 tag_t tag; in HwasanDeallocate()
H A Dhwasan.h37 typedef u8 tag_t; typedef
81 static inline tag_t GetTagFromPointer(uptr p) { in GetTagFromPointer()
94 static inline uptr AddTagToPointer(uptr p, tag_t tag) { in AddTagToPointer()
H A Dhwasan_thread.cpp35 for (tag_t i = 0, e = GenerateRandomTag(); i != e; ++i) in InitRandomState()
128 tag_t Thread::GenerateRandomTag(uptr num_bits) { in GenerateRandomTag()
132 tag_t tag; in GenerateRandomTag()
H A Dhwasan.cpp433 tag_t mem_tag = *reinterpret_cast<tag_t *>(s); in __hwasan_print_shadow()
437 *reinterpret_cast<tag_t *>(granule_addr + kShadowAlignment - 1)); in __hwasan_print_shadow()
446 tag_t ptr_tag = GetTagFromPointer((uptr)p); in __hwasan_test_shadow()
451 if (*(tag_t *)s != ptr_tag) { in __hwasan_test_shadow()
H A Dhwasan_poisoning.cpp22 uptr TagMemory(uptr p, uptr size, tag_t tag) { in TagMemory()
H A Dhwasan_thread.h60 tag_t GenerateRandomTag(uptr num_bits = kTagBits);
H A Dhwasan_fuchsia.cpp158 uptr TagMemoryAligned(uptr p, uptr size, tag_t tag) { in TagMemoryAligned()
H A Dhwasan_linux.cpp508 uptr TagMemoryAligned(uptr p, uptr size, tag_t tag) { in TagMemoryAligned()
/openbsd/gnu/usr.bin/binutils/gas/
H A Decoff.c887 } tag_t; typedef
1040 tag_t tag [ PAGE_SIZE / sizeof (tag_t) ];
1601 register tag_t *ptag; in add_ecoff_symbol()
1998 static tag_t *
2005 tag_t *tag_ptr; in get_tag()
4622 tag_t *ptag; in ecoff_build_debug()
4623 tag_t *ptag_next; in ecoff_build_debug()
4988 static tag_t *
4991 register tag_t *ptr; in allocate_tag()
5017 ptr = (tag_t *) xmalloc (sizeof (tag_t)); in allocate_tag()
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/gas/
H A Decoff.c888 } tag_t; typedef
1041 tag_t tag [ PAGE_SIZE / sizeof (tag_t) ];
1602 register tag_t *ptag; in add_ecoff_symbol()
1999 static tag_t *
2006 tag_t *tag_ptr; in get_tag()
4621 tag_t *ptag; in ecoff_build_debug()
4622 tag_t *ptag_next; in ecoff_build_debug()
4987 static tag_t *
4990 register tag_t *ptr; in allocate_tag()
5016 ptr = (tag_t *) xmalloc (sizeof (tag_t)); in allocate_tag()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dmips-tfile.c986 } tag_t; typedef
1171 tag_t tag [ PAGE_SIZE / sizeof (tag_t) ];
1876 tag_t *ptag;
1877 tag_t *ptag_next;
2300 STATIC tag_t *
2308 tag_t *tag_ptr;
3840 tag_t *ptag; in parse_input()
5384 STATIC tag_t *
5387 tag_t *ptr; in allocate_tag()
5412 ptr = (tag_t *) xmalloc (sizeof (tag_t)); in allocate_tag()
[all …]
/openbsd/gnu/gcc/gcc/
H A Dmips-tfile.c993 } tag_t; typedef
1096 tag_t tag [ PAGE_SIZE / sizeof (tag_t) ];
1761 tag_t *ptag; in add_local_symbol()
1762 tag_t *ptag_next; in add_local_symbol()
2178 STATIC tag_t *
2186 tag_t *tag_ptr; in get_tag()
3728 tag_t *ptag; in parse_input()
3729 tag_t *ptag_next; in parse_input()
5249 STATIC tag_t *
5252 tag_t *ptr; in allocate_tag()
[all …]