MAP_PRIVATE 145 arch/arm/vdso/vdsomunge.c inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); MAP_PRIVATE 2264 arch/ia64/kernel/perfmon.c vma->vm_start = get_unmapped_area(NULL, 0, size, 0, MAP_PRIVATE|MAP_ANONYMOUS); MAP_PRIVATE 173 arch/sparc/vdso/vdso2c.c *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); MAP_PRIVATE 196 arch/um/os-Linux/mem.c PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); MAP_PRIVATE 209 arch/um/os-Linux/skas/process.c PROT_EXEC, MAP_FIXED | MAP_PRIVATE, fd, offset); MAP_PRIVATE 273 arch/um/os-Linux/skas/process.c MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 194 arch/x86/entry/vdso/vdso2c.c *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); MAP_PRIVATE 208 arch/x86/ia32/ia32_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_PRIVATE 217 arch/x86/ia32/ia32_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_PRIVATE 300 arch/x86/ia32/ia32_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_32BIT, MAP_PRIVATE 57 arch/x86/mm/mpx.c MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate, NULL); MAP_PRIVATE 37 arch/x86/um/os-Linux/task_size.c MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 158 drivers/misc/lkdtm/perms.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 179 drivers/misc/lkdtm/perms.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 71 drivers/misc/lkdtm/usercopy.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 139 drivers/misc/lkdtm/usercopy.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 213 drivers/misc/lkdtm/usercopy.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 301 drivers/misc/lkdtm/usercopy.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 226 fs/binfmt_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE, MAP_PRIVATE 234 fs/binfmt_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE, MAP_PRIVATE 313 fs/binfmt_aout.c MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE, MAP_PRIVATE 579 fs/binfmt_elf.c int elf_type = MAP_PRIVATE | MAP_DENYWRITE; MAP_PRIVATE 918 fs/binfmt_elf.c elf_flags = MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE; MAP_PRIVATE 1135 fs/binfmt_elf.c MAP_FIXED | MAP_PRIVATE, 0); MAP_PRIVATE 1231 fs/binfmt_elf.c MAP_FIXED_NOREPLACE | MAP_PRIVATE | MAP_DENYWRITE, MAP_PRIVATE 422 fs/binfmt_elf_fdpic.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_PRIVATE 942 fs/binfmt_elf_fdpic.c mflags = MAP_PRIVATE; MAP_PRIVATE 1039 fs/binfmt_elf_fdpic.c flags = MAP_PRIVATE | MAP_DENYWRITE; MAP_PRIVATE 565 fs/binfmt_flat.c MAP_PRIVATE|MAP_EXECUTABLE, 0); MAP_PRIVATE 577 fs/binfmt_flat.c PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 0); MAP_PRIVATE 621 fs/binfmt_flat.c PROT_READ | PROT_EXEC | PROT_WRITE, MAP_PRIVATE, 0); MAP_PRIVATE 36 include/linux/mman.h | MAP_PRIVATE \ MAP_PRIVATE 173 include/linux/raid/pq.h MAP_PRIVATE|MAP_ANONYMOUS,\ MAP_PRIVATE 7463 kernel/events/core.c flags = MAP_PRIVATE; MAP_PRIVATE 488 lib/test_kasan.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 200 lib/test_user_copy.c MAP_ANONYMOUS | MAP_PRIVATE, 0); MAP_PRIVATE 1515 mm/mmap.c case MAP_PRIVATE: MAP_PRIVATE 1544 mm/mmap.c case MAP_PRIVATE: MAP_PRIVATE 799 mm/nommu.c if ((flags & MAP_TYPE) != MAP_PRIVATE && MAP_PRIVATE 973 mm/nommu.c if ((flags & MAP_PRIVATE) && current->ptrace) MAP_PRIVATE 750 samples/bpf/xdpsock_user.c MAP_PRIVATE | MAP_ANONYMOUS | opt_mmap_flags, -1, 0); MAP_PRIVATE 1563 samples/mic/mpssd/mpssd.c map = mmap(NULL, len, PROT_READ, MAP_PRIVATE, fd, 0); MAP_PRIVATE 66 scripts/kconfig/confdata.c map1 = mmap(NULL, st1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0); MAP_PRIVATE 70 scripts/kconfig/confdata.c map2 = mmap(NULL, st2.st_size, PROT_READ, MAP_PRIVATE, fd2, 0); MAP_PRIVATE 432 scripts/mod/modpost.c map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); MAP_PRIVATE 185 scripts/recordmcount.c file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_PRIVATE 495 security/apparmor/lsm.c if ((prot & PROT_WRITE) && !(flags & MAP_PRIVATE)) MAP_PRIVATE 513 security/apparmor/lsm.c !(vma->vm_flags & VM_SHARED) ? MAP_PRIVATE : 0); MAP_PRIVATE 143 tools/build/fixdep.c map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); MAP_PRIVATE 391 tools/perf/bench/numa.c if (map_flags == MAP_PRIVATE) { MAP_PRIVATE 467 tools/perf/bench/numa.c return alloc_data(bytes, MAP_PRIVATE, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); MAP_PRIVATE 216 tools/perf/jvmti/jvmti_agent.c marker_addr = mmap(NULL, pgsz, PROT_READ|PROT_EXEC, MAP_PRIVATE, fd, 0); MAP_PRIVATE 65 tools/perf/pmu-events/json.c PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); MAP_PRIVATE 53 tools/perf/util/copyfile.c ptr = mmap(NULL, off_in + size, PROT_READ, MAP_PRIVATE, ifd, pgoff); MAP_PRIVATE 174 tools/perf/util/mmap.c MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); MAP_PRIVATE 393 tools/perf/util/mmap.c MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); MAP_PRIVATE 55 tools/perf/util/session.c MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); MAP_PRIVATE 2090 tools/perf/util/session.c mmap_flags = MAP_PRIVATE; MAP_PRIVATE 370 tools/perf/util/synthetic-events.c event->mmap2.flags |= MAP_PRIVATE; MAP_PRIVATE 39 tools/perf/util/zlib.c ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); MAP_PRIVATE 26 tools/power/acpi/os_specific/service_layers/osunixmap.c #define MMAP_FLAGS MAP_PRIVATE MAP_PRIVATE 92 tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c MAP_PRIVATE|MAP_ANONYMOUS, 0, 0); MAP_PRIVATE 649 tools/testing/selftests/kvm/lib/kvm_util.c MAP_PRIVATE | MAP_ANONYMOUS MAP_PRIVATE 148 tools/testing/selftests/memfd/fuse_test.c MAP_PRIVATE, MAP_PRIVATE 196 tools/testing/selftests/memfd/memfd_test.c MAP_PRIVATE, MAP_PRIVATE 251 tools/testing/selftests/memfd/memfd_test.c MAP_PRIVATE, MAP_PRIVATE 264 tools/testing/selftests/memfd/memfd_test.c MAP_PRIVATE, MAP_PRIVATE 385 tools/testing/selftests/net/tcp_mmap.c MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 43 tools/testing/selftests/powerpc/benchmarks/mmap_bench.c MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 87 tools/testing/selftests/powerpc/copyloops/exc_validate.c MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 19 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c MAP_HUGETLB | MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 35 tools/testing/selftests/powerpc/mm/hugetlb_vs_thp_test.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 35 tools/testing/selftests/powerpc/mm/large_vm_fork_separation.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED_NOREPLACE, -1, 0); MAP_PRIVATE 30 tools/testing/selftests/powerpc/mm/prot_sao.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 43 tools/testing/selftests/powerpc/mm/segv_errors.c p = mmap(NULL, getpagesize(), 0, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 25 tools/testing/selftests/powerpc/pmu/ebb/trace.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 127 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 330 tools/testing/selftests/powerpc/ptrace/core-pkey.c core = mmap(NULL, core_size, PROT_READ, MAP_PRIVATE, fd, 0); MAP_PRIVATE 61 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); MAP_PRIVATE 131 tools/testing/selftests/powerpc/tm/tm-signal-context-force-tm.c MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); MAP_PRIVATE 60 tools/testing/selftests/powerpc/tm/tm-vmxcopy.c a = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); MAP_PRIVATE 58 tools/testing/selftests/proc/proc-self-map-files-001.c p = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE, fd, 0); MAP_PRIVATE 65 tools/testing/selftests/proc/proc-self-map-files-002.c p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); MAP_PRIVATE 56 tools/testing/selftests/proc/thread-self.c stack = mmap(NULL, 2 * PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 55 tools/testing/selftests/ptrace/peeksiginfo.c MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 62 tools/testing/selftests/ptrace/peeksiginfo.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); MAP_PRIVATE 658 tools/testing/selftests/seccomp/seccomp_bpf.c NULL, page_size, PROT_READ, MAP_PRIVATE, fd, page_size); MAP_PRIVATE 662 tools/testing/selftests/seccomp/seccomp_bpf.c NULL, page_size, PROT_READ, MAP_PRIVATE, fd, 0x0C0FFEE); MAP_PRIVATE 121 tools/testing/selftests/sigaltstack/sas.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); MAP_PRIVATE 165 tools/testing/selftests/sigaltstack/sas.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); MAP_PRIVATE 197 tools/testing/selftests/vm/compaction_test.c MAP_ANONYMOUS | MAP_PRIVATE | MAP_LOCKED, -1, 0); MAP_PRIVATE 36 tools/testing/selftests/vm/gup_benchmark.c int cmd = GUP_FAST_BENCHMARK, flags = MAP_PRIVATE; MAP_PRIVATE 70 tools/testing/selftests/vm/gup_benchmark.c flags &= ~MAP_PRIVATE; MAP_PRIVATE 38 tools/testing/selftests/vm/map_fixed_noreplace.c flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED_NOREPLACE; MAP_PRIVATE 37 tools/testing/selftests/vm/map_hugetlb.c #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_FIXED) MAP_PRIVATE 40 tools/testing/selftests/vm/map_hugetlb.c #define FLAGS (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB) MAP_PRIVATE 58 tools/testing/selftests/vm/map_populate.c MAP_PRIVATE | MAP_POPULATE, fd, 0); MAP_PRIVATE 198 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 261 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 303 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 339 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 365 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 420 tools/testing/selftests/vm/mlock2-tests.c MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); MAP_PRIVATE 30 tools/testing/selftests/vm/on-fault-limit.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_POPULATE, -1, 0); MAP_PRIVATE 150 tools/testing/selftests/vm/thuge-gen.c MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|flags, -1, 0); MAP_PRIVATE 37 tools/testing/selftests/vm/transhuge-stress.c MAP_NORESERVE | MAP_PRIVATE, -1, 0) != ptr) MAP_PRIVATE 90 tools/testing/selftests/vm/transhuge-stress.c MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0); MAP_PRIVATE 174 tools/testing/selftests/vm/userfaultfd.c (map_shared ? MAP_SHARED : MAP_PRIVATE) | MAP_PRIVATE 50 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 62 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 73 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 80 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, MAP_PRIVATE 86 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 93 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 100 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 107 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 114 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, MAP_PRIVATE 120 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 127 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 133 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 140 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 148 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 156 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 162 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, MAP_PRIVATE 171 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 178 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 185 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 192 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 199 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, MAP_PRIVATE 205 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 212 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 218 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS, MAP_PRIVATE 226 tools/testing/selftests/vm/va_128TBswitch.c .flags = MAP_HUGETLB | MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, MAP_PRIVATE 89 tools/testing/selftests/vm/virtual_address_range.c PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 106 tools/testing/selftests/vm/virtual_address_range.c MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 122 tools/testing/selftests/vm/virtual_address_range.c MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); MAP_PRIVATE 255 tools/testing/selftests/x86/entry_from_vm86.c MAP_ANONYMOUS | MAP_PRIVATE, -1,0); MAP_PRIVATE 280 tools/testing/selftests/x86/fsgsbase.c MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0); MAP_PRIVATE 677 tools/testing/selftests/x86/ldt_gdt.c MAP_ANONYMOUS | MAP_PRIVATE | MAP_32BIT, -1, 0); MAP_PRIVATE 700 tools/testing/selftests/x86/ldt_gdt.c MAP_ANONYMOUS | MAP_PRIVATE | MAP_32BIT, -1, 0); MAP_PRIVATE 759 tools/testing/selftests/x86/protection_keys.c ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); MAP_PRIVATE 782 tools/testing/selftests/x86/protection_keys.c ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); MAP_PRIVATE 845 tools/testing/selftests/x86/protection_keys.c int flags = MAP_ANONYMOUS|MAP_PRIVATE|MAP_HUGETLB; MAP_PRIVATE 1491 tools/testing/selftests/x86/protection_keys.c ptr = mmap(NULL, size, PROT_NONE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); MAP_PRIVATE 67 tools/testing/selftests/x86/sysret_ss_attrs.c MAP_32BIT | MAP_ANONYMOUS | MAP_PRIVATE, MAP_PRIVATE 30 tools/testing/selftests/x86/test_mremap_vdso.c dest_addr = mmap(0, size, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);