Home
last modified time | relevance | path

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

12

/linux-6.15/tools/testing/selftests/mm/
H A Dmap_fixed_noreplace.c31 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 Dmseal_test.c483 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 Dprotection_keys.c694 ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_anon_huge()
774 ptr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in malloc_pkey_hugetlb()
1473 ret = mprotect(p1, PAGE_SIZE, PROT_NONE); in test_implicit_mprotect_exec_only_memory()
1779 ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in main()
/linux-6.15/tools/perf/trace/beauty/
H A Dmmap_prot.sh23 grep -E -vw PROT_NONE | \
28 grep -E -vw PROT_NONE | \
/linux-6.15/Documentation/translations/zh_CN/core-api/
H A Dprotection-keys.rst56 ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
80 mprotect(ptr, size, PROT_NONE);
/linux-6.15/tools/arch/mips/include/uapi/asm/
H A Dmman.h35 #define PROT_NONE 0x00 macro
/linux-6.15/tools/arch/parisc/include/uapi/asm/
H A Dmman.h34 #define PROT_NONE 0x0 macro
/linux-6.15/tools/arch/alpha/include/uapi/asm/
H A Dmman.h34 #define PROT_NONE 0x0 macro
/linux-6.15/tools/arch/xtensa/include/uapi/asm/
H A Dmman.h34 #define PROT_NONE 0x0 macro
/linux-6.15/include/uapi/asm-generic/
H A Dmman-common.h16 #define PROT_NONE 0x0 /* page can not be accessed */ macro
/linux-6.15/tools/include/uapi/asm-generic/
H A Dmman-common.h16 #define PROT_NONE 0x0 /* page can not be accessed */ macro
/linux-6.15/arch/parisc/include/uapi/asm/
H A Dmman.h9 #define PROT_NONE 0x0 /* page can not be accessed */ macro
/linux-6.15/arch/mips/include/uapi/asm/
H A Dmman.h18 #define PROT_NONE 0x00 /* page can not be accessed */ macro
/linux-6.15/arch/xtensa/include/uapi/asm/
H A Dmman.h25 #define PROT_NONE 0x0 /* page can not be accessed */ macro
/linux-6.15/arch/alpha/include/uapi/asm/
H A Dmman.h9 #define PROT_NONE 0x0 /* page can not be accessed */ macro
/linux-6.15/tools/testing/selftests/proc/
H A Dproc-self-map-files-001.c58 p = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE, fd, 0); in main()
H A Dproc-self-map-files-002.c65 p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); in main()
/linux-6.15/tools/testing/selftests/x86/
H A Dtest_mremap_vdso.c32 dest_addr = mmap(0, size, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in try_to_remap()
/linux-6.15/tools/testing/selftests/powerpc/primitives/
H A Dload_unaligned_zeropad.c43 if (mprotect(mem_region + page_size, page_size, PROT_NONE)) { in protect_region()
/linux-6.15/tools/testing/selftests/drivers/s390x/uvdevice/
H A Dtest_uvdevice.c45 (__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-6.15/tools/testing/selftests/powerpc/copyloops/
H A Dexc_validate.c98 if (mprotect(p + page_size, page_size, PROT_NONE)) { in test_copy_exception()
/linux-6.15/Documentation/core-api/
H A Dprotection-keys.rst68 ptr = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
95 mprotect(ptr, size, PROT_NONE);
/linux-6.15/tools/testing/selftests/powerpc/mm/
H A Dexec_prot.c191 FAIL_IF(check_exec_fault(PROT_NONE)); in test()
/linux-6.15/Documentation/mm/
H A Darch_pgtable_helpers.rst31 | pte_protnone | Tests a PROT_NONE PTE |
105 | pmd_protnone | Tests a PROT_NONE PMD |
/linux-6.15/arch/s390/kvm/
H A Dgaccess.c321 PROT_NONE, enumerator
337 case PROT_NONE: in trans_exc_ending()
807 prot = PROT_NONE; in guest_range_to_gpas()
965 prot = PROT_NONE; in access_guest_with_key()

12