PROT_READ         145 arch/arm/vdso/vdsomunge.c 	inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0);
PROT_READ         186 arch/arm/vdso/vdsomunge.c 	outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED,
PROT_READ         128 arch/mips/vdso/genvdso.c 	addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd,
PROT_READ          45 arch/powerpc/include/asm/mman.h 	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO))
PROT_READ         975 arch/s390/mm/gmap.c 	if (prot == PROT_READ && !pmd_p) {
PROT_READ        1107 arch/s390/mm/gmap.c 	if (!MACHINE_HAS_ESOP && prot == PROT_READ)
PROT_READ        1161 arch/s390/mm/gmap.c 		rc = gmap_pte_op_fixup(gmap, gaddr, vmaddr, PROT_READ);
PROT_READ        1234 arch/s390/mm/gmap.c 			rc = ptep_force_prot(parent->mm, paddr, ptep, PROT_READ,
PROT_READ        1244 arch/s390/mm/gmap.c 			rc = gmap_pte_op_fixup(parent, paddr, vmaddr, PROT_READ);
PROT_READ        1702 arch/s390/mm/gmap.c 				PROT_READ, GMAP_NOTIFY_SHADOW);
PROT_READ        2117 arch/s390/mm/gmap.c 	prot = (pte_val(pte) & _PAGE_PROTECT) ? PROT_READ : PROT_WRITE;
PROT_READ        2445 arch/s390/mm/gmap.c 	gmap_protect_pmd(gmap, gaddr, pmdp, PROT_READ, 0);
PROT_READ         619 arch/s390/mm/pgtable.c 	if (prot == PROT_READ && !pte_p) {
PROT_READ          58 arch/sparc/include/asm/mman.h 	if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI))
PROT_READ         213 arch/sparc/vdso/vdso2c.c 	map_input(argv[1], &raw_addr, &raw_len, PROT_READ);
PROT_READ         214 arch/sparc/vdso/vdso2c.c 	map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ);
PROT_READ         196 arch/um/os-Linux/mem.c 		    PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0);
PROT_READ         144 arch/um/os-Linux/process.c 	prot = (r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
PROT_READ         156 arch/um/os-Linux/process.c 	int prot = ((r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) |
PROT_READ         202 arch/um/os-Linux/process.c 	addr = mmap64(NULL, UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         219 arch/um/os-Linux/skas/process.c 			    UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         272 arch/um/os-Linux/skas/process.c 		     PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ          22 arch/um/os-Linux/util.c 		    PROT_READ | PROT_WRITE | PROT_EXEC) < 0)
PROT_READ         390 arch/x86/boot/tools/build.c 	kernel = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0);
PROT_READ         234 arch/x86/entry/vdso/vdso2c.c 	map_input(argv[1], &raw_addr, &raw_len, PROT_READ);
PROT_READ         235 arch/x86/entry/vdso/vdso2c.c 	map_input(argv[2], &stripped_addr, &stripped_len, PROT_READ);
PROT_READ         207 arch/x86/ia32/ia32_aout.c 				PROT_READ | PROT_EXEC,
PROT_READ         216 arch/x86/ia32/ia32_aout.c 				PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         299 arch/x86/ia32/ia32_aout.c 			PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ        9642 arch/x86/kvm/x86.c 		hva = vm_mmap(NULL, 0, size, PROT_READ | PROT_WRITE,
PROT_READ          56 arch/x86/mm/mpx.c 	addr = do_mmap(NULL, 0, len, PROT_READ | PROT_WRITE,
PROT_READ          36 arch/x86/um/os-Linux/task_size.c 			      PROT_READ | PROT_WRITE,
PROT_READ          54 arch/x86/um/os-Linux/task_size.c 			    PROT_READ | PROT_WRITE) != 0)
PROT_READ          86 arch/x86/um/shared/sysdep/stub_32.h 			    "d" (PROT_READ | PROT_WRITE),
PROT_READ          92 arch/x86/um/shared/sysdep/stub_64.h 			    "d" (PROT_READ | PROT_WRITE),
PROT_READ          94 arch/x86/um/user-offsets.c 	DEFINE(UM_PROT_READ, PROT_READ);
PROT_READ         566 drivers/gpu/drm/amd/amdkfd/kfd_process.c 			KFD_CWSR_TBA_TMA_SIZE, PROT_READ | PROT_EXEC,
PROT_READ         312 drivers/gpu/drm/armada/armada_gem.c 	addr = vm_mmap(dobj->obj.filp, 0, args->size, PROT_READ | PROT_WRITE,
PROT_READ        1522 drivers/gpu/drm/drm_bufs.c 					  PROT_READ | PROT_WRITE,
PROT_READ        1527 drivers/gpu/drm/drm_bufs.c 					  PROT_READ | PROT_WRITE,
PROT_READ         143 drivers/gpu/drm/i810/i810_dma.c 					    PROT_READ | PROT_WRITE,
PROT_READ          82 drivers/gpu/drm/i915/gem/i915_gem_mman.c 		       PROT_READ | PROT_WRITE, MAP_SHARED,
PROT_READ         157 drivers/misc/lkdtm/perms.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         178 drivers/misc/lkdtm/perms.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ          70 drivers/misc/lkdtm/usercopy.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         138 drivers/misc/lkdtm/usercopy.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         212 drivers/misc/lkdtm/usercopy.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         300 drivers/misc/lkdtm/usercopy.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         138 drivers/staging/android/ashmem.c #define PROT_MASK		(PROT_EXEC | PROT_READ | PROT_WRITE)
PROT_READ         349 drivers/staging/android/ashmem.c 	return _calc_vm_trans(prot, PROT_READ,  VM_MAYREAD) |
PROT_READ         540 drivers/staging/android/ashmem.c 	if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC))
PROT_READ         530 fs/aio.c       				       PROT_READ | PROT_WRITE,
PROT_READ         225 fs/binfmt_aout.c 			PROT_READ | PROT_EXEC,
PROT_READ         233 fs/binfmt_aout.c 				PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         312 fs/binfmt_aout.c 			PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         533 fs/binfmt_elf.c 		prot |= PROT_READ;
PROT_READ        1134 fs/binfmt_elf.c 		error = vm_mmap(NULL, 0, PAGE_SIZE, PROT_READ | PROT_EXEC,
PROT_READ        1230 fs/binfmt_elf.c 			PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         416 fs/binfmt_elf_fdpic.c 	stack_prot = PROT_READ | PROT_WRITE;
PROT_READ         947 fs/binfmt_elf_fdpic.c 			PROT_READ | PROT_WRITE | PROT_EXEC, mflags, 0);
PROT_READ        1035 fs/binfmt_elf_fdpic.c 		if (phdr->p_flags & PF_R) prot |= PROT_READ;
PROT_READ         564 fs/binfmt_flat.c 		textpos = vm_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC,
PROT_READ         577 fs/binfmt_flat.c 			PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 0);
PROT_READ         621 fs/binfmt_flat.c 			PROT_READ | PROT_EXEC | PROT_WRITE, MAP_PRIVATE, 0);
PROT_READ          97 include/linux/mman.h 	return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) == 0;
PROT_READ         119 include/linux/mman.h 	return _calc_vm_trans(prot, PROT_READ,  VM_READ ) |
PROT_READ         172 include/linux/raid/pq.h 						     PROT_READ|PROT_WRITE,   \
PROT_READ        1462 ipc/shm.c      		prot = PROT_READ;
PROT_READ        1466 ipc/shm.c      		prot = PROT_READ | PROT_WRITE;
PROT_READ        7454 kernel/events/core.c 		prot |= PROT_READ;
PROT_READ         487 lib/test_kasan.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         199 lib/test_user_copy.c 			    PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ        1409 mm/mmap.c      	if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC))
PROT_READ        2949 mm/mmap.c      	prot |= vma->vm_flags & VM_READ ? PROT_READ : 0;
PROT_READ         494 mm/mprotect.c  				(prot & PROT_READ);
PROT_READ         889 mm/nommu.c     			if (((prot & PROT_READ)  && !(capabilities & NOMMU_MAP_READ))  ||
PROT_READ         906 mm/nommu.c     		} else if ((prot & PROT_READ) && !(prot & PROT_EXEC)) {
PROT_READ         912 mm/nommu.c     		} else if ((prot & PROT_READ) &&
PROT_READ         926 mm/nommu.c     		if ((prot & PROT_READ) &&
PROT_READ          57 samples/auxdisplay/cfag12864b-example.c 	cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         749 samples/bpf/xdpsock_user.c 		    PROT_READ | PROT_WRITE,
PROT_READ         426 samples/mic/mpssd/mpssd.c 		PROT_READ, MAP_SHARED, fd, 0);
PROT_READ        1019 samples/mic/mpssd/mpssd.c 		PROT_READ|PROT_WRITE, MAP_SHARED,
PROT_READ        1563 samples/mic/mpssd/mpssd.c 	map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
PROT_READ         218 scripts/insert-sys-cert.c 	map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
PROT_READ          66 scripts/kconfig/confdata.c 	map1 = mmap(NULL, st1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0);
PROT_READ          70 scripts/kconfig/confdata.c 	map2 = mmap(NULL, st2.st_size, PROT_READ, MAP_PRIVATE, fd2, 0);
PROT_READ         432 scripts/mod/modpost.c 	map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
PROT_READ         185 scripts/recordmcount.c 	file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE,
PROT_READ         102 scripts/sortextable.c 	addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED,
PROT_READ         489 security/apparmor/lsm.c 	if (prot & PROT_READ)
PROT_READ        1418 security/security.c 	if ((prot & (PROT_READ | PROT_EXEC)) != PROT_READ)
PROT_READ         972 tools/bpf/bpf_dbg.c 	pcap_ptr_va_start = mmap(NULL, pcap_map_size, PROT_READ,
PROT_READ         143 tools/build/fixdep.c 	map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
PROT_READ         111 tools/firmware/ihex2fw.c 	data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0);
PROT_READ         433 tools/io_uring/io_uring-bench.c 			PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd,
PROT_READ         445 tools/io_uring/io_uring-bench.c 			PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd,
PROT_READ         450 tools/io_uring/io_uring-bench.c 			PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd,
PROT_READ          18 tools/io_uring/setup.c 	ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE,
PROT_READ          31 tools/io_uring/setup.c 	sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE,
PROT_READ          42 tools/io_uring/setup.c 	ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE,
PROT_READ        5401 tools/lib/bpf/libbpf.c 			     PROT_READ | PROT_WRITE, MAP_SHARED,
PROT_READ         266 tools/lib/bpf/xsk.c 		   PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd,
PROT_READ         283 tools/lib/bpf/xsk.c 		   PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd,
PROT_READ         634 tools/lib/bpf/xsk.c 			      PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE,
PROT_READ         653 tools/lib/bpf/xsk.c 			      PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE,
PROT_READ         108 tools/perf/arch/x86/tests/intel-cqm.c 	event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0);
PROT_READ         125 tools/perf/arch/x86/tests/rdpmc.c 	addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0);
PROT_READ         388 tools/perf/bench/numa.c 	buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0);
PROT_READ         736 tools/perf/builtin-report.c 				   map->prot & PROT_READ ? 'r' : '-',
PROT_READ         216 tools/perf/jvmti/jvmti_agent.c 	marker_addr = mmap(NULL, pgsz, PROT_READ|PROT_EXEC, MAP_PRIVATE, fd, 0);
PROT_READ          65 tools/perf/pmu-events/json.c 		   PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
PROT_READ          39 tools/perf/tests/mmap-thread-lookup.c 		   PROT_READ|PROT_WRITE|PROT_EXEC,
PROT_READ         122 tools/perf/util/auxtrace.c 		mp->prot = PROT_READ | (auxtrace_overwrite ? 0 : PROT_WRITE);
PROT_READ         824 tools/perf/util/auxtrace.c 	addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, file_offset);
PROT_READ          53 tools/perf/util/copyfile.c 	ptr = mmap(NULL, off_in + size, PROT_READ, MAP_PRIVATE, ifd, pgoff);
PROT_READ         272 tools/perf/util/event.c 		       (event->mmap2.prot & PROT_READ) ? 'r' : '-',
PROT_READ         647 tools/perf/util/evlist.c 		mp->prot = PROT_READ | PROT_WRITE;
PROT_READ         173 tools/perf/util/mmap.c 	map->aio.data[idx] = mmap(NULL, perf_mmap__mmap_len(map), PROT_READ|PROT_WRITE,
PROT_READ         392 tools/perf/util/mmap.c 		map->data = mmap(NULL, perf_mmap__mmap_len(map), PROT_READ|PROT_WRITE,
PROT_READ          54 tools/perf/util/session.c 	decomp = mmap(NULL, mmap_len, PROT_READ|PROT_WRITE,
PROT_READ        2085 tools/perf/util/session.c 	mmap_prot  = PROT_READ;
PROT_READ         137 tools/perf/util/srccode.c 	h->map = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0);
PROT_READ         361 tools/perf/util/synthetic-events.c 			event->mmap2.prot |= PROT_READ;
PROT_READ          39 tools/perf/util/zlib.c 	ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0);
PROT_READ          83 tools/power/acpi/os_specific/service_layers/osunixmap.c 	mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS,
PROT_READ         184 tools/power/cpupower/debug/i386/dump_psb.c 	mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000);
PROT_READ         117 tools/testing/selftests/android/ion/ionutils.c 	map_buffer = (unsigned char *)mmap(NULL, maplen, PROT_READ|PROT_WRITE,
PROT_READ         170 tools/testing/selftests/android/ion/ionutils.c 	map_buf = (unsigned char *)mmap(NULL, map_len, PROT_READ|PROT_WRITE,
PROT_READ          91 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c 	buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE,
PROT_READ          42 tools/testing/selftests/ia64/aliasing-test.c 	addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset);
PROT_READ         648 tools/testing/selftests/kvm/lib/kvm_util.c 				  PROT_READ | PROT_WRITE,
PROT_READ         829 tools/testing/selftests/kvm/lib/kvm_util.c 		PROT_READ | PROT_WRITE, MAP_SHARED, vcpu->fd, 0);
PROT_READ          66 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 	run = (struct kvm_run *)mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_SHARED,
PROT_READ         129 tools/testing/selftests/memfd/fuse_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         147 tools/testing/selftests/memfd/fuse_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         177 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         195 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ,
PROT_READ         250 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ,
PROT_READ         263 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         282 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ,
PROT_READ         315 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         344 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ,
PROT_READ         353 tools/testing/selftests/memfd/memfd_test.c 	r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
PROT_READ         389 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ | PROT_WRITE,
PROT_READ         414 tools/testing/selftests/memfd/memfd_test.c 		 PROT_READ,
PROT_READ         419 tools/testing/selftests/memfd/memfd_test.c 		r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE);
PROT_READ         199 tools/testing/selftests/net/psock_fanout.c 		    PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
PROT_READ         712 tools/testing/selftests/net/psock_tpacket.c 	ring->mm_space = mmap(0, ring->mm_len, PROT_READ | PROT_WRITE,
PROT_READ         145 tools/testing/selftests/net/tcp_mmap.c 		addr = mmap(NULL, chunk_size, PROT_READ, flags, fd, 0);
PROT_READ         384 tools/testing/selftests/net/tcp_mmap.c 	buffer = mmap(NULL, chunk_size, PROT_READ | PROT_WRITE,
PROT_READ         115 tools/testing/selftests/net/txring_overwrite.c 		     PROT_READ | PROT_WRITE, MAP_SHARED, fdt, 0);
PROT_READ         476 tools/testing/selftests/pidfd/pidfd_test.c 	child_exit_secs = mmap(NULL, sizeof *child_exit_secs, PROT_READ | PROT_WRITE,
PROT_READ          42 tools/testing/selftests/powerpc/benchmarks/mmap_bench.c 		char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE,
PROT_READ          86 tools/testing/selftests/powerpc/copyloops/exc_validate.c 	p = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE,
PROT_READ          18 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c 	p = mmap(addr, SIZE, PROT_READ | PROT_WRITE,
PROT_READ          34 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c 	p = mmap(addr, SIZE, PROT_READ | PROT_WRITE,
PROT_READ          34 tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c 	p = mmap((void *)(512ul << 40), page_size, PROT_READ | PROT_WRITE,
PROT_READ          29 tools/testing/selftests/powerpc/mm/prot_sao.c 	p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO,
PROT_READ         208 tools/testing/selftests/powerpc/mm/subpage_prot.c 	fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE,
PROT_READ         578 tools/testing/selftests/powerpc/mm/tlbie_test.c 		mprotect(map1, size, PROT_READ);
PROT_READ         598 tools/testing/selftests/powerpc/mm/tlbie_test.c 		mprotect(map1, size, PROT_READ|PROT_WRITE);
PROT_READ          24 tools/testing/selftests/powerpc/pmu/ebb/trace.c 	tb = mmap(NULL, size, PROT_READ | PROT_WRITE,
PROT_READ          53 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c 	if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) {
PROT_READ         126 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c 	mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE,
PROT_READ         330 tools/testing/selftests/powerpc/ptrace/core-pkey.c 	core = mmap(NULL, core_size, PROT_READ, MAP_PRIVATE, fd, 0);
PROT_READ          60 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c 			    PROT_READ | PROT_WRITE,
PROT_READ         130 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c 	ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE,
PROT_READ          60 tools/testing/selftests/powerpc/tm/tm-vmxcopy.c 	a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
PROT_READ          56 tools/testing/selftests/proc/thread-self.c 	stack = mmap(NULL, 2 * PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
PROT_READ          54 tools/testing/selftests/ptrace/peeksiginfo.c 	addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE,
PROT_READ          61 tools/testing/selftests/ptrace/peeksiginfo.c 	addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ,
PROT_READ         658 tools/testing/selftests/seccomp/seccomp_bpf.c 		NULL, page_size, PROT_READ, MAP_PRIVATE, fd, page_size);
PROT_READ         662 tools/testing/selftests/seccomp/seccomp_bpf.c 		 NULL, page_size, PROT_READ, MAP_PRIVATE, fd, 0x0C0FFEE);
PROT_READ         120 tools/testing/selftests/sigaltstack/sas.c 	sstack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE,
PROT_READ         164 tools/testing/selftests/sigaltstack/sas.c 	ustack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE,
PROT_READ         196 tools/testing/selftests/vm/compaction_test.c 		map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE,
PROT_READ          94 tools/testing/selftests/vm/gup_benchmark.c 	p = mmap(NULL, size, PROT_READ | PROT_WRITE, flags, filed, 0);
PROT_READ          28 tools/testing/selftests/vm/hugepage-mmap.c #define PROTECTION (PROT_READ | PROT_WRITE)
PROT_READ          20 tools/testing/selftests/vm/map_hugetlb.c #define PROTECTION (PROT_READ | PROT_WRITE)
PROT_READ          57 tools/testing/selftests/vm/map_populate.c 	smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE,
PROT_READ          87 tools/testing/selftests/vm/map_populate.c 	smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE,
PROT_READ         197 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE,
PROT_READ         260 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE,
PROT_READ         302 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE,
PROT_READ         338 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE,
PROT_READ         364 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE,
PROT_READ         419 tools/testing/selftests/vm/mlock2-tests.c 	map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE,
PROT_READ          29 tools/testing/selftests/vm/on-fault-limit.c 	map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE,
PROT_READ         149 tools/testing/selftests/vm/thuge-gen.c 	map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE,
PROT_READ          35 tools/testing/selftests/vm/transhuge-stress.c 	if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE,
PROT_READ          89 tools/testing/selftests/vm/transhuge-stress.c 	ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         173 tools/testing/selftests/vm/userfaultfd.c 	*alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE,
PROT_READ         184 tools/testing/selftests/vm/userfaultfd.c 		area_alias = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE,
PROT_READ         233 tools/testing/selftests/vm/userfaultfd.c 	*alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE,
PROT_READ         239 tools/testing/selftests/vm/va_128TBswitch.c 		p = mmap(t->addr, t->size, PROT_READ | PROT_WRITE, t->flags, -1, 0);
PROT_READ          88 tools/testing/selftests/vm/virtual_address_range.c 	ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ |
PROT_READ         105 tools/testing/selftests/vm/virtual_address_range.c 		ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         121 tools/testing/selftests/vm/virtual_address_range.c 		hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE,
PROT_READ         254 tools/testing/selftests/x86/entry_from_vm86.c 				   PROT_READ | PROT_WRITE | PROT_EXEC,
PROT_READ         279 tools/testing/selftests/x86/fsgsbase.c 			PROT_READ | PROT_WRITE,
PROT_READ         508 tools/testing/selftests/x86/fsgsbase.c 	shared_scratch = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
PROT_READ         676 tools/testing/selftests/x86/ldt_gdt.c 	unsigned int *page = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
PROT_READ         699 tools/testing/selftests/x86/ldt_gdt.c 			     PROT_READ | PROT_WRITE,
PROT_READ        1120 tools/testing/selftests/x86/protection_keys.c 		err = sys_mprotect_pkey(ptr, PAGE_SIZE, PROT_READ, i);
PROT_READ        1132 tools/testing/selftests/x86/protection_keys.c 	err = sys_mprotect_pkey(ptr, PAGE_SIZE, PROT_READ, bad_pkey);
PROT_READ        1400 tools/testing/selftests/x86/protection_keys.c 	ret = mprotect(p1, PAGE_SIZE, PROT_READ|PROT_EXEC);
PROT_READ        1416 tools/testing/selftests/x86/protection_keys.c 	sret = syscall(SYS_mprotect_key, ptr, size, PROT_READ, pkey);
PROT_READ        1441 tools/testing/selftests/x86/protection_keys.c 	int prot = PROT_READ|PROT_WRITE;
PROT_READ          66 tools/testing/selftests/x86/sysret_ss_attrs.c 	unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE,
PROT_READ         161 tools/virtio/vringh_test.c 	host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
PROT_READ         162 tools/virtio/vringh_test.c 	guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
PROT_READ         989 tools/vm/page-types.c 		ptr = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, off);