/freebsd/tools/test/stress2/misc/ |
H A D | mmap30.sh | 63 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0); 70 if (mprotect(addr, pagesz, PROT_NONE) == -1)
|
H A D | mprotect.sh | 56 if (mprotect(addr, len, PROT_NONE) != 0) 62 if (mprotect(addr, 4096, PROT_NONE) != 0) /* trigger demotion */
|
H A D | mmap16.sh | 127 addr = mmap(NULL, pagesz, PROT_NONE, MAP_GUARD, -1, 0); 133 addr = mmap(NULL, pagesz, PROT_NONE, MAP_ANON, -1, 0);
|
H A D | mmap13.sh | 77 if (mprotect(addr, sz, PROT_NONE) != 0)
|
H A D | mmap12.sh | 73 if (mprotect(addr, sz, PROT_NONE) != 0)
|
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | guarded_pool_allocator_posix.cpp | 64 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/lldb/source/Plugins/Process/Utility/ |
H A D | InferiorCallPOSIX.cpp | 27 #define PROT_NONE 0 69 prot_arg = PROT_NONE; in InferiorCallMmap() 28 #define PROT_NONE global() macro
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mprotect.c | 114 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 D | t_mmap.c | 342 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 D | t_mincore.c | 244 addr3 = mmap(NULL, npgs * page, PROT_NONE, MAP_ANON, -1, (off_t)0); in ATF_TC_BODY()
|
H A D | t_mlock.c | 298 buf = mmap(NULL, page, PROT_NONE, flags, -1, 0);
|
/freebsd/lib/libc/tests/string/ |
H A D | memccpy_test.c | 57 assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); in makebuf() 60 assert(mprotect(buf, page_size, PROT_NONE) == 0); in makebuf()
|
/freebsd/tests/sys/vm/stack/ |
H A D | stack_mprotect_exec_test.c | 46 ATF_REQUIRE(mprotect(guard, pagesize, PROT_NONE) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | linux.cpp | 54 MmapProt = PROT_NONE; in map() 90 int Prot = (Flags & MAP_NOACCESS) ? PROT_NONE : (PROT_READ | PROT_WRITE);
|
/freebsd/crypto/openssh/ |
H A D | sandbox-seccomp-filter.c | 200 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 D | sanitizer_posix_libcdep.cpp | 391 return (void *)MmapNamed((void *)fixed_addr, size, PROT_NONE, in MmapFixedNoAccess() 398 return (void *)internal_mmap(nullptr, size, PROT_NONE, flags, -1, 0); in MmapNoAccess()
|
H A D | sanitizer_posix.cpp | 150 return 0 == internal_mprotect((void*)addr, size, PROT_NONE); in MprotectNoAccess()
|
/freebsd/tests/sys/vm/ |
H A D | page_fault_signal.c | 111 p = mmap(NULL, sz, PROT_NONE, MAP_ANON, -1, 0); in ATF_TC_BODY()
|
/freebsd/sys/sys/ |
H A D | mman.h | 51 #define PROT_NONE 0x00 /* no permissions */ macro
|
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | utils.c | 72 !(defined(PROT_NONE) && defined(PROT_READ) && defined(PROT_WRITE)) 396 return mprotect(ptr, size, PROT_NONE); in _mprotect_noaccess()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/ |
H A D | safestack.cpp | 121 Mprotect(addr, guard, PROT_NONE); in unsafe_stack_alloc()
|
/freebsd/crypto/openssl/crypto/ |
H A D | mem_sec.c | 533 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 D | posixshm_test.c | 1706 addr = mmap(NULL, ps[i] * 2, PROT_NONE, in ATF_TC_BODY() 1724 largepage_protect(addr, ps[0], PROT_NONE, EINVAL); in ATF_TC_BODY() 1725 largepage_protect(addr, ps[i], PROT_NONE, 0); in ATF_TC_BODY() 1735 largepage_protect(addr, ps[0], PROT_NONE, EINVAL); in ATF_TC_BODY() 1736 largepage_protect(addr, ps[i], PROT_NONE, 0); in ATF_TC_BODY()
|
/freebsd/sys/vm/ |
H A D | vm_mmap.c | 166 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()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | ExecutorSharedMemoryMapperService.cpp | 90 void *Addr = mmap(nullptr, Size, PROT_NONE, MAP_SHARED, SharedMemoryFile, 0); in reserve()
|