Home
last modified time | relevance | path

Searched refs:PROT_NONE (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/tools/test/stress2/misc/
H A Dmmap30.sh63 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0);
70 if (mprotect(addr, pagesz, PROT_NONE) == -1)
H A Dmprotect.sh56 if (mprotect(addr, len, PROT_NONE) != 0)
62 if (mprotect(addr, 4096, PROT_NONE) != 0) /* trigger demotion */
H A Dmmap16.sh127 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0);
133 addr = mmap(NULL, pagesz, PROT_NONE, MAP_ANON, -1, 0);
H A Dmmap13.sh77 if (mprotect(addr, sz, PROT_NONE) != 0)
H A Dmmap12.sh73 if (mprotect(addr, sz, PROT_NONE) != 0)
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp64 mmap(nullptr, Size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in reserveGuardedPool()
90 Check(mmap(Ptr, Size, PROT_NONE, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1, in deallocateInGuardedPool()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmem_map_linux.cpp51 MmapProt = PROT_NONE; in mmapWrapper()
117 int Prot = (Flags & MAP_NOACCESS) ? PROT_NONE : (PROT_READ | PROT_WRITE); in setMemoryPermissionImpl()
H A Dlinux.cpp54 MmapProt = PROT_NONE; in map()
90 int Prot = (Flags & MAP_NOACCESS) ? PROT_NONE : (PROT_READ | PROT_WRITE); in setMemoryPermission()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DInferiorCallPOSIX.cpp27 #define PROT_NONE 0 macro
69 prot_arg = PROT_NONE; in InferiorCallMmap()
/freebsd/tests/sys/vm/stack/
H A Dstack_mprotect_exec_test.c46 ATF_REQUIRE(mprotect(guard, pagesize, PROT_NONE) == 0); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mprotect.c114 int prot[2] = { PROT_NONE, PROT_READ }; in ATF_TC_BODY()
262 const int prot[4] = { PROT_NONE, PROT_READ, PROT_WRITE }; in ATF_TC_BODY()
H A Dt_mmap.c342 map = mmap(NULL, page, PROT_NONE, MAP_ANON|MAP_PRIVATE, -1, 0); in ATF_TC_BODY()
396 map = mmap(NULL, 3, PROT_NONE, MAP_FILE | MAP_SHARED, fd, 0); in ATF_TC_BODY()
H A Dt_mincore.c244 addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0); in ATF_TC_BODY()
H A Dt_mlock.c298 buf = mmap(NULL, page, PROT_NONE, flags, -1, 0);
/freebsd/crypto/openssh/
H A Dsandbox-seccomp-filter.c200 SC_ALLOW_ARG_MASK(_nr, 2, PROT_READ|PROT_WRITE|PROT_NONE)
339 SC_ALLOW_ARG_MASK(__NR_mprotect, 2, PROT_READ|PROT_WRITE|PROT_NONE),
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp370 return (void *)MmapNamed((void *)fixed_addr, size, PROT_NONE, in MmapFixedNoAccess()
377 return (void *)internal_mmap(nullptr, size, PROT_NONE, flags, -1, 0); in MmapNoAccess()
/freebsd/tests/sys/vm/
H A Dpage_fault_signal.c111 p = mmap(NULL, sz, PROT_NONE, MAP_ANON, -1, 0); in ATF_TC_BODY()
/freebsd/lib/libthr/thread/
H A Dthr_stack.c270 mprotect(stackaddr, guardsize, PROT_NONE) == 0)) { in _thr_stack_alloc()
/freebsd/sys/sys/
H A Dmman.h51 #define PROT_NONE 0x00 /* no permissions */ macro
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack.cpp96 Mprotect(addr, guard, PROT_NONE); in unsafe_stack_alloc()
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dutils.c72 !(defined(PROT_NONE) && defined(PROT_READ) && defined(PROT_WRITE))
396 return mprotect(ptr, size, PROT_NONE); in _mprotect_noaccess()
/freebsd/crypto/openssl/crypto/
H A Dmem_sec.c533 if (mprotect(sh.map_result, pgsize, PROT_NONE) < 0) in sh_init()
543 if (mprotect(sh.map_result + aligned, pgsize, PROT_NONE) < 0) in sh_init()
/freebsd/tests/sys/posixshm/
H A Dposixshm_test.c1679 addr = mmap(NULL, ps[i] * 2, PROT_NONE, in ATF_TC_BODY()
1697 largepage_protect(addr, ps[0], PROT_NONE, EINVAL); in ATF_TC_BODY()
1698 largepage_protect(addr, ps[i], PROT_NONE, 0); in ATF_TC_BODY()
1708 largepage_protect(addr, ps[0], PROT_NONE, EINVAL); in ATF_TC_BODY()
1709 largepage_protect(addr, ps[i], PROT_NONE, 0); in ATF_TC_BODY()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp71 void *Addr = mmap(nullptr, Size, PROT_NONE, MAP_SHARED, SharedMemoryFile, 0); in reserve()
/freebsd/sys/vm/
H A Dvm_mmap.c166 prot != PROT_NONE) in kern_mmap_maxprot()
251 if (prot != PROT_NONE && in kern_mmap()
254 if ((flags & MAP_GUARD) != 0 && (prot != PROT_NONE || fd != -1 || in kern_mmap()

12