Home
last modified time | relevance | path

Searched refs:VM_PROT_ALL (Results 1 – 25 of 25) sorted by relevance

/xnu-8019.80.24/osfmk/mach/
H A Dvm_prot.h97 #define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE) macro
H A Dhost_priv.defs156 * with VM_PROT_ALL.
/xnu-8019.80.24/libkern/kxld/
H A Dkxld_seg.c156 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-8019.80.24/osfmk/vm/
H A Dvm_user.c235 VM_PROT_ALL, in mach_vm_allocate_kernel()
324 VM_PROT_ALL, in vm_allocate_kernel()
465 (new_protection & ~(VM_PROT_ALL | VM_PROT_COPY))) { in mach_vm_protect()
1248 if ((*cur_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_external()
1249 (*max_protection & ~VM_PROT_ALL) || in mach_vm_remap_new_external()
1415 if ((*cur_protection & ~VM_PROT_ALL) || in vm_remap_new_external()
1416 (*max_protection & ~VM_PROT_ALL) || in vm_remap_new_external()
1588 if (access & ~VM_PROT_ALL || (start + size < start)) { in mach_vm_wire_kernel()
1637 if ((access & ~VM_PROT_ALL) || (start + size < start)) { in vm_wire()
2667 original_protections = permission & VM_PROT_ALL; in mach_make_memory_entry_internal()
[all …]
H A Dvm_shared_region.c802 mem_entry->protection = VM_PROT_ALL; in vm_shared_region_create()
1566 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup()
1567 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup()
1583 mappings[i].sms_init_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup()
1584 mappings[i].sms_max_prot & VM_PROT_ALL, in vm_shared_region_map_file_setup()
2055 max_prot = VM_PROT_ALL; in vm_shared_region_enter()
3090 mem_entry->protection = VM_PROT_ALL; in _vm_commpage_init()
3303 VM_PROT_ALL, in vm_commpage_enter()
3304 VM_PROT_ALL, in vm_commpage_enter()
H A Dvm_kern.c259 VM_PROT_DEFAULT, VM_PROT_ALL); in kernel_memory_allocate()
1146 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in kmem_alloc_pageable()
1287 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in kmem_suballoc()
H A Dvm_tests.c425 anon_object, 0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose()
435 VM_PROT_DEFAULT, VM_PROT_ALL, in vm_test_device_pager_transpose()
H A Dvm_map.h234 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY | VM_PROT_UEXEC)
236 #define VM_VALID_VMPROTECT_FLAGS (VM_PROT_ALL | VM_PROT_COPY)
H A Dvm_map.c1923 new_entry->max_protection = VM_PROT_ALL; in vm_map_find_space()
4096 (cur_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_helper()
4097 (max_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_helper()
4551 protections = named_entry->protection & (VM_PROT_ALL | VM_PROT_ALLEXEC); in vm_map_enter_mem_object_helper()
4943 (cur_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_control()
4944 (max_protection & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) || in vm_map_enter_mem_object_control()
5231 VM_PROT_ALL, in vm_map_enter_cpm()
5232 VM_PROT_ALL, in vm_map_enter_cpm()
5279 VM_PROT_ALL, VM_PROT_WRITE, in vm_map_enter_cpm()
5926 max_prot = new_prot & (VM_PROT_ALL | VM_PROT_ALLEXEC); in vm_map_protect()
[all …]
H A Dmemory_object.c226 pmap_page_protect(VM_PAGE_GET_PHYS_PAGE(m), VM_PROT_ALL & ~prot); in memory_object_lock_page()
326 if ((prot & ~(VM_PROT_ALL | VM_PROT_ALLEXEC)) != 0 && prot != VM_PROT_NO_CHANGE) { in memory_object_lock_request()
H A Dvm_object.c3592 pmap_page_protect_options(VM_PAGE_GET_PHYS_PAGE(p), (VM_PROT_ALL & ~VM_PROT_WRITE), in vm_object_copy_delayed()
3699 pmap_page_protect_options(VM_PAGE_GET_PHYS_PAGE(p), (VM_PROT_ALL & ~VM_PROT_WRITE), in vm_object_copy_delayed()
5590 if ((prot & ~VM_PROT_ALL) != 0 && prot != VM_PROT_NO_CHANGE) { in vm_object_lock_request()
H A Dvm_pageout.c7156 prot_to_map, VM_PROT_ALL, VM_INHERIT_DEFAULT); in vm_map_enter_upl_range()
7167 prot_to_map, VM_PROT_ALL, VM_INHERIT_DEFAULT); in vm_map_enter_upl_range()
10158 VM_PROT_ALL, in vm_paging_map_object()
/xnu-8019.80.24/tests/
H A Dperf_vmfault.c124 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_make_memory_entry(mach_task_self(), &size, addr1, VM_PROT_ALL in map_mem_regions_single()
130 FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_NONE), "vm_map"); in map_mem_regions_single()
/xnu-8019.80.24/osfmk/kern/
H A Dkext_alloc.c206 VM_PROT_ALL, in kext_alloc()
/xnu-8019.80.24/tests/vm/
H A Dvm_allocation.c436 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()
463 (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), &object_handle, 0), in memory_entry()
480 VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT); in wrapper_mach_vm_map_named_entry()
1685 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()
1686 vm_prot_t max_protections[] = {VM_PROT_ALL, VM_PROT_ALL + 1, ~VM_PROT_IS_MASK, INT_MAX}; in test_mach_vm_map_protection_inheritance_error()
1737 (memory_object_offset_t)0, FALSE, VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT), in test_mach_vm_map_large_mask_overflow_error()
1783 (MAP_MEM_NAMED_CREATE | VM_PROT_ALL), &object_handle, 0), in test_allocate_invalid_large_size()
/xnu-8019.80.24/osfmk/i386/commpage/
H A Dcommpage.c145 VM_PROT_ALL, in commpage_allocate()
146 VM_PROT_ALL, in commpage_allocate()
/xnu-8019.80.24/bsd/kern/
H A Dkern_mman.c221 prot = (uap->prot & VM_PROT_ALL); in mmap()
404 maxprot = VM_PROT_ALL; in mmap()
999 prot = (vm_prot_t)(uap->prot & (VM_PROT_ALL | VM_PROT_TRUSTED | VM_PROT_STRIP_READ)); in mprotect()
H A Dmach_loader.c2197 (scp->initprot & VM_PROT_ALL) == VM_PROT_NONE && in load_segment()
2198 (scp->maxprot & VM_PROT_ALL) == VM_PROT_NONE) { in load_segment()
2259 (scp->initprot & VM_PROT_ALL), in load_segment()
2260 (scp->maxprot & VM_PROT_ALL), in load_segment()
2350 initprot = (scp->initprot) & VM_PROT_ALL; in load_segment()
2351 maxprot = (scp->maxprot) & VM_PROT_ALL; in load_segment()
/xnu-8019.80.24/libsyscall/mach/
H A Dmach_vm.c176 if (object == MEMORY_OBJECT_NULL && max_protection == VM_PROT_ALL && in mach_vm_map()
/xnu-8019.80.24/osfmk/ipc/
H A Dmach_kernelrpc.c125 args->cur_protection, VM_PROT_ALL, VM_INHERIT_DEFAULT); in _kernelrpc_mach_vm_map_trap()
/xnu-8019.80.24/bsd/vm/
H A Dvm_unix.c357 current_proc()->p_comm, proc_getpid(current_proc()), vaddr, prot_values[prot & VM_PROT_ALL]); in log_stack_execution_failure()
2154 vm_prot_t maxprot = VM_PROT_ALL; in shared_region_map_and_slide_setup()
2296 srfmp->fp->fp_glob, VM_PROT_ALL, MAP_FILE, 0, &maxprot); in shared_region_map_and_slide_setup()
/xnu-8019.80.24/osfmk/arm/
H A Dpmap.c4650 case VM_PROT_ALL:
5160 if (prot == VM_PROT_ALL) {
5254 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) {
5271 case VM_PROT_ALL:
5503 if ((prot & VM_PROT_ALL) == VM_PROT_NONE) {
5517 case VM_PROT_ALL:
7207 vm_prot_t allow_mode = VM_PROT_ALL;
7233 …pmap_page_protect_options_with_flush_range(pn, (VM_PROT_ALL & ~VM_PROT_WRITE), options, flush_rang…
12934 pmap_page_protect(pn, VM_PROT_ALL);
/xnu-8019.80.24/osfmk/kdp/
H A Dkdp.c740 r->protection = VM_PROT_ALL; r++; rp->nregions++; in kdp_regions()
/xnu-8019.80.24/osfmk/i386/
H A Dpmap_x86_common.c1726 case VM_PROT_ALL: in pmap_page_protect_options()
/xnu-8019.80.24/libkern/c++/
H A DOSKext.cpp1149 /* max_protection */ VM_PROT_ALL, in removeKextBootstrap()