| /xnu-12377.1.9/tests/vm/ |
| H A D | mach_vm_map.c | 280 MAP_MEM_VM_COPY | MAP_MEM_USE_DATA_ADDR | VM_PROT_ALL, 296 vmflags, entry_handle, 0, true, VM_PROT_ALL, VM_PROT_ALL, 307 entry_handle, target_offset, true, VM_PROT_ALL, VM_PROT_ALL, 317 entry_handle, target_offset, true, VM_PROT_ALL, VM_PROT_ALL, 331 entry_handle, target_offset, true, VM_PROT_ALL, VM_PROT_ALL,
|
| 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() 466 (memory_object_offset_t)0, (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), in memory_entry() 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() 1810 …vm_prot_t max_protections[] = {VM_PROT_ALL, (VM_PROT_ALL | VM_PROT_ALLEXEC) + 1, ~VM_PROT_IS_MASK,… 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() 1902 (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), &object_handle, 0), in test_allocate_invalid_large_size()
|
| H A D | vm_test_linkedit_permanent.c | 27 return _prot_str[prot & VM_PROT_ALL]; in prot_str()
|
| H A D | vm_test_shreg_ro.c | 27 return _prot_str[prot & VM_PROT_ALL]; in prot_str()
|
| 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 | 111 …, 0, VM_FLAGS_ANYWHERE, MEMORY_OBJECT_NULL, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEF… in allocate_and_defer_free()
|
| /xnu-12377.1.9/osfmk/mach/ |
| H A D | vm_prot.h | 101 #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE) macro
|
| /xnu-12377.1.9/libkern/kxld/ |
| H A D | kxld_seg.c | 156 seg->initprot = VM_PROT_ALL; in kxld_seg_create_seg_from_sections() 157 seg->maxprot = VM_PROT_ALL; in kxld_seg_create_seg_from_sections() 431 le->maxprot = VM_PROT_ALL; in kxld_seg_init_linkedit() 861 seg->initprot = VM_PROT_ALL; in kxld_seg_set_vm_protections() 862 seg->maxprot = VM_PROT_ALL; in kxld_seg_set_vm_protections()
|
| /xnu-12377.1.9/osfmk/vm/ |
| H A D | vm_sanitize.c | 61 #define VM_SANITIZE_PROT_ALLOWED (VM_PROT_ALL | VM_PROT_ALLEXEC) 777 prot &= (VM_PROT_ALL | VM_PROT_TRUSTED | VM_PROT_STRIP_READ); in vm_sanitize_prot_bsd() 812 *perm |= (prot & (VM_PROT_ALL | extra_mask)); in vm_sanitize_memory_entry_perm()
|
| H A D | vm_shared_region.c | 949 mem_entry->protection = VM_PROT_ALL; in vm_shared_region_create() 1757 mappings[0].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1758 mappings[0].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1913 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1914 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1929 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 1930 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup() 2384 max_prot = VM_PROT_ALL; in vm_shared_region_insert_submap() 3756 mem_entry->protection = VM_PROT_ALL; in _vm_commpage_init() 3956 VM_PROT_ALL, in vm_commpage_enter() [all …]
|
| H A D | vm_memory_entry.c | 85 *protections = permission & VM_PROT_ALL; in vm_memory_entry_decode_perm() 454 (protections & VM_PROT_ALL)); in mach_make_memory_entry_named_create() 1092 (user_entry->protection & VM_PROT_ALL)); in mach_make_memory_entry_from_parent_entry() 1330 user_entry->protection = permission & VM_PROT_ALL; in mach_memory_object_memory_entry_64() 1335 (user_entry->protection & VM_PROT_ALL)); in mach_memory_object_memory_entry_64()
|
| H A D | vm_map_xnu.h | 127 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY | VM_PROT_UEXEC) 129 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY)
|
| H A D | memory_object.c | 228 pmap_page_protect(VM_PAGE_GET_PHYS_PAGE(m), VM_PROT_ALL & ~prot); in memory_object_lock_page() 328 if ((prot & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) != 0 && prot != VM_PROT_NO_CHANGE) { in memory_object_lock_request()
|
| H A D | vm_map.c | 2645 new_entry->max_protection = VM_PROT_ALL; in vm_map_find_space() 3030 && cur_protection != VM_PROT_ALL) { in vm_map_enter() 5884 max_prot = new_prot & (VM_PROT_ALL | VM_PROT_ALLEXEC); in vm_map_protect() 6585 access_type = (caller_prot & (VM_PROT_ALL | VM_PROT_ALLEXEC)); in vm_map_wire_nested() 9997 entry->max_protection = VM_PROT_ALL; in vm_map_copy_overwrite_nested() 11544 VM_PROT_ALL, in vm_map_copyout_kernel_buffer() 11946 entry->max_protection = VM_PROT_ALL; in vm_map_copyout_internal() 12132 VM_PROT_ALL, in vm_map_copyout_size() 12155 VM_PROT_ALL, in vm_map_copyout() 14290 fault_type &= VM_PROT_ALL; in vm_map_lookup_and_lock_object() [all …]
|
| /xnu-12377.1.9/osfmk/kern/ |
| H A D | kext_alloc.c | 206 VM_PROT_ALL, in kext_alloc()
|
| /xnu-12377.1.9/osfmk/i386/commpage/ |
| H A D | commpage.c | 145 VM_PROT_ALL, in commpage_allocate() 146 VM_PROT_ALL, in commpage_allocate()
|
| /xnu-12377.1.9/libsyscall/mach/ |
| H A D | mach_vm.c | 177 if (object == MEMORY_OBJECT_NULL && max_protection == VM_PROT_ALL && in mach_vm_map()
|
| /xnu-12377.1.9/bsd/kern/ |
| H A D | kern_mman.c | 195 *prot &= VM_PROT_ALL; in mmap_sanitize() 469 maxprot = VM_PROT_ALL; in mmap()
|
| H A D | mach_loader.c | 2371 (scp->initprot & VM_PROT_ALL) == VM_PROT_NONE && in load_segment() 2372 (scp->maxprot & VM_PROT_ALL) == VM_PROT_NONE) { in load_segment() 2523 initprot = (scp->initprot) & VM_PROT_ALL; in load_segment() 2524 maxprot = (scp->maxprot) & VM_PROT_ALL; in load_segment()
|
| /xnu-12377.1.9/osfmk/ipc/ |
| H A D | mach_kernelrpc.c | 124 args->cur_protection, VM_PROT_ALL, VM_INHERIT_DEFAULT); in _kernelrpc_mach_vm_map_trap()
|
| /xnu-12377.1.9/tests/vm/configurator/ |
| H A D | vm_configurator.c | 306 assert(prot_contains_all(VM_PROT_ALL /* rwx */, prot)); in name_for_prot() 1609 VM_PROT_DEFAULT, VM_PROT_ALL, tag, permanent); in make_checker_for_vm_allocate() 1704 checker->max_protection = VM_PROT_ALL; in make_checker_for_submap() 2338 T_QUIET; T_ASSERT_TRUE(prot_contains_all(VM_PROT_ALL, tmpl->max_protection), in create_vm_state()
|
| /xnu-12377.1.9/bsd/vm/ |
| H A D | vm_unix.c | 497 current_proc()->p_comm, proc_getpid(current_proc()), vaddr, prot_values[prot & VM_PROT_ALL]); in log_stack_execution_failure() 1168 vm_prot_t maxprot = VM_PROT_ALL; in shared_region_map_and_slide_setup() 1336 srfmp->fp->fp_glob, VM_PROT_ALL, MAP_FILE | MAP_PRIVATE | MAP_FIXED, 0, &maxprot); in shared_region_map_and_slide_setup() 2369 vm_prot_t prot = (rp->mwlr_protections & VM_PROT_ALL); in map_with_linking_np()
|
| /xnu-12377.1.9/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.c | 4376 case VM_PROT_ALL: 4899 if (prot == VM_PROT_ALL) { 4988 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5003 case VM_PROT_ALL: 5252 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5266 case VM_PROT_ALL: 6917 vm_prot_t allow_mode = VM_PROT_ALL; 6941 …pmap_page_protect_options_with_flush_range(pn, (VM_PROT_ALL & ~VM_PROT_WRITE), options, NULL, flus… 12446 pmap_page_protect(pn, VM_PROT_ALL);
|
| /xnu-12377.1.9/osfmk/kdp/ |
| H A D | kdp.c | 740 r->protection = VM_PROT_ALL; r++; rp->nregions++; in kdp_regions()
|
| /xnu-12377.1.9/osfmk/arm/pmap/ |
| H A D | pmap.c | 4867 case VM_PROT_ALL: 5393 if (prot == VM_PROT_ALL) { 5485 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5500 case VM_PROT_ALL: 5733 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) { 5747 case VM_PROT_ALL: 7309 vm_prot_t allow_mode = VM_PROT_ALL; 7341 …pmap_page_protect_options_with_flush_range(pn, (VM_PROT_ALL & ~VM_PROT_WRITE), options, flush_rang… 15016 pmap_page_protect(pn, VM_PROT_ALL);
|