| /xnu-12377.81.4/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); 186 KB16, VM_PROT_READ, 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); [all …]
|
| 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() 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 D | configurator_vm_protect.c | 113 kr = mach_vm_protect(mach_task_self(), start, size, false, VM_PROT_READ); in vm_protect_with_holes() 167 results[1] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_READ); 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() 187 results[1] = vm_protect_successfully(checker_list, start, size, VM_PROT_READ); 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() 207 results[1] = vm_protect_beyond_max_prot(checker_list, start, size, VM_PROT_READ); 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() 228 results[1] = vm_protect_successfully(checker_list, start, size, VM_PROT_READ); 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 | configurator_test.c | 1043 assert(info.protection == VM_PROT_READ); in test_cow_unwriteable() 1047 assert(checker->protection == VM_PROT_READ); in test_cow_unwriteable() 1355 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_before_allocation() 1365 start, size, VM_PROT_READ); in test_submap_before_allocation_ro() 1405 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_after_allocation() 1415 start, size, VM_PROT_READ); in test_submap_after_allocation_ro() 1454 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_before_hole() 1464 start, size, VM_PROT_READ); in test_submap_before_hole_ro() 1503 start, size, VM_PROT_READ | VM_PROT_WRITE); in test_submap_after_hole() 1513 start, size, VM_PROT_READ); in test_submap_after_hole_ro() [all …]
|
| H A D | configurator_vm_wire.c | 210 checker_perform_vm_wire(checker_list, start, size, VM_PROT_READ); in successful_vm_wire_read_not_cow() 211 kr = mach_vm_wire(host_priv(), mach_task_self(), start, size, VM_PROT_READ); in successful_vm_wire_read_not_cow() 243 checker_perform_failed_vm_wire(checker_list, start, size, VM_PROT_READ); in failed_vm_wire_read_not_cow() 244 kr = mach_vm_wire(host_priv(), mach_task_self(), start, size, VM_PROT_READ); in failed_vm_wire_read_not_cow() 268 checker_perform_vm_wire(checker_list, start, size, VM_PROT_READ); in wire_shared_entry() 269 checker_fault_for_prot_not_cow(checker_list, right_checker, VM_PROT_READ); in wire_shared_entry() 270 kr = mach_vm_wire(host_priv(), mach_task_self(), start, size, VM_PROT_READ); in wire_shared_entry() 310 checker_perform_vm_wire(checker_list, start, size, VM_PROT_READ); in wire_shared_entry_partial() 312 kr = mach_vm_wire(host_priv(), mach_task_self(), start, size, VM_PROT_READ); in wire_shared_entry_partial() 442 clipped_address, clipped_size, VM_PROT_READ); in vm_unwire_holes() [all …]
|
| H A D | vm_test_shreg_ro.c | 88 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 D | vm_test_linkedit_permanent.c | 88 if (ri->max_protection != VM_PROT_READ) { in find_first_read_only_mapping() 132 T_EXPECT_LE(ri2.protection, VM_PROT_READ, \ 134 T_EXPECT_LE(ri2.max_protection, VM_PROT_READ, \ 270 VM_PROT_COPY | VM_PROT_READ | VM_PROT_WRITE);
|
| /xnu-12377.81.4/tests/vm/configurator/ |
| H A D | vm_configurator_tests.h | 730 .protection = VM_PROT_READ), in configure_cow_unwriteable() 887 vm_prot_t max_prot = VM_PROT_READ | VM_PROT_WRITE; in configure_protection_pairs_common() 920 return configure_protection_single_common(VM_PROT_NONE, VM_PROT_READ); in configure_protection_single_000_r00() 927 return configure_protection_single_common(VM_PROT_READ, VM_PROT_READ); in configure_protection_single_r00_r00() 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 …return configure_protection_single_common(VM_PROT_READ | VM_PROT_WRITE, VM_PROT_READ | VM_PROT_WRI… in configure_protection_single_rw0_rw0() 994 return configure_protection_pairs_common(VM_PROT_NONE, VM_PROT_READ); in configure_protection_pairs_000_r00() 1006 return configure_protection_pairs_common(VM_PROT_NONE, VM_PROT_READ | VM_PROT_WRITE); in configure_protection_pairs_000_rw0() [all …]
|
| /xnu-12377.81.4/osfmk/mach/ |
| H A D | vm_prot.h | 87 #define VM_PROT_READ ((vm_prot_t) 0x01) /* read 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.81.4/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() 1193 MAP_MEM_VM_SHARE | VM_PROT_READ, 1207 VM_PROT_READ, 1208 VM_PROT_READ, 1278 (info.protection == VM_PROT_READ) && [all …]
|
| H A D | try_read_write_test.c | 190 addr = allocate_page_with_prot(VM_PROT_READ); 202 addr = allocate_page_with_prot(VM_PROT_READ | VM_PROT_WRITE); 239 result.prot = VM_PROT_READ; 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 | 393 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 D | arm_mte_alias_restriction.c | 66 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);
|
| /xnu-12377.81.4/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() 344 vm_prot_t cur_protection = VM_PROT_READ; in test_task_port_mig_intrans() 345 vm_prot_t max_protection = VM_PROT_READ; in test_task_port_mig_intrans() 362 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ, NULL); in test_task_port_mig_intrans() 363 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ, 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() [all …]
|
| /xnu-12377.81.4/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))
|
| /xnu-12377.81.4/bsd/dev/dtrace/ |
| H A D | dtrace_ptss.c | 184 vm_prot_t cur_protection = VM_PROT_READ | VM_PROT_EXECUTE; in dtrace_ptss_allocate_page() 185 vm_prot_t max_protection = VM_PROT_READ | VM_PROT_EXECUTE; in dtrace_ptss_allocate_page() 202 VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY); in dtrace_ptss_allocate_page() 208 VM_PROT_READ | VM_PROT_EXECUTE); in dtrace_ptss_allocate_page() 224 …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-12377.81.4/bsd/tests/ |
| H A D | copyio_tests.c | 163 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_test() 208 copyio_test_protect(data, VM_PROT_READ); in copyout_test() 211 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyout_test() 275 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyinstr_test() 342 copyio_test_protect(data, VM_PROT_READ); in copyoutstr_test() 345 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyoutstr_test() 411 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 444 …copyio_test_protect(data, VM_PROT_READ); … 447 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 492 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_atomic32_wait_if_equals_test() [all …]
|
| /xnu-12377.81.4/osfmk/tests/ |
| H A D | pmap_tests.c | 171 … VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_MAPPING_TYPE_INFER); in test_pmap_enter_disconnect() 191 …VM_PROT_READ, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_OPTIONS_INTERNAL, NULL, PMAP_MAPPING_… in pmap_remove_thread() 354 kr = pmap_enter(nested_pmap, va, (rand_mod == 1) ? pp1 : pp2, VM_PROT_READ, in test_pmap_nesting() 439 kr = pmap_enter(nested_pmap, trimmed_start, pp1, VM_PROT_READ, in test_pmap_nesting() 567 … VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_MAPPING_TYPE_INFER); in test_pmap_page_protect_overhead() 573 pmap_page_protect_options(phys_page, VM_PROT_READ, 0, NULL); in test_pmap_page_protect_overhead() 618 VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_OPTIONS_INTERNAL, in hugepv_remove_enter_thread() 652 …args->args.pmap, args->args.va + ((vm_offset_t)mapping << PAGE_SHIFT), VM_PROT_READ, false, FALSE); in hugepv_fast_fault_thread() 775 … VM_PROT_READ | VM_PROT_WRITE, VM_PROT_NONE, VM_WIMG_USE_DEFAULT, FALSE, PMAP_MAPPING_TYPE_INFER); in test_pmap_huge_pv_list() 825 pmap_page_protect_options(phys_page, VM_PROT_READ, 0, NULL); in test_pmap_huge_pv_list()
|
| H A D | vm_parameter_validation.h | 1656 VM_PROT_TRIAL(VM_PROT_READ), 1657 VM_PROT_TRIAL(VM_PROT_READ | VM_PROT_WRITE), 1658 VM_PROT_TRIAL(VM_PROT_READ | VM_PROT_EXECUTE), 1660 VM_PROT_TRIAL(VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE), 1663 VM_PROT_TRIAL(VM_PROT_READ | 1u << 3), 1664 VM_PROT_TRIAL(VM_PROT_READ | 1u << 4), 1665 VM_PROT_TRIAL(VM_PROT_READ | 1u << 5), 1666 VM_PROT_TRIAL(VM_PROT_READ | 1u << 6), 1667 VM_PROT_TRIAL(VM_PROT_READ | 1u << 7), 1668 VM_PROT_TRIAL(VM_PROT_READ | VM_PROT_WRITE | 1u << 7), [all …]
|
| /xnu-12377.81.4/bsd/kern/ |
| H A D | kern_mman.c | 350 prot |= VM_PROT_READ; in mmap() 606 maxprot |= VM_PROT_READ; in mmap() 768 if (prot & VM_PROT_READ) { in mmap() 771 if (maxprot & VM_PROT_READ) { in mmap() 779 prot |= VM_PROT_READ; in mmap() 782 maxprot |= VM_PROT_READ; in mmap() 888 if (prot & VM_PROT_READ) { in mmap() 891 if (maxprot & VM_PROT_READ) { in mmap() 899 prot |= VM_PROT_READ; in mmap() 902 maxprot |= VM_PROT_READ; in mmap() [all …]
|
| /xnu-12377.81.4/osfmk/device/ |
| H A D | iokit_rpc.c | 403 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOMapPages() 478 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOProtectCacheMode()
|
| /xnu-12377.81.4/osfmk/i386/commpage/ |
| H A D | commpage.c | 183 if (uperm == (VM_PROT_READ | VM_PROT_EXECUTE)) { in commpage_allocate() 213 kr = vm_protect(kernel_map, kernel_addr, area_used, FALSE, VM_PROT_READ | VM_PROT_WRITE); in commpage_allocate() 587 VM_PROT_READ); in commpage_populate() 603 VM_PROT_READ); in commpage_populate() 670 …_allocate(commpage_text32_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate() 691 …_allocate(commpage_text64_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
|
| /xnu-12377.81.4/osfmk/vm/ |
| 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() 1268 if ((named_entry->protection & VM_PROT_READ) in memory_object_iopl_request() 1269 != VM_PROT_READ) { in memory_object_iopl_request() 1274 (VM_PROT_READ | VM_PROT_WRITE)) in memory_object_iopl_request() 1275 != (VM_PROT_READ | VM_PROT_WRITE)) { in memory_object_iopl_request()
|