| /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() 939 MAP_MEM_VM_SHARE | VM_PROT_READ, 953 VM_PROT_READ, 954 VM_PROT_READ, 1024 (info.protection == VM_PROT_READ) && [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() 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 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,
|
| /xnu-8019.80.24/osfmk/mach/ |
| H A D | vm_prot.h | 83 #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-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 | 95 src_index = pmap_map_cpu_windows_copy(pn_src, VM_PROT_READ, wimg_bits_src); in bcopy_phys() 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() 169 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ, wimg_bits); in ml_phys_read_data() 203 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ, wimg_bits); in ml_phys_read_long_long() 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 | trap.c | 327 fault_type = VM_PROT_READ | VM_PROT_EXECUTE; in sleh_abort() 349 fault_type = (VM_PROT_READ | VM_PROT_WRITE); in sleh_abort() 360 fault_type = VM_PROT_READ; in sleh_abort() 364 fault_type = VM_PROT_READ; in sleh_abort()
|
| 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 | pmap.c | 4652 case VM_PROT_READ: 4653 case VM_PROT_READ | VM_PROT_EXECUTE: 5267 case VM_PROT_READ: 5268 case VM_PROT_READ | VM_PROT_EXECUTE: 5270 case VM_PROT_READ | VM_PROT_WRITE: 5513 case VM_PROT_READ: 5514 case VM_PROT_READ | VM_PROT_EXECUTE: 5516 case VM_PROT_READ | VM_PROT_WRITE: 6016 if (__improbable(prot != VM_PROT_READ)) { 7245 allow_mode &= ~(VM_PROT_READ | VM_PROT_EXECUTE); [all …]
|
| /xnu-8019.80.24/bsd/tests/ |
| H A D | copyio_tests.c | 159 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-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/kern/ |
| H A D | kern_mman.c | 230 prot |= VM_PROT_READ; in mmap() 516 maxprot |= VM_PROT_READ; in mmap() 677 if (prot & VM_PROT_READ) { in mmap() 680 if (maxprot & VM_PROT_READ) { in mmap() 688 prot |= VM_PROT_READ; in mmap() 691 maxprot |= VM_PROT_READ; in mmap() 752 if (prot & VM_PROT_READ) { in mmap() 755 if (maxprot & VM_PROT_READ) { in mmap() 763 prot |= VM_PROT_READ; in mmap() 766 maxprot |= VM_PROT_READ; in mmap() [all …]
|
| H A D | kern_core.c | 475 if ((prot & VM_PROT_READ) == 0) { in coredump() 477 prot | VM_PROT_READ); in coredump() 483 int64_t fsize = ((maxprot & VM_PROT_READ) == VM_PROT_READ in coredump()
|
| /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() 179 pmap_page_protect_options(phys_page, VM_PROT_READ, 0, NULL); in test_pmap_page_protect_overhead()
|
| /xnu-8019.80.24/bsd/dev/dtrace/ |
| H A D | dtrace_ptss.c | 183 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 | VM_PROT_WRITE; in dtrace_ptss_allocate_page() 199 …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-8019.80.24/osfmk/i386/commpage/ |
| H A D | commpage.c | 183 if (uperm == (VM_PROT_READ | VM_PROT_EXECUTE)) { in commpage_allocate() 215 kr = vm_protect(kernel_map, kernel_addr, area_used, FALSE, VM_PROT_READ | VM_PROT_WRITE); in commpage_allocate() 583 VM_PROT_READ); in commpage_populate() 599 VM_PROT_READ); in commpage_populate() 628 …_allocate(commpage_text32_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate() 649 …_allocate(commpage_text64_map, (vm_size_t) _COMM_PAGE_TEXT_AREA_USED, VM_PROT_READ | VM_PROT_EXECU… in commpage_text_populate()
|
| /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()
|
| /xnu-8019.80.24/osfmk/arm64/ |
| H A D | loose_ends.c | 135 src_index = pmap_map_cpu_windows_copy(pn_src, VM_PROT_READ, wimg_bits_src); in bcopy_phys_internal() 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() 317 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ, wimg_bits); in ml_phys_read_data() 495 index = pmap_map_cpu_windows_copy(pn, VM_PROT_READ | VM_PROT_WRITE, wimg_bits); in ml_phys_write_data()
|
| H A D | alternate_debugger.c | 99 pmap_protect(kernel_map->pmap, alt_code, alt_code + alt_size, VM_PROT_READ | VM_PROT_EXECUTE); in alternate_debugger_enter()
|
| /xnu-8019.80.24/osfmk/vm/ |
| 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() 1437 if ((named_entry->protection & VM_PROT_READ) in memory_object_iopl_request() 1438 != VM_PROT_READ) { in memory_object_iopl_request() 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_tests.c | 600 VM_PROT_READ); in vm_test_4k() 621 VM_PROT_READ, in vm_test_4k() 889 MAP_MEM_VM_SHARE | MAP_MEM_USE_DATA_ADDR | VM_PROT_READ, in vm_test_map_copy_adjust_to_target() 997 VM_PROT_READ, in vm_test_watch3_overmap() 1007 VM_PROT_READ, in vm_test_watch3_overmap()
|
| 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_compressor.h | 325 VM_PROT_READ | VM_PROT_WRITE, \ 336 VM_PROT_READ, \
|
| /xnu-8019.80.24/tests/vm_memory_tests_src/ |
| H A D | vm_tests.c | 160 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()
|