Home
last modified time | relevance | path

Searched refs:VM_PROT_WRITE (Results 1 – 25 of 89) sorted by relevance

1234

/xnu-12377.61.12/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_memory_entry_parent_test.c61 VM_PROT_READ | VM_PROT_WRITE,
76 VM_PROT_READ | VM_PROT_WRITE | MAP_MEM_USE_DATA_ADDR,
93 VM_PROT_READ | VM_PROT_WRITE,
94 VM_PROT_READ | VM_PROT_WRITE,
125 KB16, VM_PROT_READ | VM_PROT_WRITE, 0, &parent_handle);
197 VM_PROT_READ | VM_PROT_WRITE, &entry_handle, parent_handle);
207 VM_PROT_READ | VM_PROT_WRITE | VM_PROT_IS_MASK, &entry_handle, parent_handle);
213 parent_handle, 0, false, VM_PROT_READ | VM_PROT_WRITE,
214 VM_PROT_READ | VM_PROT_WRITE, VM_INHERIT_DEFAULT);
H A Dconfigurator_vm_protect.c168 results[2] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_WRITE); in vm_protect_max_000()
169 results[3] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_READ | VM_PROT_WRITE); in vm_protect_max_000()
188 results[2] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_WRITE); in vm_protect_max_r00()
189 results[3] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_READ | VM_PROT_WRITE); in vm_protect_max_r00()
208 results[2] = vm_protect_successfully(checker_list, start, size, VM_PROT_WRITE); in vm_protect_max_0w0()
209 results[3] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_READ | VM_PROT_WRITE); in vm_protect_max_0w0()
229 results[2] = vm_protect_successfully(checker_list, start, size, VM_PROT_WRITE); in vm_protect_max_rw0()
230 results[3] = vm_protect_successfully(checker_list, start, size, VM_PROT_READ | VM_PROT_WRITE); in vm_protect_max_rw0()
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()
120 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
145 VM_PROT_READ | VM_PROT_WRITE,
157 VM_PROT_READ | VM_PROT_WRITE,
158 VM_PROT_READ | VM_PROT_WRITE,
189 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
H A Dconfigurator_test.c1355 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_before_allocation()
1405 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_after_allocation()
1454 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_before_hole()
1503 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_after_hole()
1586 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_allocation_submap_one_entry()
1634 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_allocation_submap_two_entries()
1687 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_allocation_submap_three_entries()
1787 checker_list, start, VM_PROT_NONE, VM_PROT_WRITE); in test_protection_single_000_0w0()
1797 checker_list, start, VM_PROT_NONE, VM_PROT_READ | VM_PROT_WRITE); in test_protection_single_000_rw0()
1817 checker_list, start, VM_PROT_READ, VM_PROT_READ | VM_PROT_WRITE); in test_protection_single_r00_rw0()
[all …]
H A Dvm_test_shreg_ro.c230 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_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()
H A Dconfigurator_vm_behavior_set.c52 prot_contains_all(checker->protection, VM_PROT_READ | VM_PROT_WRITE)) { in write_one_memory()
53 checker_fault_for_prot_not_cow(checker_list, checker, VM_PROT_WRITE); in write_one_memory()
366 if (!prot_contains_all(checker->protection, VM_PROT_WRITE)) { in vm_behavior_zero_once()
416 if (prot_contains_all(checker->protection, VM_PROT_READ | VM_PROT_WRITE)) { in vm_behavior_zero()
/xnu-12377.61.12/tests/vm/configurator/
H A Dvm_configurator_tests.h887 vm_prot_t max_prot = VM_PROT_READ | VM_PROT_WRITE; in configure_protection_pairs_common()
939 return configure_protection_single_common(VM_PROT_NONE, VM_PROT_WRITE); in configure_protection_single_000_0w0()
948 return configure_protection_single_common(VM_PROT_WRITE, VM_PROT_WRITE); in configure_protection_single_0w0_0w0()
958 return configure_protection_single_common(VM_PROT_NONE, VM_PROT_READ | VM_PROT_WRITE); in configure_protection_single_000_rw0()
965 return configure_protection_single_common(VM_PROT_READ, VM_PROT_READ | VM_PROT_WRITE); in configure_protection_single_r00_rw0()
972 return configure_protection_single_common(VM_PROT_WRITE, VM_PROT_READ | VM_PROT_WRITE); in configure_protection_single_0w0_rw0()
979 …turn configure_protection_single_common(VM_PROT_READ | VM_PROT_WRITE, VM_PROT_READ | VM_PROT_WRITE in configure_protection_single_rw0_rw0()
1000 return configure_protection_pairs_common(VM_PROT_NONE, VM_PROT_WRITE); in configure_protection_pairs_000_0w0()
1006 return configure_protection_pairs_common(VM_PROT_NONE, VM_PROT_READ | VM_PROT_WRITE); in configure_protection_pairs_000_rw0()
1025 return configure_protection_pairs_common(VM_PROT_READ, VM_PROT_WRITE); in configure_protection_pairs_r00_0w0()
[all …]
/xnu-12377.61.12/osfmk/mach/
H A Dvm_prot.h88 #define VM_PROT_WRITE ((vm_prot_t) 0x02) /* write permission */ macro
95 #define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE)
101 #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
/xnu-12377.61.12/bsd/tests/
H A Dcopyio_tests.c160 copyio_test_protect(data, VM_PROT_WRITE); in copyin_test()
163 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_test()
211 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyout_test()
272 copyio_test_protect(data, VM_PROT_WRITE); in copyinstr_test()
275 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyinstr_test()
345 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyoutstr_test()
408 …copyio_test_protect(data, VM_PROT_WRITE); …
411 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); …
447 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); …
489 copyio_test_protect(data, VM_PROT_WRITE); in copyin_atomic32_wait_if_equals_test()
[all …]
/xnu-12377.61.12/tests/
H A Dvm_test_mach_map.c143 VM_PROT_READ | VM_PROT_WRITE), in test_memory_entry_tagging()
179 VM_PROT_READ | VM_PROT_WRITE, in test_memory_entry_tagging()
180 VM_PROT_READ | VM_PROT_WRITE, in test_memory_entry_tagging()
326 VM_PROT_READ | VM_PROT_WRITE), in test_map_memory_entry()
355 VM_PROT_READ | VM_PROT_WRITE, in test_map_memory_entry()
356 VM_PROT_READ | VM_PROT_WRITE, in test_map_memory_entry()
1378 cur_prot = VM_PROT_READ | VM_PROT_WRITE;
1379 max_prot = VM_PROT_READ | VM_PROT_WRITE;
1445 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE,
1463 VM_PROT_READ | VM_PROT_WRITE,
[all …]
H A Dtry_read_write_test.c196 addr = allocate_page_with_prot(VM_PROT_WRITE);
202 addr = allocate_page_with_prot(VM_PROT_READ | VM_PROT_WRITE);
244 result.prot = VM_PROT_WRITE; in allocate_page_with_random_prot()
249 result.prot = VM_PROT_READ | VM_PROT_WRITE; in allocate_page_with_random_prot()
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 Darm_mte_alias_restriction.c66 vm_prot_t curprot = VM_PROT_WRITE | VM_PROT_READ;
67 vm_prot_t maxprot = VM_PROT_WRITE | VM_PROT_READ;
81 kr = mach_vm_wire(host_priv, target_task_port, remap_addr, size, VM_PROT_READ | VM_PROT_WRITE);
H A Dos_thread_self_restrict_pagers.c435 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),
1313 VM_PROT_READ | VM_PROT_WRITE,
[all …]
/xnu-12377.61.12/tests/ipc/
H A Dipc_read_inspect.c292 vm_prot_t cur_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
293 vm_prot_t max_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
310 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
311 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
371 cur_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
372 max_protection = VM_PROT_WRITE | VM_PROT_READ; in test_task_port_mig_intrans()
389 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
390 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
/xnu-12377.61.12/osfmk/vm/
H A Dvm_fault.c1511 && (fault_type & VM_PROT_WRITE)) { in vm_fault_page()
1831 if ((fault_type & VM_PROT_WRITE) == 0) { in vm_fault_page()
1837 *protection &= ~VM_PROT_WRITE; in vm_fault_page()
2227 if (fault_type & VM_PROT_WRITE) { in vm_fault_page()
2343 *protection &= (~VM_PROT_WRITE); in vm_fault_page()
2366 if ((fault_type & VM_PROT_WRITE) == 0) { in vm_fault_page()
2367 *protection &= ~VM_PROT_WRITE; in vm_fault_page()
2826 (prot & VM_PROT_WRITE)) { in vm_fault_cs_check_violation()
2861 ((prot & VM_PROT_WRITE) || in vm_fault_cs_check_violation()
2932 assert(!(prot & VM_PROT_WRITE) || (map_is_switch_protected == FALSE)); in vm_fault_cs_handle_violation()
[all …]
H A Dmemory_object.c811 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
814 VM_PROT_WRITE | VM_PROT_READ, in vm_object_update()
844 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
849 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
855 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update()
1274 (VM_PROT_READ | VM_PROT_WRITE)) in memory_object_iopl_request()
1275 != (VM_PROT_READ | VM_PROT_WRITE)) { in memory_object_iopl_request()
/xnu-12377.61.12/bsd/dev/dtrace/
H A Ddtrace_ptss.c202 VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY); in dtrace_ptss_allocate_page()
220 if (kr != KERN_SUCCESS || !(max_protection & VM_PROT_WRITE)) { in dtrace_ptss_allocate_page()
224 …_protect(map, (mach_vm_offset_t)write_addr, (mach_vm_size_t)size, 0, VM_PROT_READ | VM_PROT_WRITE); in dtrace_ptss_allocate_page()
/xnu-12377.61.12/bsd/kern/
H A Dkern_mman.c349 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap()
419 int reject_prot = ((flags & MAP_PRIVATE) ? VM_PROT_EXECUTE : (VM_PROT_WRITE | VM_PROT_EXECUTE)); in mmap()
457 !(prot & VM_PROT_WRITE)) { in mmap()
643 maxprot |= VM_PROT_WRITE; in mmap()
651 maxprot |= VM_PROT_WRITE; in mmap()
778 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap()
781 if (maxprot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap()
898 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap()
901 if (maxprot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap()
908 int reject_prot = ((flags & MAP_PRIVATE) ? VM_PROT_EXECUTE : (VM_PROT_WRITE | VM_PROT_EXECUTE)); in mmap()
[all …]
/xnu-12377.61.12/osfmk/arm/
H A Dtrap_internal.h227 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
239 (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()

1234