Home
last modified time | relevance | path

Searched refs:mprotect (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/
H A Dleak_check_segv.cpp14 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 Dmmap_write_exec.cpp26 (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 Dmmap-writeexec.c19 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 Dsignal_segv_handler.cpp28 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 Dclear_cache_test.c64 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 Dsafestack_platform.h115 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 Dregister_root_region.cpp21 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 Dstrchr.c27 if (mprotect(p + 1, 1, PROT_NONE)) in main()
/llvm-project-15.0.7/compiler-rt/lib/builtins/
H A Denable_execute_stack.c65 (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 Dsanitizer_solaris.cpp73 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 Dsanitizer_malloc_mac.inc68 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 Dsanitizer_netbsd.cpp115 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 Dsanitizer_mac.cpp154 return mprotect(addr, length, prot); in internal_mprotect()
H A Dsanitizer_linux.cpp231 return internal_syscall(SYSCALL(mprotect), (uptr)addr, length, prot); in internal_mprotect()
H A Dsanitizer_common_syscalls.inc1194 PRE_SYSCALL(mprotect)(long start, long len, long prot) {}
1196 POST_SYSCALL(mprotect)(long res, long start, long len, long prot) {}
H A Dsanitizer_syscalls_netbsd.inc784 PRE_SYSCALL(mprotect)(void *addr_, long long len_, long long prot_) {
787 POST_SYSCALL(mprotect)
H A Dsanitizer_common_interceptors.inc7675 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 Dsanitizer_posix_test.cpp71 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 Dguarded_pool_allocator_posix.cpp78 Check(mprotect(Ptr, Size, PROT_READ | PROT_WRITE) == 0, in allocateInGuardedPool()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_interface.cpp125 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 Dmemprof_flags.inc21 MEMPROF_FLAG(bool, protect_shadow_gap, true, "If set, mprotect the shadow gap")
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DMemory.inc187 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 Dlinux.cpp85 if (mprotect(reinterpret_cast<void *>(Addr), Size, Prot) != 0) in setMemoryPermission()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp147 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_flags.inc95 ASAN_FLAG(bool, protect_shadow_gap, true, "If set, mprotect the shadow gap")

12