| /xnu-8019.80.24/tests/ |
| H A D | vm_test_mach_map.c | 126 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() 1124 cur_prot = VM_PROT_READ | VM_PROT_WRITE; 1125 max_prot = VM_PROT_READ | VM_PROT_WRITE; 1191 MAP_MEM_VM_SHARE | VM_PROT_READ | VM_PROT_WRITE, 1209 VM_PROT_READ | VM_PROT_WRITE, [all …]
|
| H A D | ipc_read_inspect.c | 301 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() 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() 398 T_QUIET; T_EXPECT_EQ(max_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans() 399 T_QUIET; T_EXPECT_EQ(cur_protection, VM_PROT_READ | VM_PROT_WRITE, NULL); in test_task_port_mig_intrans()
|
| 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 | vm_phys_footprint.c | 622 VM_PROT_READ | VM_PROT_WRITE, 704 VM_PROT_READ | VM_PROT_WRITE), 732 VM_PROT_READ | VM_PROT_WRITE, 733 VM_PROT_READ | VM_PROT_WRITE, 874 VM_PROT_READ | VM_PROT_WRITE), 902 VM_PROT_READ | VM_PROT_WRITE, 903 VM_PROT_READ | VM_PROT_WRITE,
|
| H A D | proc_info.c | 1318 T_EXPECT_EQ_UINT((preginfo.pri_protection ^ (VM_PROT_READ | VM_PROT_WRITE)), 0U, 1320 …preginfo.pri_max_protection & (VM_PROT_READ | VM_PROT_WRITE)), (unsigned int)(VM_PROT_READ | VM_PR… 1369 T_EXPECT_EQ_UINT((preginfo_path.prp_prinfo.pri_protection ^ (VM_PROT_READ | VM_PROT_WRITE)), 0U, 1371 T_EXPECT_EQ_UINT((preginfo_path.prp_prinfo.pri_max_protection & (VM_PROT_READ | VM_PROT_WRITE)), 1372 (unsigned int)(VM_PROT_READ | VM_PROT_WRITE), 1456 T_EXPECT_EQ_UINT((preginfo_path.prp_prinfo.pri_protection ^ (VM_PROT_READ | VM_PROT_WRITE)), 0U, 1458 T_EXPECT_EQ_UINT((preginfo_path.prp_prinfo.pri_max_protection & (VM_PROT_READ | VM_PROT_WRITE)), 1459 (unsigned int)(VM_PROT_READ | VM_PROT_WRITE),
|
| /xnu-8019.80.24/osfmk/mach/ |
| H A D | vm_prot.h | 84 #define VM_PROT_WRITE ((vm_prot_t) 0x02) /* write 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-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 156 copyio_test_protect(data, VM_PROT_WRITE); in copyin_test() 159 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyin_test() 207 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyout_test() 268 copyio_test_protect(data, VM_PROT_WRITE); in copyinstr_test() 271 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyinstr_test() 341 copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); in copyoutstr_test() 404 …copyio_test_protect(data, VM_PROT_WRITE); … 407 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 443 …copyio_test_protect(data, VM_PROT_READ | VM_PROT_WRITE); … 485 copyio_test_protect(data, VM_PROT_WRITE); in copyin_atomic32_wait_if_equals_test() [all …]
|
| /xnu-8019.80.24/osfmk/i386/ |
| H A D | io_map.c | 88 VM_PROT_READ | VM_PROT_WRITE, in io_map() 93 VM_PROT_READ | VM_PROT_WRITE, in io_map()
|
| /xnu-8019.80.24/bsd/dev/dtrace/ |
| H A D | dtrace_ptss.c | 184 vm_prot_t max_protection = VM_PROT_READ | VM_PROT_EXECUTE | VM_PROT_WRITE; in dtrace_ptss_allocate_page() 195 if (kr != KERN_SUCCESS || !(max_protection & VM_PROT_WRITE)) { in dtrace_ptss_allocate_page() 199 …_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()
|
| H A D | dtrace_glue.c | 177 if (!(info.protection & VM_PROT_WRITE)) { in uwrite() 181 if (info.max_protection & VM_PROT_WRITE) { in uwrite() 183 …(map, (mach_vm_offset_t)a, (mach_vm_size_t)len, 0, (reprotect & ~VM_PROT_EXECUTE) | VM_PROT_WRITE); in uwrite() 190 …ect(map, (mach_vm_offset_t)a, (mach_vm_size_t)len, 0, VM_PROT_COPY | VM_PROT_READ | VM_PROT_WRITE); in uwrite()
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | kern_mman.c | 229 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap() 339 int reject_prot = ((flags & MAP_PRIVATE) ? VM_PROT_EXECUTE : (VM_PROT_WRITE | VM_PROT_EXECUTE)); in mmap() 553 maxprot |= VM_PROT_WRITE; in mmap() 561 maxprot |= VM_PROT_WRITE; in mmap() 687 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap() 690 if (maxprot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap() 762 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap() 765 if (maxprot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mmap() 772 int reject_prot = ((flags & MAP_PRIVATE) ? VM_PROT_EXECUTE : (VM_PROT_WRITE | VM_PROT_EXECUTE)); in mmap() 1019 if (prot & (VM_PROT_EXECUTE | VM_PROT_WRITE)) { in mprotect()
|
| /xnu-8019.80.24/osfmk/arm/ |
| H A D | trap.h | 255 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ)) 267 (VM_PROT_WRITE|VM_PROT_READ) : (VM_PROT_READ))
|
| H A D | loose_ends.c | 96 dst_index = pmap_map_cpu_windows_copy(pn_dst, VM_PROT_READ | VM_PROT_WRITE, wimg_bits_dst); in bcopy_phys() 137 …unsigned int index = pmap_map_cpu_windows_copy(src >> PAGE_SHIFT, VM_PROT_READ | VM_PROT_WRITE, wi… in bzero_phys() 290 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in ml_phys_write_data() 319 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in ml_phys_write_long_long()
|
| H A D | io_map.c | 73 return io_map_with_prot(phys_addr, size, flags, VM_PROT_READ | VM_PROT_WRITE); in io_map()
|
| H A D | machine_routines.c | 743 return pmap_map_high_window_bd(phys_addr, len, VM_PROT_READ | VM_PROT_WRITE); in ml_map_high_window() 823 if ((new_prot & VM_PROT_WRITE) && (new_prot & VM_PROT_EXECUTE)) { in ml_static_protect() 831 if (new_prot & VM_PROT_WRITE) { in ml_static_protect() 913 if (ml_static_protect(vaddr_cur, PAGE_SIZE, VM_PROT_WRITE | VM_PROT_READ) != KERN_SUCCESS) { in ml_static_mfree()
|
| H A D | pmap.c | 1708 tmplate = pa_to_pte(start) | ARM_PTE_AP((prot & VM_PROT_WRITE) ? AP_RWNA : AP_RONA) | in pmap_map_bd_with_options() 1761 | ARM_PTE_AP((prot & VM_PROT_WRITE) ? AP_RWNA : AP_RONA) in pmap_map_bd() 1854 | ARM_PTE_AP((prot & VM_PROT_WRITE) ? AP_RWNA : AP_RONA) in pmap_map_high_window_bd() 5270 case VM_PROT_READ | VM_PROT_WRITE: 5365 if ((options & PMAP_OPTIONS_PROTECT_IMMEDIATE) && (prot & VM_PROT_WRITE)) { 5375 if ((options & PMAP_OPTIONS_PROTECT_IMMEDIATE) && (prot & VM_PROT_WRITE)) { 5516 case VM_PROT_READ | VM_PROT_WRITE: 5865 if (prot & VM_PROT_WRITE) { 5913 if (prot & VM_PROT_WRITE) { 5916 if (fault_type & VM_PROT_WRITE) { [all …]
|
| H A D | caches.c | 185 …index = pmap_map_cpu_windows_copy((ppnum_t) (paddr >> PAGE_SHIFT), VM_PROT_READ | VM_PROT_WRITE, w… in dcache_incoherent_io_flush64() 251 …index = pmap_map_cpu_windows_copy((ppnum_t) (paddr >> PAGE_SHIFT), VM_PROT_READ | VM_PROT_WRITE, w… in dcache_incoherent_io_store64()
|
| /xnu-8019.80.24/osfmk/tests/ |
| H A D | pmap_tests.c | 109 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()
|
| /xnu-8019.80.24/osfmk/vm/ |
| H A D | vm_fault.c | 1388 && (fault_type & VM_PROT_WRITE)) { in vm_fault_page() 2107 if (fault_type & VM_PROT_WRITE) { in vm_fault_page() 2224 *protection &= (~VM_PROT_WRITE); in vm_fault_page() 2247 if ((fault_type & VM_PROT_WRITE) == 0) { in vm_fault_page() 2248 *protection &= ~VM_PROT_WRITE; in vm_fault_page() 2689 (prot & VM_PROT_WRITE)) { in vm_fault_cs_check_violation() 2724 ((prot & VM_PROT_WRITE) || in vm_fault_cs_check_violation() 2788 assert(!(prot & VM_PROT_WRITE) || (map_is_switch_protected == FALSE)); in vm_fault_cs_handle_violation() 3368 if (fault_type & VM_PROT_WRITE) { in vm_fault_enter_set_mapped() 3617 } else if ((fault_type & VM_PROT_WRITE) == 0 && in vm_fault_enter_prepare() [all …]
|
| H A D | memory_object.c | 843 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update() 846 VM_PROT_WRITE | VM_PROT_READ, in vm_object_update() 876 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update() 881 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update() 887 prot = VM_PROT_WRITE | VM_PROT_READ; in vm_object_update() 1443 (VM_PROT_READ | VM_PROT_WRITE)) in memory_object_iopl_request() 1444 != (VM_PROT_READ | VM_PROT_WRITE)) { in memory_object_iopl_request()
|
| H A D | vm_debug.c | 288 VM_PROT_READ | VM_PROT_WRITE, in vm32_region_info() 511 VM_PROT_READ | VM_PROT_WRITE, in vm32_region_info_64() 632 VM_PROT_READ | VM_PROT_WRITE, in vm32_mapped_pages_info()
|
| H A D | vm_map.c | 2242 if ((cur_protection & VM_PROT_WRITE) && in vm_map_enter() 2289 int reject_prot = (needs_copy ? VM_PROT_ALLEXEC : (VM_PROT_WRITE | VM_PROT_ALLEXEC)); in vm_map_enter() 3006 int reject_prot = (needs_copy ? VM_PROT_ALLEXEC : (VM_PROT_WRITE | VM_PROT_ALLEXEC)); in vm_map_enter() 3233 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter() 3466 if ((cur_protection & VM_PROT_WRITE) && in vm_map_enter_fourk() 3652 if ((entry->protection & VM_PROT_WRITE) && in vm_map_enter_fourk() 3855 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_fourk() 4429 copy_entry->protection & VM_PROT_WRITE) { in vm_map_enter_mem_object_helper() 4432 prot = copy_entry->protection & ~VM_PROT_WRITE; in vm_map_enter_mem_object_helper() 4647 pager_prot &= ~VM_PROT_WRITE; in vm_map_enter_mem_object_helper() [all …]
|
| /xnu-8019.80.24/osfmk/arm64/ |
| H A D | loose_ends.c | 143 dst_index = pmap_map_cpu_windows_copy(pn_dst, VM_PROT_READ | VM_PROT_WRITE, wimg_bits_dst); in bcopy_phys_internal() 230 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in bzero_phys() 495 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in ml_phys_write_data()
|
| /xnu-8019.80.24/tests/vm/ |
| H A D | vm_allocation.c | 1473 set_up_vm_variables_allocate_protect(VM_PROT_WRITE, "read"); in set_up_vm_variables_allocate_readprotect() 2210 …ESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRITE), "mach_vm_pro… in test_read_partially_unreadable_range() 2415 …CH_SUCCESS(mach_vm_protect(mach_task_self(), buffer_mid_point, vm_page_size, FALSE, VM_PROT_WRITE), in test_write_partially_unreadable_buffer() 2743 …ESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRITE), "mach_vm_pro… in test_copy_partially_unreadable_range() 2821 …ESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRITE), "mach_vm_pro… in test_copy_source_partially_unreadable_region() 2965 …SUCCESS(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PROT_WRITE), "mach_vm_pro… in test_copy_source_on_partially_unreadable_range() 3042 verify_protection(VM_PROT_WRITE, "write"); in test_verify_writeprotection() 3159 protect_zero_size(VM_PROT_WRITE, "Write"); in test_writeprotect_zero_size() 3205 protect_wrapped_around_ranges(VM_PROT_WRITE, "Write"); in test_writeprotect_wrapped_around_ranges() 3464 vm_prot_t cur_protect = (VM_PROT_READ | VM_PROT_WRITE); in test_vmcopy_trueshared_source() [all …]
|
| /xnu-8019.80.24/osfmk/device/ |
| H A D | iokit_rpc.c | 464 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOMapPages() 534 ? VM_PROT_READ : (VM_PROT_READ | VM_PROT_WRITE); in IOProtectCacheMode()
|