Home
last modified time | relevance | path

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

12

/xnu-12377.61.12/bsd/dev/dtrace/
H A Ddtrace_ptss.c201 kr = mach_vm_protect(map, (mach_vm_offset_t)addr, (mach_vm_size_t)size, 0, in dtrace_ptss_allocate_page()
207 kr = mach_vm_protect(map, (mach_vm_offset_t)addr, (mach_vm_size_t)size, 0, in dtrace_ptss_allocate_page()
224 …kr = mach_vm_protect(map, (mach_vm_offset_t)write_addr, (mach_vm_size_t)size, 0, VM_PROT_READ | VM… in dtrace_ptss_allocate_page()
H A Ddtrace_glue.c180 …ret = mach_vm_protect(map, (mach_vm_offset_t)a, (mach_vm_size_t)len, 0, (reprotect & ~VM_PROT_EXEC… in uwrite()
187 …ret = mach_vm_protect(map, (mach_vm_offset_t)a, (mach_vm_size_t)len, 0, VM_PROT_COPY | VM_PROT_REA… in uwrite()
211 ret = mach_vm_protect(map, (mach_vm_offset_t)a, (mach_vm_size_t)len, 0, reprotect); in uwrite()
/xnu-12377.61.12/tests/vm/
H A Dvm_test_shreg_ro.c226 kr = mach_vm_protect(mach_task_self(),
256 kr = mach_vm_protect(mach_task_self(),
375 kr = mach_vm_protect(mach_task_self(),
443 …kr = mach_vm_protect(mach_task_self(), vmaddr_sub, vmsize_sub, FALSE, VM_PROT_READ | VM_PROT_WRITE…
H A Dvm_user.c59 kr = mach_vm_protect(mach_task_self(), addr, size, FALSE, VM_PROT_READ); in get_permanent_mapping()
110 kr2 = mach_vm_protect(mach_task_self(), addr, size, TRUE,
H A Dconfigurator_vm_protect.c86 kr = mach_vm_protect(mach_task_self(), start, size, set_max, prot); in vm_protect_successfully()
113 kr = mach_vm_protect(mach_task_self(), start, size, false, VM_PROT_READ); in vm_protect_with_holes()
141 kr = mach_vm_protect(mach_task_self(), start, size, false /*set max*/, prot); in vm_protect_beyond_max_prot()
H A Dvm_allocation.c1590 …assert_mach_success(mach_vm_protect(mach_task_self(), address, size, FALSE, protection), "mach_vm_… in set_up_vm_variables_allocate_protect()
2288 …assert_mach_success(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRIT… in test_read_partially_unreadable_range()
2490 …assert_mach_success(mach_vm_protect(mach_task_self(), buffer_mid_point, vm_page_size, FALSE, VM_PR… in test_write_partially_unreadable_buffer()
2545 …assert_mach_success(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PROT_READ), "… in test_write_on_partially_unwritable_range()
2815 …assert_mach_success(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRIT… in test_copy_partially_unreadable_range()
2888 …assert_mach_success(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_WRIT… in test_copy_source_partially_unreadable_region()
2913 …assert_mach_success(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, VM_PROT_READ… in test_copy_dest_partially_unwriteable_region()
2992 …assert_mach_success(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PROT_READ), "… in test_copy_dest_on_partially_unwritable_range()
3022 …assert_mach_success(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PROT_WRITE), … in test_copy_source_on_partially_unreadable_range()
3053 …assert_mach_success(mach_vm_protect(mach_task_self(), address, size, FALSE, VM_PROT_DEFAULT), "mac… in test_zero_filled_readprotect()
[all …]
H A Dvm_test_linkedit_permanent.c266 kr = mach_vm_protect(mach_task_self(),
H A Dupl.c627 …kern_return_t kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t)buf, buf_size, FALSE, VM_P…
630 …kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t)buf, buf_size, FALSE, VM_PROT_READ | VM_…
H A Dvm_stress.cpp258 kern_return_t kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t)args.arg_target_address, in op_protect()
/xnu-12377.61.12/tests/
H A Dperf_exit_proc.c49 err = mach_vm_protect(task, addr, size, 0, VM_PROT_READ | VM_PROT_WRITE); in allocate_and_wire_memory()
H A Dtry_read_write_test.c153 kr = mach_vm_protect(mach_task_self(), addr, PAGE_SIZE, false /* set max */, prot); in allocate_page_with_prot()
/xnu-12377.61.12/iokit/Kernel/
H A DIOGuardPageMemoryDescriptor.cpp112 kern_return_t kr = mach_vm_protect(map, address, length, true, VM_PROT_NONE); in doMap()
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_cprotect.c186 mach_vm_protect(kernel_map, (vm_map_offset_t)cpxstart, PAGE_SIZE, false, (VM_PROT_READ)); in cpx_writeprotect()
211 mach_vm_protect(kernel_map, (vm_map_offset_t)cpxstart, PAGE_SIZE, false, (VM_PROT_DEFAULT)); in cpx_free()
/xnu-12377.61.12/tests/vm_memory_tests_src/
H A Dvm_tests.c284 …kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FA… in mach_server_make_memory_entry()
354 …kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FA… in mach_server_make_memory_entry()
361 …kr = mach_vm_protect(mach_task_self(), (mach_vm_address_t) lsrc, (mach_vm_size_t)getpagesize(), FA… in mach_server_make_memory_entry()
/xnu-12377.61.12/libsyscall/mach/
H A Dmach_vm.c92 mach_vm_protect( in mach_vm_protect() function
156 rv = mach_vm_protect(task, address, size, set_maximum, new_protection); in vm_protect()
/xnu-12377.61.12/doc/vm/
H A Dsanitize.md277 For example, `mach_vm_protect(VM_PROT_READ)` with address=0 and size=0 is a
282 parameters). For example, `mach_vm_protect(VM_PROT_READ)` with many different
283 pairs of address and size is a single test. `mach_vm_protect` with a single
300 `mach_vm_protect`, `mach_vm_wire`, and others.
360 group of related parameters gets its own test. For example, `mach_vm_protect`
/xnu-12377.61.12/tools/tests/superpages/
H A Dtestsp.c510 mach_vm_protect(mach_task_self(), addr, size, 0, VM_PROT_READ); in test_readonly()
549 mach_vm_protect(mach_task_self(), addr + PAGE_SIZE, PAGE_SIZE, 0, VM_PROT_READ); in test_readonlysubpage()
/xnu-12377.61.12/osfmk/vm/
H A Dvm32_user.c192 return mach_vm_protect(map, start, in vm32_vm_protect()
H A Dvm_user.c299 mach_vm_protect( in mach_vm_protect() function
336 return mach_vm_protect(map, start_u, size_u, set_maximum, new_protection_u); in vm_protect()
/xnu-12377.61.12/osfmk/ipc/
H A Dmach_kernelrpc.c100 rv = mach_vm_protect(task->map, args->address, args->size, in _kernelrpc_mach_vm_protect_trap()
/xnu-12377.61.12/bsd/kern/
H A Dkern_core.c694 mach_vm_protect(map, vmoffset, vmsize, FALSE, in coredump()
H A Dkern_resource.c1579 kr = mach_vm_protect(current_map(), addr, size, FALSE, VM_PROT_DEFAULT); in dosetrlimit()
1619 kr = mach_vm_protect(current_map(), addr, size, FALSE, VM_PROT_NONE); in dosetrlimit()
/xnu-12377.61.12/bsd/tests/
H A Dcopyio_tests.c115 …__assert_only kern_return_t ret = mach_vm_protect(data->user_map, data->user_addr, copyio_test_buf… in copyio_test_protect()
/xnu-12377.61.12/osfmk/tests/
H A Dvm_parameter_validation.h3391 kr = mach_vm_protect(result.map, result.addr, result.size, false, perm); in create_allocation_after()
3393 kr = mach_vm_protect(result.map, result.guard_prefix, result.guard_size, true, VM_PROT_NONE); in create_allocation_after()
3395 kr = mach_vm_protect(result.map, result.guard_suffix, result.guard_size, true, VM_PROT_NONE); in create_allocation_after()
3508 kr = mach_vm_protect(result.map, result.guard_prefix, result.guard_size, true, VM_PROT_NONE); in create_unallocation_after()
3510 kr = mach_vm_protect(result.map, result.guard_suffix, result.guard_size, true, VM_PROT_NONE); in create_unallocation_after()
/xnu-12377.61.12/osfmk/mach/
H A Dmach_vm.defs167 routine PREFIX(mach_vm_protect) (

12