PROT_WRITE 186 arch/arm/vdso/vdsomunge.c outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, PROT_WRITE 128 arch/mips/vdso/genvdso.c addr = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, PROT_WRITE 45 arch/powerpc/include/asm/mman.h if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) PROT_WRITE 3509 arch/s390/kvm/kvm-s390.c PAGE_SIZE * 2, PROT_WRITE); PROT_WRITE 881 arch/s390/mm/gmap.c fault_flags = (prot == PROT_WRITE) ? FAULT_FLAG_WRITE : 0; PROT_WRITE 967 arch/s390/mm/gmap.c if ((pmd_i && (prot != PROT_NONE)) || (pmd_p && (prot == PROT_WRITE))) PROT_WRITE 2117 arch/s390/mm/gmap.c prot = (pte_val(pte) & _PAGE_PROTECT) ? PROT_READ : PROT_WRITE; PROT_WRITE 608 arch/s390/mm/pgtable.c (pte_p && (prot & PROT_WRITE))) { PROT_WRITE 58 arch/sparc/include/asm/mman.h if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI)) PROT_WRITE 196 arch/um/os-Linux/mem.c PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); PROT_WRITE 144 arch/um/os-Linux/process.c prot = (r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) | PROT_WRITE 156 arch/um/os-Linux/process.c int prot = ((r ? PROT_READ : 0) | (w ? PROT_WRITE : 0) | PROT_WRITE 202 arch/um/os-Linux/process.c addr = mmap64(NULL, UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 219 arch/um/os-Linux/skas/process.c UM_KERN_PAGE_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 272 arch/um/os-Linux/skas/process.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 22 arch/um/os-Linux/util.c PROT_READ | PROT_WRITE | PROT_EXEC) < 0) PROT_WRITE 216 arch/x86/ia32/ia32_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 299 arch/x86/ia32/ia32_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 9642 arch/x86/kvm/x86.c hva = vm_mmap(NULL, 0, size, PROT_READ | PROT_WRITE, PROT_WRITE 56 arch/x86/mm/mpx.c addr = do_mmap(NULL, 0, len, PROT_READ | PROT_WRITE, PROT_WRITE 36 arch/x86/um/os-Linux/task_size.c PROT_READ | PROT_WRITE, PROT_WRITE 54 arch/x86/um/os-Linux/task_size.c PROT_READ | PROT_WRITE) != 0) PROT_WRITE 86 arch/x86/um/shared/sysdep/stub_32.h "d" (PROT_READ | PROT_WRITE), PROT_WRITE 92 arch/x86/um/shared/sysdep/stub_64.h "d" (PROT_READ | PROT_WRITE), PROT_WRITE 95 arch/x86/um/user-offsets.c DEFINE(UM_PROT_WRITE, PROT_WRITE); PROT_WRITE 312 drivers/gpu/drm/armada/armada_gem.c addr = vm_mmap(dobj->obj.filp, 0, args->size, PROT_READ | PROT_WRITE, PROT_WRITE 1522 drivers/gpu/drm/drm_bufs.c PROT_READ | PROT_WRITE, PROT_WRITE 1527 drivers/gpu/drm/drm_bufs.c PROT_READ | PROT_WRITE, PROT_WRITE 143 drivers/gpu/drm/i810/i810_dma.c PROT_READ | PROT_WRITE, PROT_WRITE 82 drivers/gpu/drm/i915/gem/i915_gem_mman.c PROT_READ | PROT_WRITE, MAP_SHARED, PROT_WRITE 157 drivers/misc/lkdtm/perms.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 178 drivers/misc/lkdtm/perms.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 70 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 138 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 212 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 300 drivers/misc/lkdtm/usercopy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 138 drivers/staging/android/ashmem.c #define PROT_MASK (PROT_EXEC | PROT_READ | PROT_WRITE) PROT_WRITE 350 drivers/staging/android/ashmem.c _calc_vm_trans(prot, PROT_WRITE, VM_MAYWRITE) | PROT_WRITE 530 fs/aio.c PROT_READ | PROT_WRITE, PROT_WRITE 233 fs/binfmt_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 312 fs/binfmt_aout.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 535 fs/binfmt_elf.c prot |= PROT_WRITE; PROT_WRITE 1230 fs/binfmt_elf.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 416 fs/binfmt_elf_fdpic.c stack_prot = PROT_READ | PROT_WRITE; PROT_WRITE 947 fs/binfmt_elf_fdpic.c PROT_READ | PROT_WRITE | PROT_EXEC, mflags, 0); PROT_WRITE 1036 fs/binfmt_elf_fdpic.c if (phdr->p_flags & PF_W) prot |= PROT_WRITE; PROT_WRITE 1107 fs/binfmt_elf_fdpic.c if (prot & PROT_WRITE && disp > 0) { PROT_WRITE 1140 fs/binfmt_elf_fdpic.c if (prot & PROT_WRITE && excess1 > 0) { PROT_WRITE 577 fs/binfmt_flat.c PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 0); PROT_WRITE 621 fs/binfmt_flat.c PROT_READ | PROT_EXEC | PROT_WRITE, MAP_PRIVATE, 0); PROT_WRITE 97 include/linux/mman.h return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) == 0; PROT_WRITE 120 include/linux/mman.h _calc_vm_trans(prot, PROT_WRITE, VM_WRITE) | PROT_WRITE 172 include/linux/raid/pq.h PROT_READ|PROT_WRITE, \ PROT_WRITE 1466 ipc/shm.c prot = PROT_READ | PROT_WRITE; PROT_WRITE 7456 kernel/events/core.c prot |= PROT_WRITE; PROT_WRITE 487 lib/test_kasan.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 199 lib/test_user_copy.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 1490 mm/mmap.c if (prot & PROT_WRITE) { PROT_WRITE 2950 mm/mmap.c prot |= vma->vm_flags & VM_WRITE ? PROT_WRITE : 0; PROT_WRITE 860 mm/nommu.c if ((prot & PROT_WRITE) && PROT_WRITE 884 mm/nommu.c if (prot & PROT_WRITE) PROT_WRITE 890 mm/nommu.c ((prot & PROT_WRITE) && !(capabilities & NOMMU_MAP_WRITE)) || PROT_WRITE 958 mm/nommu.c if (file && !(prot & PROT_WRITE)) PROT_WRITE 57 samples/auxdisplay/cfag12864b-example.c cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 749 samples/bpf/xdpsock_user.c PROT_READ | PROT_WRITE, PROT_WRITE 1019 samples/mic/mpssd/mpssd.c PROT_READ|PROT_WRITE, MAP_SHARED, PROT_WRITE 218 scripts/insert-sys-cert.c map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); PROT_WRITE 432 scripts/mod/modpost.c map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); PROT_WRITE 185 scripts/recordmcount.c file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, PROT_WRITE 102 scripts/sortextable.c addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, PROT_WRITE 495 security/apparmor/lsm.c if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) PROT_WRITE 3660 security/selinux/hooks.c (!shared && (prot & PROT_WRITE)))) { PROT_WRITE 3678 security/selinux/hooks.c if (shared && (prot & PROT_WRITE)) PROT_WRITE 433 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, PROT_WRITE 445 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, PROT_WRITE 450 tools/io_uring/io_uring-bench.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, PROT_WRITE 18 tools/io_uring/setup.c ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, PROT_WRITE 31 tools/io_uring/setup.c sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE, PROT_WRITE 42 tools/io_uring/setup.c ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, PROT_WRITE 5401 tools/lib/bpf/libbpf.c PROT_READ | PROT_WRITE, MAP_SHARED, PROT_WRITE 266 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd, PROT_WRITE 283 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, umem->fd, PROT_WRITE 634 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, PROT_WRITE 653 tools/lib/bpf/xsk.c PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, PROT_WRITE 388 tools/perf/bench/numa.c buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); PROT_WRITE 737 tools/perf/builtin-report.c map->prot & PROT_WRITE ? 'w' : '-', PROT_WRITE 65 tools/perf/pmu-events/json.c PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); PROT_WRITE 39 tools/perf/tests/mmap-thread-lookup.c PROT_READ|PROT_WRITE|PROT_EXEC, PROT_WRITE 122 tools/perf/util/auxtrace.c mp->prot = PROT_READ | (auxtrace_overwrite ? 0 : PROT_WRITE); PROT_WRITE 273 tools/perf/util/event.c (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', PROT_WRITE 647 tools/perf/util/evlist.c mp->prot = PROT_READ | PROT_WRITE; PROT_WRITE 660 tools/perf/util/evlist.c mp->prot &= ~PROT_WRITE; PROT_WRITE 173 tools/perf/util/mmap.c map->aio.data[idx] = mmap(NULL, perf_mmap__mmap_len(map), PROT_READ|PROT_WRITE, PROT_WRITE 392 tools/perf/util/mmap.c map->data = mmap(NULL, perf_mmap__mmap_len(map), PROT_READ|PROT_WRITE, PROT_WRITE 54 tools/perf/util/session.c decomp = mmap(NULL, mmap_len, PROT_READ|PROT_WRITE, PROT_WRITE 2089 tools/perf/util/session.c mmap_prot |= PROT_WRITE; PROT_WRITE 363 tools/perf/util/synthetic-events.c event->mmap2.prot |= PROT_WRITE; PROT_WRITE 117 tools/testing/selftests/android/ion/ionutils.c map_buffer = (unsigned char *)mmap(NULL, maplen, PROT_READ|PROT_WRITE, PROT_WRITE 170 tools/testing/selftests/android/ion/ionutils.c map_buf = (unsigned char *)mmap(NULL, map_len, PROT_READ|PROT_WRITE, PROT_WRITE 91 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE, PROT_WRITE 42 tools/testing/selftests/ia64/aliasing-test.c addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); PROT_WRITE 648 tools/testing/selftests/kvm/lib/kvm_util.c PROT_READ | PROT_WRITE, PROT_WRITE 829 tools/testing/selftests/kvm/lib/kvm_util.c PROT_READ | PROT_WRITE, MAP_SHARED, vcpu->fd, 0); PROT_WRITE 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_WRITE 129 tools/testing/selftests/memfd/fuse_test.c PROT_READ | PROT_WRITE, PROT_WRITE 147 tools/testing/selftests/memfd/fuse_test.c PROT_READ | PROT_WRITE, PROT_WRITE 177 tools/testing/selftests/memfd/memfd_test.c PROT_READ | PROT_WRITE, PROT_WRITE 263 tools/testing/selftests/memfd/memfd_test.c PROT_READ | PROT_WRITE, PROT_WRITE 315 tools/testing/selftests/memfd/memfd_test.c PROT_READ | PROT_WRITE, PROT_WRITE 329 tools/testing/selftests/memfd/memfd_test.c PROT_WRITE, PROT_WRITE 353 tools/testing/selftests/memfd/memfd_test.c r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); PROT_WRITE 389 tools/testing/selftests/memfd/memfd_test.c PROT_READ | PROT_WRITE, PROT_WRITE 401 tools/testing/selftests/memfd/memfd_test.c PROT_WRITE, PROT_WRITE 419 tools/testing/selftests/memfd/memfd_test.c r = mprotect(p, mfd_def_size, PROT_READ | PROT_WRITE); PROT_WRITE 199 tools/testing/selftests/net/psock_fanout.c PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); PROT_WRITE 712 tools/testing/selftests/net/psock_tpacket.c ring->mm_space = mmap(0, ring->mm_len, PROT_READ | PROT_WRITE, PROT_WRITE 384 tools/testing/selftests/net/tcp_mmap.c buffer = mmap(NULL, chunk_size, PROT_READ | PROT_WRITE, PROT_WRITE 115 tools/testing/selftests/net/txring_overwrite.c PROT_READ | PROT_WRITE, MAP_SHARED, fdt, 0); PROT_WRITE 476 tools/testing/selftests/pidfd/pidfd_test.c child_exit_secs = mmap(NULL, sizeof *child_exit_secs, PROT_READ | PROT_WRITE, PROT_WRITE 205 tools/testing/selftests/powerpc/alignment/alignment_handler.c ci0 = mmap(NULL, bufsize, PROT_WRITE, MAP_SHARED, PROT_WRITE 207 tools/testing/selftests/powerpc/alignment/alignment_handler.c ci1 = mmap(NULL, bufsize, PROT_WRITE, MAP_SHARED, PROT_WRITE 42 tools/testing/selftests/powerpc/benchmarks/mmap_bench.c char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE, PROT_WRITE 86 tools/testing/selftests/powerpc/copyloops/exc_validate.c p = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, PROT_WRITE 18 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 34 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 34 tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c p = mmap((void *)(512ul << 40), page_size, PROT_READ | PROT_WRITE, PROT_WRITE 29 tools/testing/selftests/powerpc/mm/prot_sao.c p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, PROT_WRITE 208 tools/testing/selftests/powerpc/mm/subpage_prot.c fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, PROT_WRITE 598 tools/testing/selftests/powerpc/mm/tlbie_test.c mprotect(map1, size, PROT_READ|PROT_WRITE); PROT_WRITE 24 tools/testing/selftests/powerpc/pmu/ebb/trace.c tb = mmap(NULL, size, PROT_READ | PROT_WRITE, PROT_WRITE 53 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c if (mprotect(mem_region + page_size, page_size, PROT_READ|PROT_WRITE)) { PROT_WRITE 126 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, PROT_WRITE 60 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c PROT_READ | PROT_WRITE, PROT_WRITE 130 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, PROT_WRITE 60 tools/testing/selftests/powerpc/tm/tm-vmxcopy.c a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); PROT_WRITE 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_WRITE 54 tools/testing/selftests/ptrace/peeksiginfo.c addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 120 tools/testing/selftests/sigaltstack/sas.c sstack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, PROT_WRITE 164 tools/testing/selftests/sigaltstack/sas.c ustack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, PROT_WRITE 196 tools/testing/selftests/vm/compaction_test.c map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 94 tools/testing/selftests/vm/gup_benchmark.c p = mmap(NULL, size, PROT_READ | PROT_WRITE, flags, filed, 0); PROT_WRITE 28 tools/testing/selftests/vm/hugepage-mmap.c #define PROTECTION (PROT_READ | PROT_WRITE) PROT_WRITE 20 tools/testing/selftests/vm/map_hugetlb.c #define PROTECTION (PROT_READ | PROT_WRITE) PROT_WRITE 57 tools/testing/selftests/vm/map_populate.c smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, PROT_WRITE 87 tools/testing/selftests/vm/map_populate.c smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, PROT_WRITE 197 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 260 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 302 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 338 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 364 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 419 tools/testing/selftests/vm/mlock2-tests.c map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 29 tools/testing/selftests/vm/on-fault-limit.c map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, PROT_WRITE 149 tools/testing/selftests/vm/thuge-gen.c map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, PROT_WRITE 35 tools/testing/selftests/vm/transhuge-stress.c if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 89 tools/testing/selftests/vm/transhuge-stress.c ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 173 tools/testing/selftests/vm/userfaultfd.c *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 184 tools/testing/selftests/vm/userfaultfd.c area_alias = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 233 tools/testing/selftests/vm/userfaultfd.c *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, PROT_WRITE 239 tools/testing/selftests/vm/va_128TBswitch.c p = mmap(t->addr, t->size, PROT_READ | PROT_WRITE, t->flags, -1, 0); PROT_WRITE 89 tools/testing/selftests/vm/virtual_address_range.c PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); PROT_WRITE 105 tools/testing/selftests/vm/virtual_address_range.c ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 121 tools/testing/selftests/vm/virtual_address_range.c hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, PROT_WRITE 254 tools/testing/selftests/x86/entry_from_vm86.c PROT_READ | PROT_WRITE | PROT_EXEC, PROT_WRITE 279 tools/testing/selftests/x86/fsgsbase.c PROT_READ | PROT_WRITE, PROT_WRITE 508 tools/testing/selftests/x86/fsgsbase.c shared_scratch = mmap(NULL, 4096, PROT_READ | PROT_WRITE, PROT_WRITE 676 tools/testing/selftests/x86/ldt_gdt.c unsigned int *page = mmap(NULL, 4096, PROT_READ | PROT_WRITE, PROT_WRITE 699 tools/testing/selftests/x86/ldt_gdt.c PROT_READ | PROT_WRITE, PROT_WRITE 1441 tools/testing/selftests/x86/protection_keys.c int prot = PROT_READ|PROT_WRITE; PROT_WRITE 66 tools/testing/selftests/x86/sysret_ss_attrs.c unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, PROT_WRITE 161 tools/virtio/vringh_test.c host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); PROT_WRITE 162 tools/virtio/vringh_test.c guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);