Home
last modified time | relevance | path

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

12

/xnu-11215.61.5/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-11215.61.5/tests/vm/
H A Dvm_user.c58 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 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_allocation.c1474 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), address, size, FALSE, protection)… in set_up_vm_variables_allocate_protect()
2264 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, V… in test_read_partially_unreadable_range()
2469 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), buffer_mid_point, vm_page_size, F… in test_write_partially_unreadable_buffer()
2524 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PR… in test_write_on_partially_unwritable_range()
2797 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, V… in test_copy_partially_unreadable_range()
2875 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, V… in test_copy_source_partially_unreadable_region()
2902 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), mid_point, vm_page_size, FALSE, V… in test_copy_dest_partially_unwriteable_region()
2989 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PR… in test_copy_dest_on_partially_unwritable_range()
3019 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), start, vm_page_size, FALSE, VM_PR… in test_copy_source_on_partially_unreadable_range()
3050 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), address, size, FALSE, VM_PROT_DEF… in test_zero_filled_readprotect()
[all …]
H A Dvm_test_linkedit_permanent.c266 kr = mach_vm_protect(mach_task_self(),
H A Dvm_parameter_validation.c1413 kern_return_t kr = mach_vm_protect(map, start, size, 0, VM_PROT_READ | VM_PROT_WRITE); in call_mach_vm_protect__start_size()
1419 kern_return_t kr = mach_vm_protect(map, start, size, 0, prot); in call_mach_vm_protect__vm_prot()
1935 kr = mach_vm_protect(map, prq_guard, KB16, 0, VM_PROT_NONE); in call_mach_vm_page_range_query()
/xnu-11215.61.5/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()
/xnu-11215.61.5/iokit/Kernel/
H A DIOGuardPageMemoryDescriptor.cpp112 kern_return_t kr = mach_vm_protect(map, address, length, true, VM_PROT_NONE); in doMap()
/xnu-11215.61.5/libsyscall/mach/
H A Dmach_vm.c91 mach_vm_protect( in mach_vm_protect() function
155 rv = mach_vm_protect(task, address, size, set_maximum, new_protection); in vm_protect()
/xnu-11215.61.5/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-11215.61.5/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-11215.61.5/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-11215.61.5/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-11215.61.5/osfmk/vm/
H A Dvm32_user.c192 return mach_vm_protect(map, start, in vm32_vm_protect()
H A Dvm_user.c292 mach_vm_protect( in mach_vm_protect() function
329 return mach_vm_protect(map, start_u, size_u, set_maximum, new_protection_u); in vm_protect()
H A Dvm_tests.c1743 kr = mach_vm_protect(VM_MAP_NULL, alloced_addr, size_16kb, FALSE, VM_PROT_DEFAULT); in vm_map_null_tests()
/xnu-11215.61.5/bsd/kern/
H A Dkern_core.c630 mach_vm_protect(map, vmoffset, vmsize, FALSE, in coredump()
H A Dkern_resource.c1353 kr = mach_vm_protect(current_map(), addr, size, FALSE, VM_PROT_DEFAULT); in dosetrlimit()
1393 kr = mach_vm_protect(current_map(), addr, size, FALSE, VM_PROT_NONE); in dosetrlimit()
H A Dkern_mman.c1300 result = mach_vm_protect(user_map, user_addr, user_size, in mprotect()
/xnu-11215.61.5/osfmk/ipc/
H A Dmach_kernelrpc.c96 rv = mach_vm_protect(task->map, args->address, args->size, in _kernelrpc_mach_vm_protect_trap()
/xnu-11215.61.5/bsd/tests/
H A Dcopyio_tests.c111 …__assert_only kern_return_t ret = mach_vm_protect(data->user_map, data->user_addr, copyio_test_buf… in copyio_test_protect()
/xnu-11215.61.5/osfmk/tests/
H A Dvm_parameter_validation.h3451 kr = mach_vm_protect(result.map, result.addr, result.size, false, perm); in create_allocation()
3453 kr = mach_vm_protect(result.map, result.guard_prefix, result.guard_size, true, VM_PROT_NONE); in create_allocation()
3455 kr = mach_vm_protect(result.map, result.guard_suffix, result.guard_size, true, VM_PROT_NONE); in create_allocation()
3554 kr = mach_vm_protect(result.map, result.guard_prefix, result.guard_size, true, VM_PROT_NONE); in create_unallocation()
3556 kr = mach_vm_protect(result.map, result.guard_suffix, result.guard_size, true, VM_PROT_NONE); in create_unallocation()
H A Dvm_parameter_validation_kern.c635 kern_return_t kr = mach_vm_protect(map, start, size, 0, VM_PROT_READ | VM_PROT_WRITE); in call_mach_vm_protect__start_size()
641 kern_return_t kr = mach_vm_protect(map, start, size, 0, prot); in call_mach_vm_protect__vm_prot()
/xnu-11215.61.5/osfmk/mach/
H A Dmach_vm.defs167 routine PREFIX(mach_vm_protect) (

12