| /xnu-12377.1.9/osfmk/vm/ |
| H A D | vm_tests.c | 117 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in vm_test_collapse_compressor() 167 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in vm_test_collapse_compressor() 324 VM_PROT_DEFAULT | VM_PROT_MEMORY_TAG_MAKE(VM_KERN_MEMORY_OSFMK), in vm_test_wire_and_extract() 344 VM_PROT_DEFAULT, in vm_test_wire_and_extract() 449 anon_object, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose() 462 VM_PROT_DEFAULT, in vm_test_device_pager_transpose() 892 FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, in vm_test_map_copy_adjust_to_target() 903 FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, in vm_test_map_copy_adjust_to_target() 1104 VM_PROT_DEFAULT, in vm_test_per_mapping_internal_accounting() 1105 VM_PROT_DEFAULT, in vm_test_per_mapping_internal_accounting() [all …]
|
| H A D | bsd_vm.c | 1043 pinfo->pri_protection = VM_PROT_DEFAULT; in fill_procregioninfo() 1044 pinfo->pri_max_protection = VM_PROT_DEFAULT; in fill_procregioninfo()
|
| H A D | vm_kern.c | 985 wired_page_list, flags, guard.kmg_tag, VM_PROT_DEFAULT, 1154 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in kmem_suballoc() 1353 VM_PROT_DEFAULT, in mach_vm_allocate_kernel() 1575 addr, size, page_list, flags, tag, VM_PROT_DEFAULT, in kernel_memory_populate() 2113 offset, mem, VM_PROT_DEFAULT, 0, mapping_type); in kmem_realloc_guard() 2121 guard.kmg_tag, VM_PROT_DEFAULT, mapping_type); in kmem_realloc_guard() 2251 vm_sanitize_wrap_prot(VM_PROT_DEFAULT), in kmem_realloc_guard()
|
| /xnu-12377.1.9/tests/vm/ |
| H A D | vm_memory_entry_parent_test.c | 130 parent_handle, 0, false, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); 142 MAP_MEM_NAMED_REUSE | VM_PROT_DEFAULT, &entry_handle, parent_handle); 161 MAP_MEM_VM_COPY | VM_PROT_DEFAULT, &parent_handle, MACH_PORT_NULL); 171 MAP_MEM_VM_COPY | VM_PROT_DEFAULT, &entry_handle, parent_handle);
|
| H A D | vm_memory_entry.c | 60 (MAP_MEM_NAMED_CREATE | MAP_MEM_LEDGER_TAGGED | VM_PROT_DEFAULT), 69 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_NONE);
|
| H A D | mach_vm_map.c | 106 &size, scratch_addr + mo_offset, VM_PROT_DEFAULT | mo_flags, in mach_vm_map_unaligned_test() 149 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in mach_vm_map_unaligned_test() 226 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT);
|
| H A D | vm_test_102067976.c | 60 VM_PROT_DEFAULT, 61 VM_PROT_DEFAULT,
|
| H A D | neural_footprint.c | 397 VM_PROT_DEFAULT; 494 VM_PROT_DEFAULT, 495 VM_PROT_DEFAULT, 510 VM_PROT_DEFAULT, 511 VM_PROT_DEFAULT, 526 VM_PROT_DEFAULT, 527 VM_PROT_DEFAULT, 542 VM_PROT_DEFAULT, 543 VM_PROT_DEFAULT,
|
| H A D | vm_parameter_validation.c | 518 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_read_overwrite__src() 528 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_read_overwrite__dst() 548 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_read_overwrite__src() 558 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_read_overwrite__dst() 577 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_copy__src() 585 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_copy__dst() 601 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_copy__src() 609 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_copy__dst() 625 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_write__src() 633 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_write__dst() [all …]
|
| H A D | vm_user.c | 111 VM_PROT_COPY | VM_PROT_DEFAULT);
|
| H A D | vm_allocation.c | 439 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map() 448 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_4kB() 456 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_2MB() 491 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_named_entry() 1809 …vm_prot_t cur_protections[] = {VM_PROT_DEFAULT, (VM_PROT_ALL | VM_PROT_ALLEXEC) + 1, ~VM_PROT_IS_M… in test_mach_vm_map_protection_inheritance_error() 1856 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT), in test_mach_vm_map_large_mask_overflow_error() 3053 …assert_mach_success(mach_vm_protect(mach_task_self(), address, size, FALSE, VM_PROT_DEFAULT), "mac… in test_zero_filled_readprotect()
|
| /xnu-12377.1.9/osfmk/tests/ |
| H A D | vm_parameter_validation_kern.c | 104 allocation_t dst_alloc SMART_ALLOCATE_VM(dst_map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_vm_map_copy_overwrite() 140 allocation_t dst_base SMART_ALLOCATE_VM(kernel_map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_src_kerneldst_size() 163 allocation_t dst_base SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_kernelsrc_dst_size() 491 … return wire_call_impl(FN, map, start, end, VM_PROT_DEFAULT, VM_KERN_MEMORY_OSFMK, user_wire); \ 507 kern_return_t kr = wire_call_impl(FN, map, start, end, VM_PROT_DEFAULT, tag, user_wire); \ 514 … return wire_call_impl(FN, map, start, 0, VM_PROT_DEFAULT, VM_KERN_MEMORY_OSFMK, user_wire); \ 566 …kern_return_t kr = vm_map_wire_kernel(map, start, end, VM_PROT_DEFAULT, VM_KERN_MEMORY_OSFMK, FALS… in call_vm_map_unwire_non_user_wired() 1001 allocation_t base SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_kext_unix_with_allocated_vnode_addr() 1011 …, (memory_object_control_t) control_info.control, 0, false, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_I… in test_kext_unix_with_allocated_vnode_addr() 1240 memobject, KB16, false, VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in call_map_fn__memobject_fixed() [all …]
|
| H A D | vm_parameter_validation.h | 2982 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 2983 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 2991 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 2992 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 2999 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3000 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3005 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3019 mappings[idx].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3020 mappings[idx].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3025 mappings[idx].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() [all …]
|
| /xnu-12377.1.9/osfmk/mach/ |
| H A D | vm_prot.h | 95 #define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE) macro
|
| /xnu-12377.1.9/tests/ipc/ |
| H A D | mach_port_description.c | 65 MAP_MEM_NAMED_CREATE | VM_PROT_DEFAULT, &named_entry, MACH_PORT_NULL);
|
| /xnu-12377.1.9/osfmk/i386/ |
| H A D | machine_routines.c | 103 return io_map(phys_addr, size, VM_WIMG_IO, VM_PROT_DEFAULT, false); in ml_io_map() 111 return io_map(phys_addr, size, VM_WIMG_WCOMB, VM_PROT_DEFAULT, false); in ml_io_map_wcomb() 120 return io_map(phys_addr, size, flags, VM_PROT_DEFAULT, true); in ml_io_map_unmappable()
|
| /xnu-12377.1.9/osfmk/kern/ |
| H A D | kext_alloc.c | 205 VM_PROT_DEFAULT, in kext_alloc()
|
| /xnu-12377.1.9/tests/ |
| H A D | task_vm_info_decompressions.c | 46 VM_FLAGS_ANYWHERE | VM_PROT_DEFAULT | VM_MAKE_TAG(VM_MEMORY_APPLICATION_SPECIFIC_1)); in worker_thread_function()
|
| H A D | vm_test_mach_map.c | 1753 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1824 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1900 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1968 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 2200 T_EXPECT_EQ_INT(info.protection, VM_PROT_DEFAULT, "child: current protection is VM_PROT_DEFAULT");
|
| H A D | os_thread_self_restrict_pagers.c | 500 kr = vm_protect(mach_task_self(), (mach_vm_address_t)state, PAGE_SIZE, FALSE, VM_PROT_DEFAULT); in pager_test()
|
| /xnu-12377.1.9/libsyscall/mach/ |
| H A D | vm_reclaim.c | 547 vm_prot_t curprot = VM_PROT_DEFAULT; in mach_vm_reclaim_ring_copy() 548 vm_prot_t maxprot = VM_PROT_DEFAULT; in mach_vm_reclaim_ring_copy()
|
| /xnu-12377.1.9/tests/vm_memory_tests_src/ |
| H A D | vm_tests.c | 278 flags = VM_PROT_DEFAULT | MAP_MEM_VM_COPY | MAP_MEM_USE_DATA_ADDR; in mach_server_make_memory_entry() 288 flags = VM_PROT_DEFAULT; in mach_server_make_memory_entry()
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | posix_shm.c | 616 MAP_MEM_NAMED_CREATE | VM_PROT_DEFAULT, &mem_object, 0); in pshm_truncate() 748 int max_prot = VM_PROT_DEFAULT; in pshm_mmap()
|
| /xnu-12377.1.9/bsd/vfs/ |
| H A D | vfs_cprotect.c | 211 mach_vm_protect(kernel_map, (vm_map_offset_t)cpxstart, PAGE_SIZE, false, (VM_PROT_DEFAULT)); in cpx_free()
|
| /xnu-12377.1.9/osfmk/arm64/ |
| H A D | machine_routines.c | 1786 return io_map(phys_addr, size, VM_WIMG_IO, VM_PROT_DEFAULT, false); in ml_io_map() 1805 return io_map(phys_addr, size, flags, VM_PROT_DEFAULT, true); in ml_io_map_unmappable() 1813 return io_map(phys_addr, size, VM_WIMG_WCOMB, VM_PROT_DEFAULT, false); in ml_io_map_wcomb()
|