/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_shadow.h | 85 friend class Shadow; 102 class Shadow : public FastState { 104 explicit Shadow(u64 x) : FastState(x) {} in Shadow() function 106 explicit Shadow(const FastState &s) : FastState(s.x_) { ClearHistorySize(); } in Shadow() function 135 static inline bool TidsAreEqual(const Shadow s1, const Shadow s2) { in TidsAreEqual() 141 static ALWAYS_INLINE bool Addr0AndSizeAreEqual(const Shadow s1, in Addr0AndSizeAreEqual() 142 const Shadow s2) { in Addr0AndSizeAreEqual() 147 static ALWAYS_INLINE bool TwoRangesIntersect(Shadow s1, Shadow s2, in TwoRangesIntersect() 218 static bool TwoRangesIntersectSlow(const Shadow s1, const Shadow s2) { in TwoRangesIntersectSlow()
|
H A D | tsan_rtl_access.cpp | 140 Shadow LoadShadow(u64 *p) { in LoadShadow() 142 return Shadow(raw); in LoadShadow() 159 void HandleRace(ThreadState *thr, u64 *shadow_mem, Shadow cur, Shadow old) { in HandleRace() 170 static inline bool HappensBefore(Shadow old, ThreadState *thr) { in HappensBefore() 177 Shadow cur) { in MemoryAccessImpl1() 193 Shadow old(0); in MemoryAccessImpl1() 265 Shadow cur(a); in ContainsSameAccessSlow() 267 Shadow old(LoadShadow(&s[i])); in ContainsSameAccessSlow() 268 if (Shadow::Addr0AndSizeAreEqual(cur, old) && in ContainsSameAccessSlow() 383 Shadow cur(fast_state); in MemoryAccess() [all …]
|
H A D | tsan_update_shadow_word.inc | 27 if (LIKELY(Shadow::Addr0AndSizeAreEqual(cur, old))) { 29 if (LIKELY(Shadow::TidsAreEqual(old, cur))) { 48 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) { 49 if (Shadow::TidsAreEqual(old, cur))
|
H A D | tsan_rtl_report.cpp | 177 void ScopedReportBase::AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, in AddMemoryAccess() 812 Shadow s0(thr->racy_state[0]); in RaceBetweenAtomicAndFree() 813 Shadow s1(thr->racy_state[1]); in RaceBetweenAtomicAndFree() 838 Shadow s(thr->racy_state[1]); in ReportRace() 847 uptr a0 = addr + Shadow(thr->racy_state[0]).addr0(); in ReportRace() 848 uptr a1 = addr + Shadow(thr->racy_state[1]).addr0(); in ReportRace() 849 uptr e0 = a0 + Shadow(thr->racy_state[0]).size(); in ReportRace() 850 uptr e1 = a1 + Shadow(thr->racy_state[1]).size(); in ReportRace() 899 Shadow s2(thr->racy_state[1]); in ReportRace() 920 Shadow s(thr->racy_state[i]); in ReportRace() [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_update_shadow_word_inl.h | 30 if (Shadow::Addr0AndSizeAreEqual(cur, old)) { 33 if (Shadow::TidsAreEqual(old, cur)) { 50 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) { 52 if (Shadow::TidsAreEqual(old, cur)) {
|
H A D | tsan_rtl.h | 174 friend class Shadow; 191 class Shadow : public FastState { 193 explicit Shadow(u64 x) in Shadow() function 197 explicit Shadow(const FastState &s) in Shadow() function 233 static inline bool TidsAreEqual(const Shadow s1, const Shadow s2) { in TidsAreEqual() 240 bool Addr0AndSizeAreEqual(const Shadow s1, const Shadow s2) { in Addr0AndSizeAreEqual() 245 static ALWAYS_INLINE bool TwoRangesIntersect(Shadow s1, Shadow s2, in TwoRangesIntersect() 322 static bool TwoRangesIntersectSlow(const Shadow s1, const Shadow s2) { in TwoRangesIntersectSlow() 584 void AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, StackTrace stack, 722 u64 *shadow_mem, Shadow cur);
|
H A D | tsan_rtl.cc | 599 Shadow LoadShadow(u64 *p) { in LoadShadow() 601 return Shadow(raw); in LoadShadow() 617 Shadow cur, Shadow old) { in HandleRace() 628 static inline bool HappensBefore(Shadow old, ThreadState *thr) { in HappensBefore() 635 u64 *shadow_mem, Shadow cur) { in MemoryAccessImpl1() 654 Shadow old(0); in MemoryAccessImpl1() 712 Shadow cur(a); in ContainsSameAccessSlow() 714 Shadow old(LoadShadow(&s[i])); in ContainsSameAccessSlow() 715 if (Shadow::Addr0AndSizeAreEqual(cur, old) && in ContainsSameAccessSlow() 837 Shadow cur(fast_state); in MemoryAccess() [all …]
|
H A D | tsan_rtl_report.cc | 166 void ScopedReportBase::AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, in AddMemoryAccess() 577 Shadow s0(thr->racy_state[0]); in RaceBetweenAtomicAndFree() 578 Shadow s1(thr->racy_state[1]); in RaceBetweenAtomicAndFree() 603 Shadow s(thr->racy_state[1]); in ReportRace() 612 uptr a0 = addr + Shadow(thr->racy_state[0]).addr0(); in ReportRace() 613 uptr a1 = addr + Shadow(thr->racy_state[1]).addr0(); in ReportRace() 614 uptr e0 = a0 + Shadow(thr->racy_state[0]).size(); in ReportRace() 615 uptr e1 = a1 + Shadow(thr->racy_state[1]).size(); in ReportRace() 666 Shadow s2(thr->racy_state[1]); in ReportRace() 687 Shadow s(thr->racy_state[i]); in ReportRace() [all …]
|
H A D | tsan_rtl_thread.cc | 378 Shadow cur(fast_state); in MemoryAccessRange() 389 Shadow cur(fast_state); in MemoryAccessRange() 399 Shadow cur(fast_state); in MemoryAccessRange()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_update_shadow_word_inl.h | 28 if (Shadow::Addr0AndSizeAreEqual(cur, old)) { 31 if (Shadow::TidsAreEqual(old, cur)) { 48 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) { 50 if (Shadow::TidsAreEqual(old, cur)) {
|
H A D | tsan_rtl.h | 170 friend class Shadow; 187 class Shadow : public FastState { 189 explicit Shadow(u64 x) in Shadow() function 193 explicit Shadow(const FastState &s) in Shadow() function 229 static inline bool TidsAreEqual(const Shadow s1, const Shadow s2) { in TidsAreEqual() 236 bool Addr0AndSizeAreEqual(const Shadow s1, const Shadow s2) { in Addr0AndSizeAreEqual() 241 static ALWAYS_INLINE bool TwoRangesIntersect(Shadow s1, Shadow s2, in TwoRangesIntersect() 318 static bool TwoRangesIntersectSlow(const Shadow s1, const Shadow s2) { in TwoRangesIntersectSlow() 580 void AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, StackTrace stack, 718 u64 *shadow_mem, Shadow cur);
|
H A D | tsan_rtl.cc | 595 Shadow LoadShadow(u64 *p) { in LoadShadow() 597 return Shadow(raw); in LoadShadow() 613 Shadow cur, Shadow old) { in HandleRace() 624 static inline bool HappensBefore(Shadow old, ThreadState *thr) { in HappensBefore() 631 u64 *shadow_mem, Shadow cur) { in MemoryAccessImpl1() 650 Shadow old(0); in MemoryAccessImpl1() 708 Shadow cur(a); in ContainsSameAccessSlow() 710 Shadow old(LoadShadow(&s[i])); in ContainsSameAccessSlow() 711 if (Shadow::Addr0AndSizeAreEqual(cur, old) && in ContainsSameAccessSlow() 833 Shadow cur(fast_state); in MemoryAccess() [all …]
|
H A D | tsan_rtl_report.cc | 164 void ScopedReportBase::AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, in AddMemoryAccess() 575 Shadow s0(thr->racy_state[0]); in RaceBetweenAtomicAndFree() 576 Shadow s1(thr->racy_state[1]); in RaceBetweenAtomicAndFree() 601 Shadow s(thr->racy_state[1]); in ReportRace() 610 uptr a0 = addr + Shadow(thr->racy_state[0]).addr0(); in ReportRace() 611 uptr a1 = addr + Shadow(thr->racy_state[1]).addr0(); in ReportRace() 612 uptr e0 = a0 + Shadow(thr->racy_state[0]).size(); in ReportRace() 613 uptr e1 = a1 + Shadow(thr->racy_state[1]).size(); in ReportRace() 664 Shadow s2(thr->racy_state[1]); in ReportRace() 685 Shadow s(thr->racy_state[i]); in ReportRace() [all …]
|
H A D | tsan_rtl_thread.cc | 370 Shadow cur(fast_state); in MemoryAccessRange() 381 Shadow cur(fast_state); in MemoryAccessRange() 391 Shadow cur(fast_state); in MemoryAccessRange()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | DataFlowSanitizer.cpp | 589 Value *Shadow; member 639 void setShadow(Instruction *I, Value *Shadow); 678 Value *collapseToPrimitiveShadow(Value *Shadow, Instruction *Pos); 689 Value *collapseAggregateShadow(AggregateType *AT, Value *Shadow, 692 Value *collapseToPrimitiveShadow(Value *Shadow, IRBuilder<> &IRB); 725 Value *updateOriginIfTainted(Value *Shadow, Value *Origin, IRBuilder<> &IRB); 741 void storeOrigin(Instruction *Pos, Value *Addr, uint64_t Size, Value *Shadow, 953 Value *Shadow, SmallVector<unsigned, 4> &Indices, Type *SubShadowTy, in expandFromPrimitiveShadowRecursive() argument 956 return IRB.CreateInsertValue(Shadow, PrimitiveShadow, Indices); in expandFromPrimitiveShadowRecursive() 961 Shadow = expandFromPrimitiveShadowRecursive( in expandFromPrimitiveShadowRecursive() [all …]
|
H A D | MemorySanitizer.cpp | 1069 Value *Shadow; member 1074 : Shadow(S), Origin(O), OrigIns(I) {} in ShadowOriginAndInsertPoint() 1162 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin() 1166 unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType()); in storeOrigin() 1167 Value *ConvertedShadow = convertShadowToScalar(Shadow, IRB); in storeOrigin() 1201 Value *Shadow = SI->isAtomic() ? getCleanShadow(Val) : getShadow(Val); in materializeStores() local 1203 Type *ShadowTy = Shadow->getType(); in materializeStores() 1209 StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment); in materializeStores() 1217 storeOrigin(IRB, Addr, Shadow, getOrigin(Val), OriginPtr, in materializeStores() 1233 void materializeOneCheck(Instruction *OrigIns, Value *Shadow, Value *Origin, in materializeOneCheck() [all …]
|
H A D | MemProfiler.cpp | 180 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 296 Value *MemProfiler::memToShadow(Value *Shadow, IRBuilder<> &IRB) { in memToShadow() argument 298 Shadow = IRB.CreateAnd(Shadow, Mapping.Mask); in memToShadow() 299 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow() 302 return IRB.CreateAdd(Shadow, DynamicShadowOffset); in memToShadow()
|
H A D | HWAddressSanitizer.cpp | 218 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 726 Value *Shadow = IRB.CreateLShr(Mem, Mapping.Scale); in memToShadow() local 728 return IRB.CreateIntToPtr(Shadow, Int8PtrTy); in memToShadow() 730 return IRB.CreateGEP(Int8Ty, ShadowBase, Shadow); in memToShadow() 761 Value *Shadow = memToShadow(AddrLong, IRB); in instrumentMemAccessInline() local 762 Value *MemTag = IRB.CreateLoad(Int8Ty, Shadow); in instrumentMemAccessInline()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
H A D | tsan_shadow_test.cc | 19 TEST(Shadow, FastState) { in TEST() argument 20 Shadow s(FastState(11, 22)); in TEST() 49 TEST(Shadow, Mapping) { in TEST() argument 64 TEST(Shadow, Celling) { in TEST() argument
|
/netbsd-src/external/gpl3/binutils.old/dist/gold/ |
H A D | NEWS | 16 * Add support for Intel Indirect Branch Tracking (IBT) and Shadow Stack
|
/netbsd-src/external/gpl3/binutils/dist/gold/ |
H A D | NEWS | 23 * Add support for Intel Indirect Branch Tracking (IBT) and Shadow Stack
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | DeclCXX.cpp | 1364 if (auto *Shadow = dyn_cast<UsingShadowDecl>(D)) { in addedMember() local 1365 if (Shadow->getDeclName().getNameKind() in addedMember() 1368 data().Conversions.get(Ctx).addDecl(Ctx, Shadow, Shadow->getAccess()); in addedMember() 3005 const UsingShadowDecl *Shadow = this; in getUsingDecl() local 3007 dyn_cast<UsingShadowDecl>(Shadow->UsingOrNextShadow)) in getUsingDecl() 3008 Shadow = NextShadow; in getUsingDecl() 3009 return cast<UsingDecl>(Shadow->UsingOrNextShadow); in getUsingDecl()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | SemaLookup.cpp | 3774 ShadowContextRAII Shadow(Visited); in lookupVisibleDecls() local 3785 ShadowContextRAII Shadow(Visited); in lookupVisibleDecls() local 3855 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3915 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3925 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3932 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3939 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3947 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3953 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local 3959 ShadowContextRAII Shadow(Visited); in lookupInDeclContext() local [all …]
|
H A D | SemaDeclCXX.cpp | 6999 ConstructorUsingShadowDecl *Shadow) in InheritedConstructorInfo() argument 7007 for (auto *D : Shadow->redecls()) { in InheritedConstructorInfo() 7029 !Shadow->isInvalidDecl()) { in InheritedConstructorInfo() 7032 << Shadow->getTargetDecl(); in InheritedConstructorInfo() 7045 Shadow->setInvalidDecl(); in InheritedConstructorInfo() 11724 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(*I)) in CheckUsingShadowDecl() local 11725 PrevShadow = Shadow; in CheckUsingShadowDecl() 11819 UsingShadowDecl *Shadow; in BuildUsingShadowDecl() local 11824 Shadow = ConstructorUsingShadowDecl::Create( in BuildUsingShadowDecl() 11827 Shadow = UsingShadowDecl::Create(Context, CurContext, UD->getLocation(), UD, in BuildUsingShadowDecl() [all …]
|
H A D | SemaAccess.cpp | 1310 if (UsingShadowDecl *Shadow = in IsMicrosoftUsingDeclarationAccessBug() local 1317 << Shadow->getUsingDecl()->getQualifiedNameAsString() in IsMicrosoftUsingDeclarationAccessBug() 1694 } else if (auto *Shadow = in CheckConstructorAccess() local 1698 ObjectClass = Shadow->getParent(); in CheckConstructorAccess()
|