/llvm-project/clang/test/Driver/ |
H A D | ppc-mrop-protection-support-check.c | 2 // RUN: -mcpu=pwr10 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 4 // RUN: -mcpu=power10 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 6 // RUN: -mcpu=pwr9 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 8 // RUN: -mcpu=power9 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 10 // RUN: -mcpu=pwr8 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 12 // RUN: -mcpu=power8 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP 15 // RUN: -mcpu=pwr7 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=NOROP 17 // RUN: -mcpu=power7 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=NOROP 20 static_assert(false, "ROP Protect enabled"); 23 // HASROP: ROP Protect enabled [all …]
|
H A D | stack-clash-protection-02.c | 4 // SystemZ-warn: warning: unable to protect inline asm that clobbers stack pointer against stack cl…
|
/llvm-project/llvm/test/tools/obj2yaml/Minidump/ |
H A D | basic.yaml | 83 Allocation Protect: [ ] 86 Protect: [ PAGE_NO_ACCESS ] 89 Allocation Protect: [ PAGE_READ_WRITE ] 95 Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ] 178 # CHECK-NEXT: Allocation Protect: [ ] 181 # CHECK-NEXT: Protect: [ PAGE_NO_ACCESS ] 184 # CHECK-NEXT: Allocation Protect: [ PAGE_READ_WRITE ] 190 # CHECK-NEXT: Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
|
/llvm-project/lldb/test/Shell/SymbolFile/Breakpad/Inputs/ |
H A D | unwind-via-stack-win.yaml | 30 Allocation Protect: [ ] 33 Protect: [ PAGE_EXECUTE ] 37 Allocation Protect: [ ] 40 Protect: [ PAGE_EXECUTE ]
|
/llvm-project/llvm/test/CodeGen/PowerPC/ |
H A D | future-check-features.ll | 2 ; RUN: -mattr=paired-vector-memops,mma,rop-protect,privileged \ 6 ; RUN: -mattr=paired-vector-memops,mma,rop-protect,privileged \ 10 ; RUN: -mattr=paired-vector-memops,mma,rop-protect,privileged \ 14 ; RUN: -mattr=paired-vector-memops,mma,rop-protect,privileged \
|
H A D | p10-check-features.ll | 1 …,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \ 4 …,isa-v31-instructions,pcrelative-memops,prefix-instrs,paired-vector-memops,rop-protect,privileged \
|
H A D | pr55857.ll | 17 …a-v30-instructions,-power8-vector,-power9-vector,-privileged,-quadword-atomics,-rop-protect,-vsx" }
|
H A D | tocdata-firm-alignment.ll | 24 …a-v30-instructions,-power8-vector,-power9-vector,-privileged,-quadword-atomics,-rop-protect,-spe" }
|
H A D | expand-isel-to-branch.ll | 28 …ix-small-local-exec-tls,-isa-v30-instructions,-isel,-power9-vector,-privileged,-rop-protect,-spe" }
|
/llvm-project/lldb/source/Plugins/Process/Windows/Common/ |
H A D | ProcessDebugger.cpp | 32 static DWORD ConvertLldbToWinApiProtect(uint32_t protect) { in ConvertLldbToWinApiProtect() argument 40 if (protect & ePermissionsExecutable) in ConvertLldbToWinApiProtect() 50 static bool IsPageReadable(uint32_t protect) { in IsPageReadable() argument 51 return (protect & PAGE_NOACCESS) == 0; in IsPageReadable() 54 static bool IsPageWritable(uint32_t protect) { in IsPageWritable() argument 55 return (protect & (PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY | in IsPageWritable() 59 static bool IsPageExecutable(uint32_t protect) { in IsPageExecutable() argument 60 return (protect & (PAGE_EXECUTE | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | in IsPageExecutable() 353 auto protect = ConvertLldbToWinApiProtect(permissions); in DeallocateMemory() 354 auto result = ::VirtualAllocEx(handle, nullptr, size, MEM_COMMIT, protect); in DeallocateMemory() 340 auto protect = ConvertLldbToWinApiProtect(permissions); AllocateMemory() local [all...] |
/llvm-project/llvm/lib/Support/Unix/ |
H A D | Memory.inc | 98 int Protect = getPosixProtectionFlags(PFlags); 101 Protect |= PROT_MPROTECT(PROT_READ | PROT_WRITE | PROT_EXEC); 116 Protect, MMFlags, fd, 0); 173 int Protect = getPosixProtectionFlags(Flags); 186 if (InvalidateCache && !(Protect & PROT_READ)) { 187 int Result = ::mprotect((void *)Start, End - Start, Protect | PROT_READ); 196 int Result = ::mprotect((void *)Start, End - Start, Protect);
|
/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_linux.cpp | 66 // Depending on the kernel configuration, we may not be able to protect in ProtectMemoryRange() 76 "FATAL: MemorySanitizer: Cannot protect memory range %p-%p (%s).\n", in ProtectMemoryRange() 145 bool protect = type == MappingDesc::INVALID || in InitShadow() 147 CHECK(!(map && protect)); in InitShadow() 148 if (!map && !protect) { in InitShadow() 164 if (protect) { in InitShadow() 199 // The earlier dry run didn't actually map or protect anything. Run again in in InitShadowWithReExec() 144 bool protect = type == MappingDesc::INVALID || InitShadow() local
|
/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_posix.cpp | 91 Printf("FATAL: ThreadSanitizer can not protect [%zx,%zx]\n", beg, end); in ProtectRange() 98 // Optionally (if 'protect' is true), it will set the memory regions between 103 bool CheckAndProtect(bool protect, bool ignore_heap, bool print_warnings) { in CheckAndProtect() argument 139 if (!protect) in CheckAndProtect() 159 // Protect the rest of the address space. in CheckAndProtect()
|
/llvm-project/llvm/lib/Support/Windows/ |
H A D | Memory.inc | 130 DWORD Protect = getWindowsProtectionFlags(Flags); 134 AllocType, Protect); 173 DWORD Protect = getWindowsProtectionFlags(Flags); 176 if (!VirtualProtect(M.Address, M.AllocatedSize, Protect, &OldFlags))
|
/llvm-project/lldb/unittests/Process/minidump/ |
H A D | MinidumpParserTest.cpp | 348 Allocation Protect: [ ] in TEST_F() 351 Protect: [ PAGE_NO_ACCESS ] in TEST_F() 354 Allocation Protect: [ PAGE_READ_WRITE ] in TEST_F() 359 Allocation Protect: [ PAGE_EXECUTE_WRITE_COPY ] in TEST_F() 362 Protect: [ PAGE_READ_ONLY ] in TEST_F() 365 Allocation Protect: [ PAGE_READ_ONLY ] in TEST_F() 371 Allocation Protect: [ PAGE_READ_ONLY ] in TEST_F() 374 Protect: [ PAGE_NO_ACCESS ] in TEST_F()
|
/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_shadow_setup.cpp | 94 // protect the gap. in InitializeShadowMemory() 107 // protect the gaps. in InitializeShadowMemory()
|
/llvm-project/llvm/lib/ObjectYAML/ |
H A D | MinidumpYAML.cpp | 124 IO &IO, MemoryProtection &Protect) { in bitset() 126 IO.bitSetCase(Protect, #NATIVENAME, MemoryProtection::NAME); 251 mapRequiredAs<MemoryProtection>(IO, "Allocation Protect", in mapping() 256 mapOptionalAs<MemoryProtection>(IO, "Protect", Info.Protect, in mapping() 121 bitset(IO & IO,MemoryProtection & Protect) bitset() argument
|
/llvm-project/clang/test/Parser/ |
H A D | slh-asm-goto.cpp | 4 …__asm goto("movl %ecx, %edx"); // expected-warning {{speculative load hardening does not protect f… in f()
|
/llvm-project/clang/test/SemaCXX/ |
H A D | templated-friend-decl.cpp | 9 // Foo<int> is. This is to protect against PR5848; for now, this "parses" but
|
/llvm-project/lld/test/ELF/ |
H A D | relro-tls.s | 9 ## Currently p_memsz of PT_GNU_RELRO is rounded up to protect the last page.
|
/llvm-project/llvm/unittests/Object/ |
H A D | MinidumpTest.cpp | 534 0, 16, 0, 0, 32, 0, 0, 0, // State, Protect in TEST() 558 0, 16, 0, 0, 32, 0, 0, 0, // State, Protect in TEST() 581 0, 16, 0, 0, 32, 0, 0, 0, // State, Protect in TEST() 600 EXPECT_EQ(MemoryProtection::ExecuteRead, Info.Protect); in TEST() 662 0, 16, 0, 0, 32, 0, 0, 0, // State, Protect in TEST() 687 0, 0, 0, 0, 0, 0, 0, 0, // State, Protect in TEST() 693 0, 0, 0, 0, 0, 0, 0, 0, // State, Protect in TEST() 699 0, 0, 0, 0, 0, 0, 0, 0, // State, Protect in TEST()
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | stack-protector-recursively.ll | 4 ; Make sure the stack protect not infinitly check __stack_chk_fail.
|
/llvm-project/clang/lib/Basic/Targets/ |
H A D | PPC.cpp | 81 } else if (Feature == "+rop-protect") { in handleTargetFeatures() 600 // ROP Protect is off by default. in initFeatureMap() 601 Features["rop-protect"] = false; in initFeatureMap() 702 llvm::is_contained(FeaturesVec, "+rop-protect")) { 703 // We can turn on ROP Protect on Power 8 and above. in hasFeature() 704 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mrop-protect" << CPU; in hasFeature() 756 .Case("rop-protect", HasROPProtect) in setFeatureEnabled()
|
/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_libcdep.cpp | 188 // But we really want to protect as much as possible, to prevent this memory in ProtectGap() 202 "ERROR: Failed to protect the shadow gap. " in ProtectGap()
|
/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.h | 16 /// Finds user-defined copy assignment operators which do not protect the code
|