| /xnu-12377.1.9/tests/vm/ |
| H A D | vm_test_90774260.c | 27 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 D | vm_memory_entry_parent_test.c | 61 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 D | configurator_vm_protect.c | 168 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 D | vm_unaligned_copy_switch_race.c | 47 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 D | configurator_test.c | 1355 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 D | vm_test_shreg_ro.c | 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 D | vm_test_102067976.c | 32 VM_PROT_READ | VM_PROT_WRITE,
|
| H A D | vm_test_cow_before_zf_read.c | 38 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE, in test_cow_before_zf_read()
|
| H A D | configurator_vm_behavior_set.c | 52 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.1.9/tests/vm/configurator/ |
| H A D | vm_configurator_tests.h | 887 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.1.9/osfmk/mach/ |
| H A D | vm_prot.h | 88 #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.1.9/bsd/tests/ |
| H A D | copyio_tests.c | 157 copyio_test_protect(data, VM_PROT_WRITE); in copyin_test() 160 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_test() 208 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyout_test() 269 copyio_test_protect(data, VM_PROT_WRITE); in copyinstr_test() 272 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyinstr_test() 342 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyoutstr_test() 405 …copyio_test_protect(data, VM_PROT_WRITE); … 408 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 444 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 486 copyio_test_protect(data, VM_PROT_WRITE); in copyin_atomic32_wait_if_equals_test() [all …]
|
| /xnu-12377.1.9/tests/ |
| H A D | vm_test_mach_map.c | 143 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 D | try_read_write_test.c | 196 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 D | perf_exit_proc.c | 49 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 D | os_thread_self_restrict_pagers.c | 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 D | vm_phys_footprint.c | 642 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.1.9/tests/ipc/ |
| H A D | ipc_read_inspect.c | 292 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.1.9/osfmk/vm/ |
| H A D | vm_fault.c | 1496 && (fault_type & VM_PROT_WRITE)) { in vm_fault_page() 1811 if ((fault_type & VM_PROT_WRITE) == 0) { in vm_fault_page() 1817 *protection &= ~VM_PROT_WRITE; in vm_fault_page() 2207 if (fault_type & VM_PROT_WRITE) { in vm_fault_page() 2323 *protection &= (~VM_PROT_WRITE); in vm_fault_page() 2346 if ((fault_type & VM_PROT_WRITE) == 0) { in vm_fault_page() 2347 *protection &= ~VM_PROT_WRITE; in vm_fault_page() 2806 (prot & VM_PROT_WRITE)) { in vm_fault_cs_check_violation() 2841 ((prot & VM_PROT_WRITE) || in vm_fault_cs_check_violation() 2912 assert(!(prot & VM_PROT_WRITE) || (map_is_switch_protected == FALSE)); in vm_fault_cs_handle_violation() [all …]
|
| H A D | memory_object.c | 811 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.1.9/bsd/dev/dtrace/ |
| H A D | dtrace_ptss.c | 202 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.1.9/bsd/kern/ |
| H A D | kern_mman.c | 349 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.1.9/osfmk/arm/ |
| H A D | trap_internal.h | 227 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ)) 239 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
|
| H A D | caches.c | 177 …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-12377.1.9/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.c | 1517 tmplate = ARM_PTE_AP((prot & VM_PROT_WRITE) ? AP_RWNA : AP_RONA) | in pmap_map_bd_with_options() 1613 | ARM_PTE_AP((prot & VM_PROT_WRITE) ? AP_RWNA : AP_RONA) in pmap_map_high_window_bd() 5002 case VM_PROT_READ | VM_PROT_WRITE: 5019 if ((options & PMAP_OPTIONS_PROTECT_IMMEDIATE) && (prot & VM_PROT_WRITE)) { 5265 case VM_PROT_READ | VM_PROT_WRITE: 5584 if (prot & VM_PROT_WRITE) { 5595 if (prot & VM_PROT_WRITE) { 5598 if (fault_type & VM_PROT_WRITE) { 6941 …pmap_page_protect_options_with_flush_range(pn, (VM_PROT_ALL & ~VM_PROT_WRITE), options, NULL, flus… 6956 allow_mode &= ~VM_PROT_WRITE; [all …]
|