Lines Matching refs:current

5609 	vm_map_entry_t                  current;  in vm_map_protect()  local
5741 current = entry; in vm_map_protect()
5742 prev = current->vme_start; in vm_map_protect()
5743 while ((current != vm_map_to_entry(map)) && in vm_map_protect()
5744 (current->vme_start < end)) { in vm_map_protect()
5748 if (current->vme_start != prev) { in vm_map_protect()
5753 new_max = current->max_protection; in vm_map_protect()
5770 if (current->used_for_jit && in vm_map_protect()
5771 pmap_has_prot_policy(map->pmap, current->translated_allow_execute, current->protection)) { in vm_map_protect()
5778 if (current->used_for_tpro) { in vm_map_protect()
5798 !(current->used_for_jit)) { in vm_map_protect()
5800 uint64_t, (uint64_t) current->vme_start, in vm_map_protect()
5801 uint64_t, (uint64_t) current->vme_end, in vm_map_protect()
5810 (uint64_t)current->vme_start, in vm_map_protect()
5811 (uint64_t)current->vme_end, in vm_map_protect()
5832 ((current->protection & VM_PROT_EXECUTE) && (new_prot & VM_PROT_WRITE))) { in vm_map_protect()
5838 prev = current->vme_end; in vm_map_protect()
5839 current = current->vme_next; in vm_map_protect()
5847 prev_entry = current->vme_prev; in vm_map_protect()
5875 current = entry; in vm_map_protect()
5876 if (current != vm_map_to_entry(map)) { in vm_map_protect()
5878 vm_map_clip_start(map, current, start); in vm_map_protect()
5881 while ((current != vm_map_to_entry(map)) && in vm_map_protect()
5882 (current->vme_start < end)) { in vm_map_protect()
5885 if (current->in_transition) { in vm_map_protect()
5893 current_start = current->vme_start; in vm_map_protect()
5894 current->needs_wakeup = true; in vm_map_protect()
5902 current = NULL; in vm_map_protect()
5908 vm_map_lookup_entry_or_next(map, current_start, &current); in vm_map_protect()
5909 if (current != vm_map_to_entry(map)) { in vm_map_protect()
5910 vm_map_clip_start(map, current, current_start); in vm_map_protect()
5917 vm_map_clip_end(map, current, end); in vm_map_protect()
5920 if (current->csm_associated && vm_log_xnu_user_debug) { in vm_map_protect()
5930 map, current, in vm_map_protect()
5931 current->vme_start, in vm_map_protect()
5932 current->vme_end, in vm_map_protect()
5933 current->protection, in vm_map_protect()
5934 current->max_protection); in vm_map_protect()
5938 if (current->is_sub_map) { in vm_map_protect()
5940 assert(!current->use_pmap); in vm_map_protect()
5943 old_prot = current->protection; in vm_map_protect()
5946 current->max_protection = new_prot; in vm_map_protect()
5948 current->protection = (new_prot & old_prot); in vm_map_protect()
5950 current->protection = new_prot; in vm_map_protect()
5954 if (!current->vme_xnu_user_debug && in vm_map_protect()
5956 ((!current->csm_associated && in vm_map_protect()
5958 (current->protection & VM_PROT_EXECUTE)) in vm_map_protect()
5961 (current->csm_associated && in vm_map_protect()
5963 (current->protection & VM_PROT_WRITE)))) { in vm_map_protect()
5976 kr = vm_map_entry_cs_associate(map, current, vmk_flags); in vm_map_protect()
5983 map, current, in vm_map_protect()
5984 current->vme_start, current->vme_end, in vm_map_protect()
5985 old_prot, current->protection, in vm_map_protect()
5986 kr, current->vme_xnu_user_debug); in vm_map_protect()
6001 if (current->protection != old_prot) { in vm_map_protect()
6008 prot = current->protection; in vm_map_protect()
6009 …if (current->is_sub_map || (VME_OBJECT(current) == NULL) || (VME_OBJECT(current) != compressor_obj… in vm_map_protect()
6012 assert(!VME_OBJECT(current)->code_signed); in vm_map_protect()
6013 assert(VME_OBJECT(current)->copy_strategy == MEMORY_OBJECT_COPY_NONE); in vm_map_protect()
6027 if (override_nx(map, VME_ALIAS(current)) && prot) { in vm_map_protect()
6036 …- <rdar://23770418> code-signing bypass?", map, (uint64_t)current->vme_start, (uint64_t)current->v… in vm_map_protect()
6040 if (pmap_has_prot_policy(map->pmap, current->translated_allow_execute, prot)) { in vm_map_protect()
6041 if (current->wired_count) { in vm_map_protect()
6043 map, (uint64_t)current->vme_start, (uint64_t)current->vme_end, prot, current->wired_count); in vm_map_protect()
6062 if (current->is_sub_map && current->use_pmap) { in vm_map_protect()
6063 pmap_protect(VME_SUBMAP(current)->pmap, in vm_map_protect()
6064 current->vme_start, in vm_map_protect()
6065 current->vme_end, in vm_map_protect()
6069 current->vme_start, in vm_map_protect()
6070 current->vme_end, in vm_map_protect()
6076 current = current->vme_next; in vm_map_protect()
6086 current = entry; in vm_map_protect()
6087 while ((current != vm_map_to_entry(map)) && in vm_map_protect()
6088 (current->vme_start <= end)) { in vm_map_protect()
6089 vm_map_simplify_entry(map, current); in vm_map_protect()
6090 current = current->vme_next; in vm_map_protect()