| /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)
|
| H A D | mprotect3.sh | 51 if (mprotect(guard, pagesize, PROT_NONE)) {
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
| H A D | guarded_pool_allocator_posix.cpp | 66 mmap(nullptr, Size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in reserveGuardedPool() 95 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 macro 66 prot_arg = PROT_NONE; in InferiorCallMmap()
|
| /freebsd/lib/libc/tests/string/ |
| H A D | stpncpy_test.c | 55 assert(mprotect(buf + alloc_size - page_size, page_size, PROT_NONE) == 0); in makebuf() 58 assert(mprotect(buf, page_size, PROT_NONE) == 0); in makebuf()
|
| 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/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/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | linux.cpp | 57 MmapProt = PROT_NONE; in map() 93 int Prot = (Flags & MAP_NOACCESS) ? PROT_NONE : (PROT_READ | PROT_WRITE); in setMemoryPermission()
|
| /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/tests/sys/kern/ |
| H A D | pdrfork.c | 111 unmapped = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_GUARD, -1, 0); in ATF_TC_BODY()
|
| H A D | pdwait.c | 45 unmapped = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_GUARD, -1, 0); in unmapped()
|
| /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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix_libcdep.cpp | 451 return (void *)MmapNamed((void *)fixed_addr, size, PROT_NONE, in MmapFixedNoAccess() 458 return (void *)internal_mmap(nullptr, size, PROT_NONE, flags, -1, 0); in MmapNoAccess()
|
| /freebsd/crypto/openssh/ |
| H A D | sandbox-seccomp-filter.c | 202 SC_ALLOW_ARG_MASK(_nr, 2, PROT_READ|PROT_WRITE|PROT_NONE) 367 SC_ALLOW_ARG_MASK(__NR_mprotect, 2, PROT_READ|PROT_WRITE|PROT_NONE),
|
| /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 | 548 if (mprotect(sh.map_result, pgsize, PROT_NONE) < 0) in sh_init() 558 if (mprotect(sh.map_result + aligned, pgsize, PROT_NONE) < 0) in sh_init()
|