| /linux/tools/testing/selftests/mm/ |
| H A D | map_fixed_noreplace.c | 31 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 61 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 75 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 93 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 112 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 130 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 148 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 166 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 184 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
|
| H A D | mseal_test.c | 483 ptr = mmap(0, size, PROT_NONE, in test_seal_zero_address() 1277 ret2 = mmap(ptr, size, PROT_NONE, in test_seal_mmap_overwrite_prot() 1554 ret = sys_mprotect(ptr, page_size, PROT_NONE); in test_seal_merge_and_split() 1556 ret = sys_mprotect(ptr + 23 * page_size, page_size, PROT_NONE); in test_seal_merge_and_split() 1609 ret = sys_mprotect(ptr + 2 * page_size, page_size, PROT_NONE); in test_seal_merge_and_split()
|
| H A D | soft-dirty.c | 201 reserved = mmap(NULL, 5 * pagesize, PROT_NONE, in test_merge()
|
| H A D | protection_keys.c | 692 ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_anon_huge() 772 ptr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in malloc_pkey_hugetlb() 1471 ret = mprotect(p1, PAGE_SIZE, PROT_NONE); in test_implicit_mprotect_exec_only_memory() 1777 ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in main()
|
| H A D | mremap_dontunmap.c | 46 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap()
|
| H A D | uffd-wp-mremap.c | 216 addr = mmap_aligned(size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS); in test_one_folio()
|
| /linux/tools/perf/trace/beauty/ |
| H A D | mmap_prot.sh | 23 grep -E -vw PROT_NONE | \ 28 grep -E -vw PROT_NONE | \
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | protection-keys.rst | 56 ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); 80 mprotect(ptr, size, PROT_NONE);
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_numa_mpol.c | 146 mprotect(futex_ptr + mem_size, mem_size, PROT_NONE); in TEST() 170 mprotect(futex_ptr, mem_size, PROT_NONE); in TEST()
|
| /linux/tools/arch/mips/include/uapi/asm/ |
| H A D | mman.h | 35 #define PROT_NONE 0x00 macro
|
| /linux/tools/arch/alpha/include/uapi/asm/ |
| H A D | mman.h | 34 #define PROT_NONE 0x0 macro
|
| /linux/tools/arch/xtensa/include/uapi/asm/ |
| H A D | mman.h | 34 #define PROT_NONE 0x0 macro
|
| /linux/tools/arch/parisc/include/uapi/asm/ |
| H A D | mman.h | 34 #define PROT_NONE 0x0 macro
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | mman-common.h | 16 #define PROT_NONE 0x0 /* page can not be accessed */ macro
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-self-map-files-001.c | 58 p = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE, fd, 0); in main()
|
| H A D | proc-self-map-files-002.c | 65 p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); in main()
|
| /linux/tools/testing/selftests/x86/ |
| H A D | test_mremap_vdso.c | 32 dest_addr = mmap(0, size, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in try_to_remap()
|
| /linux/tools/testing/selftests/powerpc/primitives/ |
| H A D | load_unaligned_zeropad.c | 43 if (mprotect(mem_region + page_size, page_size, PROT_NONE)) { in protect_region()
|
| /linux/tools/testing/selftests/drivers/s390x/uvdevice/ |
| H A D | test_uvdevice.c | 45 (__u64)mmap(NULL, (size_t)getpagesize(), PROT_NONE, MAP_ANONYMOUS, -1, 0); in FIXTURE_SETUP() 176 (__u64)mmap(NULL, (size_t)getpagesize(), PROT_NONE, MAP_ANONYMOUS, -1, 0); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/powerpc/copyloops/ |
| H A D | exc_validate.c | 98 if (mprotect(p + page_size, page_size, PROT_NONE)) { in test_copy_exception()
|
| /linux/Documentation/core-api/ |
| H A D | protection-keys.rst | 68 ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); 95 mprotect(ptr, size, PROT_NONE);
|
| /linux/tools/testing/selftests/powerpc/mm/ |
| H A D | exec_prot.c | 191 FAIL_IF(check_exec_fault(PROT_NONE)); in test()
|
| /linux/Documentation/mm/ |
| H A D | arch_pgtable_helpers.rst | 31 | pte_protnone | Tests a PROT_NONE PTE | 101 | pmd_protnone | Tests a PROT_NONE PMD |
|
| /linux/tools/testing/selftests/perf_events/ |
| H A D | mmap.c | 96 region = mmap(NULL, REGION_SIZE, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 323 area = mmap(NULL, encl_size * 2, PROT_NONE, in encl_map_area()
|