| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | leak_check_segv.cpp | 14 mprotect((void*)(((unsigned long)p + 4095) & ~4095), 16 * 1024, PROT_NONE); in main() 15 mprotect((void*)(((unsigned long)data + 4095) & ~4095), 16 * 1024, PROT_NONE); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | mmap_write_exec.cpp | 26 (void)mprotect(q, 64, PROT_WRITE | PROT_EXEC); in main() 35 (void)mprotect(q, 64, PROT_READ | PROT_EXEC); in main()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | mmap-writeexec.c | 19 int mprotect(void *, size_t, int); 42 …int m = mprotect(p, 1024, PROT_WRITE | PROT_EXEC); // expected-warning{{Both PROT_WRITE and PROT_E… in f3()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | signal_segv_handler.cpp | 28 mprotect(guard, page_size, PROT_READ | PROT_WRITE); in handler() 48 mprotect(guard, page_size, PROT_NONE); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/builtins/Unit/ |
| H A D | clear_cache_test.c | 64 if (mprotect(write_buffer, kSize, PROT_READ | PROT_WRITE) == -1) in main() 66 if (mprotect(execution_buffer, kSize, PROT_READ | PROT_EXEC) == -1) in main()
|
| /llvm-project-15.0.7/compiler-rt/lib/safestack/ |
| H A D | safestack_platform.h | 115 DEFINE__REAL(int, mprotect, void *a, size_t b, int c); in Mprotect() 116 return _REAL(mprotect, addr, length, prot); in Mprotect()
|
| /llvm-project-15.0.7/compiler-rt/test/lsan/TestCases/ |
| H A D | register_root_region.cpp | 21 assert(0 == mprotect((char *)p + size / 2, size / 2, PROT_NONE)); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | strchr.c | 27 if (mprotect(p + 1, 1, PROT_NONE)) in main()
|
| /llvm-project-15.0.7/compiler-rt/lib/builtins/ |
| H A D | enable_execute_stack.c | 65 (void)mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC); in __enable_execute_stack()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_solaris.cpp | 73 DECLARE__REAL_AND_INTERNAL(int, mprotect, void *addr, uptr length, int prot) { in DECLARE__REAL_AND_INTERNAL() argument 74 return _REAL(mprotect)(addr, length, prot); in DECLARE__REAL_AND_INTERNAL()
|
| H A D | sanitizer_malloc_mac.inc | 68 mprotect(new_zone, allocated_size, PROT_READ); 76 // don't to unregister. Just un-mprotect and free() the zone. 79 mprotect(zone, allocated_size, PROT_READ | PROT_WRITE);
|
| H A D | sanitizer_netbsd.cpp | 115 DEFINE__REAL(int, mprotect, void *a, uptr b, int c); in internal_mprotect() 116 return _REAL(mprotect, addr, length, prot); in internal_mprotect()
|
| H A D | sanitizer_mac.cpp | 154 return mprotect(addr, length, prot); in internal_mprotect()
|
| H A D | sanitizer_linux.cpp | 231 return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot); in internal_mprotect()
|
| H A D | sanitizer_common_syscalls.inc | 1194 PRE_SYSCALL(mprotect)(long start, long len, long prot) {} 1196 POST_SYSCALL(mprotect)(long res, long start, long len, long prot) {}
|
| H A D | sanitizer_syscalls_netbsd.inc | 784 PRE_SYSCALL(mprotect)(void *addr_, long long len_, long long prot_) { 787 POST_SYSCALL(mprotect)
|
| H A D | sanitizer_common_interceptors.inc | 7675 INTERCEPTOR(int, mprotect, void *addr, SIZE_T sz, int prot) { 7681 COMMON_INTERCEPTOR_ENTER(ctx, mprotect, addr, sz, prot); 7683 return REAL(mprotect)(addr, sz, prot); 7687 COMMON_INTERCEPT_FUNCTION(mprotect);
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_posix_test.cpp | 71 mprotect((void *)(mem + page_size), page_size, PROT_NONE); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/platform_specific/ |
| H A D | guarded_pool_allocator_posix.cpp | 78 Check(mprotect(Ptr, Size, PROT_READ | PROT_WRITE) == 0, in allocateInGuardedPool()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_interface.cpp | 125 auto R = mprotect(PageAlignedAddr, MProtectLen, in MakeWriteable() 143 mprotect(PageAlignedAddr, MProtectLen, PROT_READ | PROT_EXEC); in ~MProtectHelper()
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_flags.inc | 21 MEMPROF_FLAG(bool, protect_shadow_gap, true, "If set, mprotect the shadow gap")
|
| /llvm-project-15.0.7/llvm/lib/Support/Unix/ |
| H A D | Memory.inc | 187 int Result = ::mprotect((void *)Start, End - Start, Protect | PROT_READ); 196 int Result = ::mprotect((void *)Start, End - Start, Protect);
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | linux.cpp | 85 if (mprotect(reinterpret_cast<void *>(Addr), Size, Prot) != 0) in setMemoryPermission()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | ExecutorSharedMemoryMapperService.cpp | 147 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_flags.inc | 95 ASAN_FLAG(bool, protect_shadow_gap, true, "If set, mprotect the shadow gap")
|