| /xnu-11215.61.5/osfmk/vm/ |
| H A D | vm_tests.c | 111 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in vm_test_collapse_compressor() 161 VM_PROT_DEFAULT, VM_PROT_DEFAULT, VM_INHERIT_DEFAULT); in vm_test_collapse_compressor() 318 VM_PROT_DEFAULT | VM_PROT_MEMORY_TAG_MAKE(VM_KERN_MEMORY_OSFMK), in vm_test_wire_and_extract() 338 VM_PROT_DEFAULT, in vm_test_wire_and_extract() 439 anon_object, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose() 452 VM_PROT_DEFAULT, in vm_test_device_pager_transpose() 882 FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, in vm_test_map_copy_adjust_to_target() 893 FALSE, VM_PROT_DEFAULT, VM_PROT_DEFAULT, in vm_test_map_copy_adjust_to_target() 1094 VM_PROT_DEFAULT, in vm_test_per_mapping_internal_accounting() 1095 VM_PROT_DEFAULT, in vm_test_per_mapping_internal_accounting() [all …]
|
| H A D | bsd_vm.c | 1023 pinfo->pri_protection = VM_PROT_DEFAULT; in fill_procregioninfo() 1024 pinfo->pri_max_protection = VM_PROT_DEFAULT; in fill_procregioninfo()
|
| H A D | vm_kern.c | 962 wired_page_list, flags, guard.kmg_tag, VM_PROT_DEFAULT, 1121 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in kmem_suballoc() 1320 VM_PROT_DEFAULT, in mach_vm_allocate_kernel() 1541 addr, size, page_list, flags, tag, VM_PROT_DEFAULT, in kernel_memory_populate() 2056 offset, mem, VM_PROT_DEFAULT, 0, mapping_type); in kmem_realloc_guard() 2064 guard.kmg_tag, VM_PROT_DEFAULT, mapping_type); in kmem_realloc_guard() 2194 vm_sanitize_wrap_prot(VM_PROT_DEFAULT), in kmem_realloc_guard()
|
| H A D | vm_dyld_pager.c | 1473 rp->mwlr_protections & VM_PROT_DEFAULT, in vm_map_with_linking() 1474 rp->mwlr_protections & VM_PROT_DEFAULT, in vm_map_with_linking()
|
| /xnu-11215.61.5/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 | 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 | 499 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_read_overwrite__src() 509 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_read_overwrite__dst() 529 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_read_overwrite__src() 539 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_read_overwrite__dst() 558 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_copy__src() 566 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_copy__dst() 582 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_copy__src() 590 allocation_t src SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_vm_copy__dst() 606 allocation_t dst SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in call_mach_vm_write__src() 614 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 | 436 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map() 445 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_4kB() 453 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_2MB() 488 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_named_entry() 1736 vm_prot_t cur_protections[] = {VM_PROT_DEFAULT, VM_PROT_ALL + 1, ~VM_PROT_IS_MASK, INT_MAX}; in test_mach_vm_map_protection_inheritance_error() 1791 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT), in test_mach_vm_map_large_mask_overflow_error() 3050 …MACH_SUCCESS(mach_vm_protect(mach_task_self(), address, size, FALSE, VM_PROT_DEFAULT), "mach_vm_pr… in test_zero_filled_readprotect()
|
| H A D | vm_ranges.c | 417 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL,
|
| H A D | vm_reclaim.c | 70 …f(), addr, size, 0, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL,… in allocate_and_defer_free()
|
| /xnu-11215.61.5/osfmk/tests/ |
| H A D | vm_parameter_validation_kern.c | 86 allocation_t dst_alloc SMART_ALLOCATE_VM(dst_map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_vm_map_copy_overwrite() 122 allocation_t dst_base SMART_ALLOCATE_VM(kernel_map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_src_kerneldst_size() 145 allocation_t dst_base SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_kernelsrc_dst_size() 473 … return wire_call_impl(FN, map, start, end, VM_PROT_DEFAULT, VM_KERN_MEMORY_OSFMK, user_wire); \ 489 kern_return_t kr = wire_call_impl(FN, map, start, end, VM_PROT_DEFAULT, tag, user_wire); \ 496 … return wire_call_impl(FN, map, start, 0, VM_PROT_DEFAULT, VM_KERN_MEMORY_OSFMK, user_wire); \ 527 …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() 984 allocation_t base SMART_ALLOCATE_VM(map, TEST_ALLOC_SIZE, VM_PROT_DEFAULT); in test_kext_unix_with_allocated_vnode_addr() 993 …, (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() 1220 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 | 3063 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3064 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3072 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3073 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3080 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3081 mappings[0].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3086 mappings[0].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3100 mappings[idx].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3101 mappings[idx].sms_init_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() 3106 mappings[idx].sms_max_prot = VM_PROT_DEFAULT; in alloc_and_fill_shared_file_mappings() [all …]
|
| /xnu-11215.61.5/osfmk/mach/ |
| H A D | vm_prot.h | 95 #define VM_PROT_DEFAULT (VM_PROT_READ|VM_PROT_WRITE) macro
|
| /xnu-11215.61.5/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-11215.61.5/osfmk/kern/ |
| H A D | kext_alloc.c | 205 VM_PROT_DEFAULT, in kext_alloc()
|
| /xnu-11215.61.5/tests/ |
| H A D | vm_test_mach_map.c | 1643 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1714 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1790 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 1858 T_QUIET; T_ASSERT_EQ(info.protection, VM_PROT_DEFAULT, "cur_prot still writable"); 2090 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()
|
| H A D | perf_vmfault.c | 131 FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_NONE), "vm_map"); in map_mem_regions_single()
|
| /xnu-11215.61.5/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-11215.61.5/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-11215.61.5/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-11215.61.5/osfmk/arm64/ |
| H A D | machine_routines.c | 1793 return io_map(phys_addr, size, VM_WIMG_IO, VM_PROT_DEFAULT, false); in ml_io_map() 1812 return io_map(phys_addr, size, flags, VM_PROT_DEFAULT, true); in ml_io_map_unmappable() 1820 return io_map(phys_addr, size, VM_WIMG_WCOMB, VM_PROT_DEFAULT, false); in ml_io_map_wcomb()
|