Home
last modified time | relevance | path

Searched refs:VM_PROT_READ (Results 1 – 25 of 73) sorted by relevance

123

/xnu-8792.81.2/tests/vm/
H A Dvm_test_90774260.c27 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
45 VM_PROT_READ | VM_PROT_WRITE | MAP_MEM_NAMED_CREATE, in test_90774260()
64 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
65 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
78 (VM_PROT_READ | VM_PROT_WRITE | MAP_MEM_VM_COPY), in test_90774260()
94 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
95 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
109 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
110 VM_PROT_READ | VM_PROT_WRITE, in test_90774260()
H A Dvm_unaligned_copy_switch_race.c44 VM_PROT_READ | VM_PROT_WRITE, in switcheroo_thread()
45 VM_PROT_READ | VM_PROT_WRITE, in switcheroo_thread()
59 VM_PROT_READ, in switcheroo_thread()
60 VM_PROT_READ, in switcheroo_thread()
110 VM_PROT_READ);
117 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
126 MAP_MEM_VM_SHARE | VM_PROT_READ,
141 VM_PROT_READ,
142 VM_PROT_READ | VM_PROT_WRITE,
154 VM_PROT_READ | VM_PROT_WRITE,
[all …]
H A Dvm_test_shreg_ro.c88 if (ri->max_protection != VM_PROT_READ) { in find_nested_read_only_mapping()
132 T_EXPECT_LE(ri2.protection, VM_PROT_READ, \
134 T_EXPECT_LE(ri2.max_protection, VM_PROT_READ, \
230 VM_PROT_COPY | VM_PROT_READ | VM_PROT_WRITE);
260 VM_PROT_COPY | VM_PROT_READ | VM_PROT_WRITE);
379 VM_PROT_COPY | VM_PROT_READ | VM_PROT_WRITE);
H A Dvm_unaligned_copy_protection_race.c37 VM_PROT_READ); in protect_thread()
46 VM_PROT_READ | VM_PROT_WRITE); in protect_thread()
H A Dvm_test_cow_before_zf_read.c38 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE, in test_cow_before_zf_read()
/xnu-8792.81.2/tests/
H A Dvm_test_mach_map.c126 VM_PROT_READ | VM_PROT_WRITE), in test_memory_entry_tagging()
162 VM_PROT_READ | VM_PROT_WRITE, in test_memory_entry_tagging()
163 VM_PROT_READ | VM_PROT_WRITE, in test_memory_entry_tagging()
309 VM_PROT_READ | VM_PROT_WRITE), in test_map_memory_entry()
338 VM_PROT_READ | VM_PROT_WRITE, in test_map_memory_entry()
339 VM_PROT_READ | VM_PROT_WRITE, in test_map_memory_entry()
939 MAP_MEM_VM_SHARE | VM_PROT_READ,
953 VM_PROT_READ,
954 VM_PROT_READ,
1024 (info.protection == VM_PROT_READ) &&
[all …]
H A Dipc_read_inspect.c301 vm_prot_t cur_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
302 vm_prot_t max_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
319 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
320 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
353 vm_prot_t cur_protection = VM_PROT_READ; in test_task_port_mig_intrans()
354 vm_prot_t max_protection = VM_PROT_READ; in test_task_port_mig_intrans()
371 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ, NULL); in test_task_port_mig_intrans()
372 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ, NULL); in test_task_port_mig_intrans()
380 cur_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
381 max_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
[all …]
H A Dperf_exit_proc.c49 err = mach_vm_protect(task, addr, size, 0, VM_PROT_READ | VM_PROT_WRITE); in allocate_and_wire_memory()
60 err = mach_vm_wire(host_priv_port, task, addr, size, VM_PROT_READ | VM_PROT_WRITE); in allocate_and_wire_memory()
H A Dvm_phys_footprint.c638 VM_PROT_READ | VM_PROT_WRITE,
840 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
945 VM_PROT_READ | VM_PROT_WRITE),
973 VM_PROT_READ | VM_PROT_WRITE,
974 VM_PROT_READ | VM_PROT_WRITE,
1115 VM_PROT_READ | VM_PROT_WRITE),
1143 VM_PROT_READ | VM_PROT_WRITE,
1144 VM_PROT_READ | VM_PROT_WRITE,
1238 VM_PROT_READ | VM_PROT_WRITE),
1300 VM_PROT_READ | VM_PROT_WRITE,
[all …]
/xnu-8792.81.2/osfmk/mach/
H A Dvm_prot.h83 #define VM_PROT_READ ((vm_prot_t) 0x01) /* read permission */ macro
91 #define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE)
97 #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
/xnu-8792.81.2/osfmk/arm/
H A Dtrap.h255 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
267 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
H A Dcaches.c177 …index = pmap_map_cpu_windows_copy((ppnum_t) (paddr >> PAGE_SHIFT), VM_PROT_READ | VM_PROT_WRITE, w… in dcache_incoherent_io_flush64()
236 …index = pmap_map_cpu_windows_copy((ppnum_t) (paddr >> PAGE_SHIFT), VM_PROT_READ | VM_PROT_WRITE, w… in dcache_incoherent_io_store64()
/xnu-8792.81.2/bsd/tests/
H A Dcopyio_tests.c159 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_test()
204 copyio_test_protect(data, VM_PROT_READ); in copyout_test()
207 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyout_test()
271 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyinstr_test()
338 copyio_test_protect(data, VM_PROT_READ); in copyoutstr_test()
341 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyoutstr_test()
407 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); …
440 …copyio_test_protect(data, VM_PROT_READ); …
443 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); …
488 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_atomic32_wait_if_equals_test()
[all …]
/xnu-8792.81.2/osfmk/tests/
H A Dpmap_tests.c109 VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE); in test_pmap_enter_disconnect()
173 VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE); in test_pmap_page_protect_overhead()
179 pmap_page_protect_options(phys_page, VM_PROT_READ, 0, NULL); in test_pmap_page_protect_overhead()
/xnu-8792.81.2/bsd/kern/
H A Dkern_mman.c240 prot |= VM_PROT_READ; in mmap()
534 maxprot |= VM_PROT_READ; in mmap()
707 if (prot & VM_PROT_READ) { in mmap()
710 if (maxprot & VM_PROT_READ) { in mmap()
718 prot |= VM_PROT_READ; in mmap()
721 maxprot |= VM_PROT_READ; in mmap()
801 if (prot & VM_PROT_READ) { in mmap()
804 if (maxprot & VM_PROT_READ) { in mmap()
812 prot |= VM_PROT_READ; in mmap()
815 maxprot |= VM_PROT_READ; in mmap()
[all …]
H A Dkern_core.c532 if ((prot & VM_PROT_READ) == 0) { in coredump()
534 prot | VM_PROT_READ); in coredump()
540 int64_t fsize = ((maxprot & VM_PROT_READ) == VM_PROT_READ in coredump()
H A Dsubr_log.c481 (MAP_MEM_VM_SHARE | VM_PROT_READ), in oslogioctl()
495 VM_PROT_READ, in oslogioctl()
496 VM_PROT_READ, in oslogioctl()
/xnu-8792.81.2/bsd/dev/dtrace/
H A Ddtrace_ptss.c183 vm_prot_t cur_protection = VM_PROT_READ | VM_PROT_EXECUTE; in dtrace_ptss_allocate_page()
184 vm_prot_t max_protection = VM_PROT_READ | VM_PROT_EXECUTE | VM_PROT_WRITE; in dtrace_ptss_allocate_page()
199 …kr = mach_vm_protect(map, (mach_vm_offset_t)write_addr, (mach_vm_size_t)size, 0, VM_PROT_READ | VM… in dtrace_ptss_allocate_page()
/xnu-8792.81.2/osfmk/i386/commpage/
H A Dcommpage.c183 if (uperm == (VM_PROT_READ | VM_PROT_EXECUTE)) { in commpage_allocate()
215 kr = vm_protect(kernel_map, kernel_addr, area_used, FALSE, VM_PROT_READ | VM_PROT_WRITE); in commpage_allocate()
583 VM_PROT_READ); in commpage_populate()
599 VM_PROT_READ); in commpage_populate()
628 …_allocate(commpage_text32_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
649 …_allocate(commpage_text64_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
/xnu-8792.81.2/osfmk/device/
H A Diokit_rpc.c496 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOMapPages()
566 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOProtectCacheMode()
/xnu-8792.81.2/osfmk/vm/
H A Dmemory_object.c808 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
811 VM_PROT_WRITE | VM_PROT_READ, in vm_object_update()
841 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
846 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
852 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
1264 if ((named_entry->protection & VM_PROT_READ) in memory_object_iopl_request()
1265 != VM_PROT_READ) { in memory_object_iopl_request()
1270 (VM_PROT_READ | VM_PROT_WRITE)) in memory_object_iopl_request()
1271 != (VM_PROT_READ | VM_PROT_WRITE)) { in memory_object_iopl_request()
/xnu-8792.81.2/osfmk/arm64/
H A Dloose_ends.c136 src_index = pmap_map_cpu_windows_copy(pn_src, VM_PROT_READ, wimg_bits_src); in bcopy_phys_internal()
144 dst_index = pmap_map_cpu_windows_copy(pn_dst, VM_PROT_READ | VM_PROT_WRITE, wimg_bits_dst); in bcopy_phys_internal()
231 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in bzero_phys()
318 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ, wimg_bits); in ml_phys_read_data()
494 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in ml_phys_write_data()
H A Dalternate_debugger.c99 pmap_protect(kernel_map->pmap, alt_code, alt_code + alt_size, VM_PROT_READ | VM_PROT_EXECUTE); in alternate_debugger_enter()
/xnu-8792.81.2/tests/vm_memory_tests_src/
H A Dvm_tests.c160 cur_prot = max_prot = VM_PROT_READ; in mach_vm_client()
281 flags = VM_PROT_READ | MAP_MEM_VM_SHARE; in mach_server_make_memory_entry()
284 …ct(mach_task_self(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FALSE, VM_PROT_READ); in mach_server_make_memory_entry()
354 …lf(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FALSE, VM_PROT_READ | VM_PROT_WRITE… in mach_server_make_memory_entry()
361 …ct(mach_task_self(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FALSE, VM_PROT_READ); in mach_server_make_memory_entry()
/xnu-8792.81.2/osfmk/arm/pmap/
H A Dpmap.c2422 false, VM_PROT_READ | VM_PROT_EXECUTE); in pmap_lockdown_ppl()
4565 case VM_PROT_READ:
4566 case VM_PROT_READ | VM_PROT_EXECUTE:
5172 case VM_PROT_READ:
5173 case VM_PROT_READ | VM_PROT_EXECUTE:
5175 case VM_PROT_READ | VM_PROT_WRITE:
5416 case VM_PROT_READ:
5417 case VM_PROT_READ | VM_PROT_EXECUTE:
5419 case VM_PROT_READ | VM_PROT_WRITE:
5871 if (__improbable(prot != VM_PROT_READ)) {
[all …]

123