reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/hwasan/hwasan_allocator.cpp
   42 static ALIGNED(16) u8 tail_magic[kShadowAlignment - 1];
   50   uptr tail_size = requested_size % kShadowAlignment;
   52   return addr + kShadowAlignment - tail_size;
   97   uptr new_size = RoundUpTo(size, kShadowAlignment);
  113   alignment = Max(alignment, kShadowAlignment);
  155       uptr full_granule_size = RoundDownTo(tag_size, kShadowAlignment);
  161         TagMemoryAligned((uptr)short_granule, kShadowAlignment,
  162                          tag_size % kShadowAlignment);
  163         short_granule[kShadowAlignment - 1] = tag;
  191       RoundDownTo(reinterpret_cast<uptr>(untagged_ptr), kShadowAlignment));
  203     CHECK_LT(tail_size, kShadowAlignment);
  280                    reinterpret_cast<uptr>(untagged_ptr), kShadowAlignment)))
projects/compiler-rt/lib/hwasan/hwasan_checks.h
   69   if (mem_tag >= kShadowAlignment)
   71   if ((ptr & (kShadowAlignment - 1)) + sz > mem_tag)
   76   return *(u8 *)(ptr | (kShadowAlignment - 1)) == ptr_tag;
  114                    *shadow_last, end & ~(kShadowAlignment - 1), tail_sz))) {
projects/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
   23   CHECK(IsAligned(p, kShadowAlignment));
   24   CHECK(IsAligned(size, kShadowAlignment));
   47   uptr start = RoundDownTo(p, kShadowAlignment);
   48   uptr end = RoundUpTo(p + size, kShadowAlignment);
projects/compiler-rt/lib/hwasan/hwasan_report.cpp
  217   if (*tag_ptr == 0 || *tag_ptr > kShadowAlignment - 1)
  220   tag_t inline_tag = *reinterpret_cast<tag_t *>(mem + kShadowAlignment - 1);
  387       "bytes):\n", kShadowAlignment);
  395       kShadowAlignment);
  397     if (*tag >= 1 && *tag <= kShadowAlignment) {
  400                *reinterpret_cast<u8 *>(granule_addr + kShadowAlignment - 1));
  440   uptr tail_size = kShadowAlignment - (orig_size % kShadowAlignment);
  440   uptr tail_size = kShadowAlignment - (orig_size % kShadowAlignment);
  460   CHECK_LT(tail_size, kShadowAlignment);
  463   for (uptr i = 0; i < kShadowAlignment - tail_size; i++)
  469   for (uptr i = 0; i < kShadowAlignment - tail_size; i++)
  475   for (uptr i = 0; i < kShadowAlignment - tail_size; i++)
  487     kShadowAlignment, SanitizerToolName);