Home
last modified time | relevance | path

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

1234

/xnu-10002.41.9/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.c47 VM_PROT_READ | VM_PROT_WRITE, in switcheroo_thread()
48 VM_PROT_READ | VM_PROT_WRITE, in switcheroo_thread()
62 VM_PROT_READ, in switcheroo_thread()
63 VM_PROT_READ, in switcheroo_thread()
113 VM_PROT_READ);
120 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
129 MAP_MEM_VM_SHARE | VM_PROT_READ,
144 VM_PROT_READ,
145 VM_PROT_READ | VM_PROT_WRITE,
157 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);
443 …kr = mach_vm_protect(mach_task_self(), vmaddr_sub, vmsize_sub, FALSE, VM_PROT_READ | VM_PROT_WRITE…
H A Dvm_unaligned_copy_protection_race.c40 VM_PROT_READ); in protect_thread()
49 VM_PROT_READ | VM_PROT_WRITE); in protect_thread()
H A Dvm_test_102067976.c32 VM_PROT_READ | VM_PROT_WRITE,
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-10002.41.9/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()
955 MAP_MEM_VM_SHARE | VM_PROT_READ,
969 VM_PROT_READ,
970 VM_PROT_READ,
1040 (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 Dos_thread_self_restrict_pagers.c393 T_EXPECT_EQ(curprot, VM_PROT_READ, "TPRO region should be VM_PROT_READ"); in pager_test()
435 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE, in pager_test()
453 VM_PROT_READ | VM_PROT_WRITE, in pager_test()
454 VM_PROT_READ | VM_PROT_WRITE, in pager_test()
H A Dvm_phys_footprint.c642 VM_PROT_READ | VM_PROT_WRITE,
844 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
949 VM_PROT_READ | VM_PROT_WRITE),
977 VM_PROT_READ | VM_PROT_WRITE,
978 VM_PROT_READ | VM_PROT_WRITE,
1119 VM_PROT_READ | VM_PROT_WRITE),
1147 VM_PROT_READ | VM_PROT_WRITE,
1148 VM_PROT_READ | VM_PROT_WRITE,
1242 VM_PROT_READ | VM_PROT_WRITE),
1304 VM_PROT_READ | VM_PROT_WRITE,
[all …]
/xnu-10002.41.9/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-10002.41.9/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; in dtrace_ptss_allocate_page()
201 VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY); in dtrace_ptss_allocate_page()
207 VM_PROT_READ | VM_PROT_EXECUTE); in dtrace_ptss_allocate_page()
221 …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-10002.41.9/osfmk/arm/
H A Dtrap.h313 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
325 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
/xnu-10002.41.9/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-10002.41.9/bsd/kern/
H A Dkern_mman.c234 prot |= VM_PROT_READ; in mmap()
570 maxprot |= VM_PROT_READ; in mmap()
751 if (prot & VM_PROT_READ) { in mmap()
754 if (maxprot & VM_PROT_READ) { in mmap()
762 prot |= VM_PROT_READ; in mmap()
765 maxprot |= VM_PROT_READ; in mmap()
871 if (prot & VM_PROT_READ) { in mmap()
874 if (maxprot & VM_PROT_READ) { in mmap()
882 prot |= VM_PROT_READ; in mmap()
885 maxprot |= VM_PROT_READ; in mmap()
[all …]
H A Dkern_core.c627 if ((prot & VM_PROT_READ) == 0) { in coredump()
629 prot | VM_PROT_READ); in coredump()
635 int64_t fsize = ((maxprot & VM_PROT_READ) == VM_PROT_READ in coredump()
/xnu-10002.41.9/osfmk/i386/commpage/
H A Dcommpage.c181 if (uperm == (VM_PROT_READ | VM_PROT_EXECUTE)) { in commpage_allocate()
211 kr = vm_protect(kernel_map, kernel_addr, area_used, FALSE, VM_PROT_READ | VM_PROT_WRITE); in commpage_allocate()
585 VM_PROT_READ); in commpage_populate()
601 VM_PROT_READ); in commpage_populate()
630 …_allocate(commpage_text32_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
651 …_allocate(commpage_text64_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
/xnu-10002.41.9/osfmk/tests/
H A Dpmap_tests.c118 VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE); in test_pmap_enter_disconnect()
140 VM_PROT_READ, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_OPTIONS_INTERNAL, NULL); in pmap_remove_thread()
299 kr = pmap_enter(nested_pmap, va, (rand_mod == 1) ? pp1 : pp2, VM_PROT_READ, in test_pmap_nesting()
491 VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE); in test_pmap_page_protect_overhead()
497 pmap_page_protect_options(phys_page, VM_PROT_READ, 0, NULL); in test_pmap_page_protect_overhead()
/xnu-10002.41.9/osfmk/device/
H A Diokit_rpc.c475 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOMapPages()
545 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOProtectCacheMode()
/xnu-10002.41.9/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()
1265 if ((named_entry->protection & VM_PROT_READ) in memory_object_iopl_request()
1266 != VM_PROT_READ) { in memory_object_iopl_request()
1271 (VM_PROT_READ | VM_PROT_WRITE)) in memory_object_iopl_request()
1272 != (VM_PROT_READ | VM_PROT_WRITE)) { in memory_object_iopl_request()
/xnu-10002.41.9/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()
335 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ, wimg_bits); in ml_phys_read_data()
562 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-10002.41.9/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-10002.41.9/osfmk/arm/pmap/
H A Dpmap.c2521 false, VM_PROT_READ | VM_PROT_EXECUTE); in pmap_lockdown_ppl()
4704 case VM_PROT_READ:
4705 case VM_PROT_READ | VM_PROT_EXECUTE:
5328 case VM_PROT_READ:
5329 case VM_PROT_READ | VM_PROT_EXECUTE:
5331 case VM_PROT_READ | VM_PROT_WRITE:
5577 case VM_PROT_READ:
5578 case VM_PROT_READ | VM_PROT_EXECUTE:
5580 case VM_PROT_READ | VM_PROT_WRITE:
6045 if (__improbable(prot != VM_PROT_READ)) {
[all …]

1234