Lines Matching refs:address

324 #define POINTER(address) ((char *)(uintptr_t)(address))  argument
325 #define MACH_VM_ADDRESS_T(address) (*((mach_vm_address_t *)(uintptr_t)(address))) argument
407 void assert_deallocate_success(mach_vm_address_t address, mach_vm_size_t size);
413 check_fixed_address(mach_vm_address_t *address, mach_vm_size_t size) in check_fixed_address() argument
416 fixed_vm_address <= *address && in check_fixed_address()
417 *address + size <= fixed_vm_address + fixed_vm_size) { in check_fixed_address()
425 wrapper_mach_vm_allocate(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_allocate() argument
427 check_fixed_address(address, size); in wrapper_mach_vm_allocate()
428 return mach_vm_allocate(map, address, size, flags); in wrapper_mach_vm_allocate()
432 wrapper_mach_vm_map(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map() argument
434 check_fixed_address(address, size); in wrapper_mach_vm_map()
435 …return mach_vm_map(map, address, size, (mach_vm_offset_t)0, flags, MACH_PORT_NULL, (memory_object_… in wrapper_mach_vm_map()
441 wrapper_mach_vm_map_4kB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_4kB() argument
443 check_fixed_address(address, size); in wrapper_mach_vm_map_4kB()
444 …return mach_vm_map(map, address, size, (mach_vm_offset_t)0xFFF, flags, MACH_PORT_NULL, (memory_obj… in wrapper_mach_vm_map_4kB()
449 wrapper_mach_vm_map_2MB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_2MB() argument
451 check_fixed_address(address, size); in wrapper_mach_vm_map_2MB()
452 …return mach_vm_map(map, address, size, (mach_vm_offset_t)0x1FFFFF, flags, MACH_PORT_NULL, (memory_… in wrapper_mach_vm_map_2MB()
478 wrapper_mach_vm_map_named_entry(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int… in wrapper_mach_vm_map_named_entry() argument
486 check_fixed_address(address, size); in wrapper_mach_vm_map_named_entry()
487 …kr = mach_vm_map(map, address, size, (mach_vm_offset_t)0, flags, object_handle, (memory_object_off… in wrapper_mach_vm_map_named_entry()
647 set_vm_address(mach_vm_address_t address) in set_vm_address() argument
649 _vm_address = address; in set_vm_address()
671 set_buffer_address(mach_vm_address_t address) in set_buffer_address() argument
673 _buffer_address = address; in set_buffer_address()
831 aligned_size(mach_vm_address_t address, mach_vm_size_t size) in aligned_size() argument
833 return round_page(address - mach_vm_trunc_page(address) + size); in aligned_size()
842 assert_aligned_address(mach_vm_address_t address) in assert_aligned_address() argument
844 T_QUIET; T_ASSERT_EQ((address & get_mask()), 0, in assert_aligned_address()
847 (uintmax_t)address); in assert_aligned_address()
852 assert_trunc_address(mach_vm_address_t address, mach_vm_address_t trunc_address) in assert_trunc_address() argument
854 T_QUIET; T_ASSERT_EQ(trunc_address, (address & ~get_mask()), in assert_trunc_address()
857 (uintmax_t)address, (uintmax_t)trunc_address); in assert_trunc_address()
861 assert_address_value(mach_vm_address_t address, mach_vm_address_t marker) in assert_address_value() argument
866 if (MACH_VM_ADDRESS_T(address) != marker) { in assert_address_value()
868 "instead of 0x%jx.", (uintmax_t)address, in assert_address_value()
869 (uintmax_t)MACH_VM_ADDRESS_T(address), (uintmax_t)marker); in assert_address_value()
874 assert_allocate_return(mach_vm_address_t * address, mach_vm_size_t size, int address_flag, kern_ret… in assert_allocate_return() argument
876 …assert_mach_return(get_allocator()(mach_task_self(), address, size, address_flag), expected_kr, "A… in assert_allocate_return()
880 assert_allocate_success(mach_vm_address_t * address, mach_vm_size_t size, int address_flag) in assert_allocate_success() argument
882 assert_allocate_return(address, size, address_flag, KERN_SUCCESS); in assert_allocate_success()
886 assert_deallocate_return(mach_vm_address_t address, mach_vm_size_t size, kern_return_t expected_kr) in assert_deallocate_return() argument
888 …assert_mach_return(mach_vm_deallocate(mach_task_self(), address, size), expected_kr, "mach_vm_deal… in assert_deallocate_return()
892 assert_deallocate_success(mach_vm_address_t address, mach_vm_size_t size) in assert_deallocate_success() argument
894 assert_deallocate_return(address, size, KERN_SUCCESS); in assert_deallocate_success()
898 assert_read_return(mach_vm_address_t address, in assert_read_return() argument
904 …assert_mach_return(mach_vm_read(mach_task_self(), address, size, data, data_size), expected_kr, "m… in assert_read_return()
908 assert_read_success(mach_vm_address_t address, mach_vm_size_t size, vm_offset_t * data, mach_msg_ty… in assert_read_success() argument
910 assert_read_return(address, size, data, data_size, KERN_SUCCESS); in assert_read_success()
919 assert_write_return(mach_vm_address_t address, vm_offset_t data, mach_msg_type_number_t data_size, … in assert_write_return() argument
921 …assert_mach_return(mach_vm_write(mach_task_self(), address, data, data_size), expected_kr, "mach_v… in assert_write_return()
925 assert_write_success(mach_vm_address_t address, vm_offset_t data, mach_msg_type_number_t data_size) in assert_write_success() argument
927 assert_write_return(address, data, data_size, KERN_SUCCESS); in assert_write_success()
966 mach_vm_address_t address, in filter_addresses_do_else() argument
974 if (filter(address + i) != reversed) { in filter_addresses_do_else()
975 if_action(address + i, start_value + i); in filter_addresses_do_else()
977 else_action(address + i, start_value + i); in filter_addresses_do_else()
1044 mach_vm_address_t address = 0x0; in get_fixed_address() local
1054 assert_allocate_success(&address, size, VM_FLAGS_ANYWHERE); in get_fixed_address()
1063 fixed_vm_address = address; in get_fixed_address()
1066 assert_aligned_address(address); in get_fixed_address()
1067 return address; in get_fixed_address()
1086 mach_vm_address_t address = get_fixed_address(size); in set_up_vm_address() local
1088 address++; in set_up_vm_address()
1090 set_vm_address(address); in set_up_vm_address()
1091 logv("Found %saligned fixed address 0x%jx.", aligned ? "" : "un", (uintmax_t)address); in set_up_vm_address()
1171 mach_vm_address_t address = get_vm_address(); in allocate() local
1176 logv(" at address 0x%jx", (uintmax_t)address); in allocate()
1179 assert_allocate_success(&address, size, flag); in allocate()
1183 (uintmax_t)round_page(size), (uintmax_t)round_page(size), (uintmax_t)address); in allocate()
1188 assert_trunc_address(old_address, address); in allocate()
1192 (uintmax_t)old_address, (uintmax_t)address); in allocate()
1194 set_vm_address(address); in allocate()
1283 deallocate_range(mach_vm_address_t address, mach_vm_size_t size) in deallocate_range() argument
1286 (uintmax_t)address); in deallocate_range()
1287 assert_deallocate_success(address, size); in deallocate_range()
1325 mach_vm_address_t address = get_vm_address(); in read_deallocate() local
1330 (uintmax_t)address); in read_deallocate()
1331 assert_read_success(address, size, &read_address, &read_size); in read_deallocate()
1339 deallocate_range(mach_vm_trunc_page(address), size + 1); in read_deallocate()
1372 mach_vm_address_t address = get_vm_address(); in write_buffer() local
1379 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in write_buffer()
1380 assert_write_success(address, data, buffer_size); in write_buffer()
1468 mach_vm_address_t address = get_vm_address(); in set_up_vm_variables_allocate_protect() local
1473 protection_name, (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s", (uintmax_t)address); in set_up_vm_variables_allocate_protect()
1474 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), address, size, FALSE, protection)… in set_up_vm_variables_allocate_protect()
1498 mach_vm_address_t address = get_vm_address(); in test_nonzero_address_iff_nonzero_size() local
1501 …T_QUIET; T_ASSERT_TRUE((address && size) || (!address && !size), "Address 0x%jx is unexpectedly %s… in test_nonzero_address_iff_nonzero_size()
1502 address ? "non" : ""); in test_nonzero_address_iff_nonzero_size()
1503 logv("Address 0x%jx is %szero as expected.", (uintmax_t)address, size ? "non" : ""); in test_nonzero_address_iff_nonzero_size()
1510 mach_vm_address_t address = get_vm_address(); in test_aligned_address() local
1512 assert_aligned_address(address); in test_aligned_address()
1513 logv("Address 0x%jx is aligned.", (uintmax_t)address); in test_aligned_address()
1522 …address_filter_t filter, boolean_t reversed, mach_vm_address_t address, mach_vm_size_t size, const… in verify_pattern() argument
1527 pattern_name, (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in verify_pattern()
1528 filter_addresses_do_else(filter, reversed, address, size, verify_address, read_zero, address); in verify_pattern()
1534 …address_filter_t filter, boolean_t reversed, mach_vm_address_t address, mach_vm_size_t size, const… in write_pattern() argument
1539 pattern_name, (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in write_pattern()
1540 filter_addresses_do_else(filter, reversed, address, size, write_address, no_action, address); in write_pattern()
1546 …address_filter_t filter, boolean_t reversed, mach_vm_address_t address, mach_vm_size_t size, const… in write_and_verify_pattern() argument
1551 pattern_name, (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in write_and_verify_pattern()
1552 filter_addresses_do_else(filter, reversed, address, size, write_address, no_action, address); in write_and_verify_pattern()
1553 filter_addresses_do_else(filter, reversed, address, size, verify_address, read_zero, address); in write_and_verify_pattern()
1607 mach_vm_address_t address = mach_vm_trunc_page(get_vm_address()); in test_reallocate_pages() local
1615 (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in test_reallocate_pages()
1616 for (i = address; i < address + size; i += vm_page_size) { in test_reallocate_pages()
1622 (uintmax_t)address, mach_error_string(kr), mach_error_string(KERN_NO_SPACE)); in test_reallocate_pages()
1631 mach_vm_address_t address = get_vm_address(); in test_allocate_in_null_map() local
1637 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_in_null_map()
1640 …assert_mach_return(get_allocator()(VM_MAP_NULL, &address, size, flag), MACH_SEND_INVALID_DEST, "Al… in test_allocate_in_null_map()
1650 mach_vm_address_t address = get_vm_address(); in test_allocate_with_kernel_flags() local
1659 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_with_kernel_flags()
1671 kr = allocator(this_task, &address, size, bad_flag); in test_allocate_with_kernel_flags()
1687 mach_vm_address_t address = get_vm_address(); in test_allocate_superpage_with_incompatible_flags() local
1696 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_superpage_with_incompatible_flags()
1708 kr = allocator(this_task, &address, size, bad_flag); in test_allocate_superpage_with_incompatible_flags()
1729 mach_vm_address_t address = get_vm_address(); in test_mach_vm_map_protection_inheritance_error() local
1746 logv(" at address 0x%jx", (uintmax_t)address); in test_mach_vm_map_protection_inheritance_error()
1759 …kr = mach_vm_map(my_task, &address, size, mask, flag, object_handle, (memory_object_offset_t)0, FA… in test_mach_vm_map_protection_inheritance_error()
1779 mach_vm_address_t address = 0x1; in test_mach_vm_map_large_mask_overflow_error() local
1789 (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s", (uintmax_t)address, (uintmax_t)mask); in test_mach_vm_map_large_mask_overflow_error()
1790 …assert_mach_return(mach_vm_map(mach_task_self(), &address, size, mask, VM_FLAGS_ANYWHERE, MACH_POR… in test_mach_vm_map_large_mask_overflow_error()
1801 allocate_edge_size(mach_vm_address_t * address, mach_vm_size_t size, kern_return_t expected_kr) in allocate_edge_size() argument
1804 assert_allocate_return(address, size, VM_FLAGS_ANYWHERE, expected_kr); in allocate_edge_size()
1811 mach_vm_address_t address = 0x0; in test_allocate_zero_size() local
1816 allocate_edge_size(&address, 0, kr_expected); in test_allocate_zero_size()
1818 deallocate_range(address, 0); in test_allocate_zero_size()
1829 mach_vm_address_t address = 0x0; in test_allocate_invalid_large_size() local
1830 allocate_edge_size(&address, size, KERN_NO_SPACE); in test_allocate_invalid_large_size()
1848 mach_vm_address_t address = 0x0; in test_allocate_overflowing_size() local
1850 allocate_edge_size(&address, (mach_vm_size_t)UINTMAX_MAX, KERN_INVALID_ARGUMENT); in test_allocate_overflowing_size()
1861 mach_vm_address_t address = 0x0; in test_allocate_at_zero() local
1868 assert_allocate_return(&address, size, VM_FLAGS_FIXED, kr_expected); in test_allocate_at_zero()
1871 T_QUIET; T_ASSERT_EQ(address, 0, in test_allocate_at_zero()
1874 (uintmax_t)address); in test_allocate_at_zero()
1875 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1876 deallocate_range(address, size); in test_allocate_at_zero()
1887 mach_vm_address_t address = get_fixed_address(size + vm_page_size) + vm_page_size; in test_allocate_2MB_boundary_unaligned_page_aligned_address() local
1891 (uintmax_t)address); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1899 (uintmax_t)address); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1900 assert_allocate_return(&address, size, VM_FLAGS_FIXED, kr_expected); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1903 deallocate_range(address, size); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1914 mach_vm_address_t address = (mach_vm_size_t)UINTMAX_MAX - vm_page_size + 1; in test_allocate_page_with_highest_address_hint() local
1919 (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1922 assert_allocate_success(&address, vm_page_size, VM_FLAGS_ANYWHERE); in test_allocate_page_with_highest_address_hint()
1923 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1924 assert_aligned_address(address); in test_allocate_page_with_highest_address_hint()
1925 deallocate_range(address, vm_page_size); in test_allocate_page_with_highest_address_hint()
1929 assert_allocate_return(&address, vm_page_size, VM_FLAGS_ANYWHERE, KERN_NO_SPACE); in test_allocate_page_with_highest_address_hint()
1984 access_deallocated_range_address(mach_vm_address_t address, const char * position) in access_deallocated_range_address() argument
1986 …gv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)address); in access_deallocated_range_address()
1988 mach_vm_address_t bad_value = MACH_VM_ADDRESS_T(address); in access_deallocated_range_address()
1991 (uintmax_t)bad_value, (uintmax_t)address); in access_deallocated_range_address()
2021 mach_vm_address_t address = 0x0; in test_deallocate_suicide() local
2024 …ting 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uintmax_t)address); in test_deallocate_suicide()
2025 kern_return_t kr = mach_vm_deallocate(mach_task_self(), address, size); in test_deallocate_suicide()
2029 (uintmax_t)address, (uintmax_t)size, (uintmax_t)size, mach_error_string(kr)); in test_deallocate_suicide()
2049 mach_vm_address_t address = get_vm_address(); in test_write_pattern_deallocate_reallocate_zero_filled() local
2052 write_pattern(page_ends, FALSE, address, size, "page ends"); in test_write_pattern_deallocate_reallocate_zero_filled()
2054 (uintmax_t)address); in test_write_pattern_deallocate_reallocate_zero_filled()
2056 assert_allocate_success(&address, size, VM_FLAGS_FIXED); in test_write_pattern_deallocate_reallocate_zero_filled()
2058 verify_pattern(empty, FALSE, address, size, "zero-filled"); in test_write_pattern_deallocate_reallocate_zero_filled()
2102 mach_vm_address_t address; in test_deallocate_rounded_zero_end_ranges() member
2121 kr = mach_vm_deallocate(this_task, ranges[i].address, ranges[i].size); in test_deallocate_rounded_zero_end_ranges()
2126 …(uintmax_t)ranges[i].address, (uintmax_t)ranges[i].size, (uintmax_t)ranges[i].size, mach_error_str… in test_deallocate_rounded_zero_end_ranges()
2139 mach_vm_address_t address; in test_deallocate_wrapped_around_ranges() member
2153 kr = mach_vm_deallocate(this_task, ranges[i].address, ranges[i].size); in test_deallocate_wrapped_around_ranges()
2158 …(uintmax_t)ranges[i].address, (uintmax_t)ranges[i].size, (uintmax_t)ranges[i].size, mach_error_str… in test_deallocate_wrapped_around_ranges()
2168 mach_vm_address_t address = get_vm_address(); in test_deallocate_in_null_map() local
2174 logv(" at address 0x%jx", (uintmax_t)address); in test_deallocate_in_null_map()
2177 …assert_mach_return(mach_vm_deallocate(VM_MAP_NULL, address, size), MACH_SEND_INVALID_DEST, "mach_v… in test_deallocate_in_null_map()
2191 mach_vm_address_t address = get_vm_address(); in test_read_address_offset() local
2195 assert_aligned_address(address); in test_read_address_offset()
2196 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2198 T_QUIET; T_ASSERT_EQ(((address - 1) & (vm_page_size - 1)), 0, in test_read_address_offset()
2202 (uintmax_t)address); in test_read_address_offset()
2206 (uintmax_t)address); in test_read_address_offset()
2214 mach_vm_address_t address = get_vm_address(); in test_read_null_map() local
2222 (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s", (uintmax_t)address); in test_read_null_map()
2223 …assert_mach_return(mach_vm_read(VM_MAP_NULL, address, size, &read_address, &read_size), MACH_SEND_… in test_read_null_map()
2232 mach_vm_address_t address = get_vm_address(); in test_read_partially_deallocated_range() local
2234 mach_vm_address_t mid_point = mach_vm_trunc_page(address + size / 2); in test_read_partially_deallocated_range()
2243 (uintmax_t)address); in test_read_partially_deallocated_range()
2244 assert_read_return(address, size, &read_address, &read_size, KERN_INVALID_ADDRESS); in test_read_partially_deallocated_range()
2252 mach_vm_address_t address = get_vm_address(); in test_read_partially_unreadable_range() local
2254 mach_vm_address_t mid_point = mach_vm_trunc_page(address + size / 2); in test_read_partially_unreadable_range()
2268 (uintmax_t)address); in test_read_partially_unreadable_range()
2269 assert_read_return(address, size, &read_address, &read_size, kr_expected); in test_read_partially_unreadable_range()
2331 mach_vm_address_t address; in test_read_wrapped_around_ranges() member
2347 kr = mach_vm_read(this_task, ranges[i].address, ranges[i].size, &read_address, &read_size); in test_read_wrapped_around_ranges()
2352 …(uintmax_t)ranges[i].address, (uintmax_t)ranges[i].size, (uintmax_t)ranges[i].size, mach_error_str… in test_read_wrapped_around_ranges()
2367 mach_vm_address_t address = get_vm_address(); in write_read_verify_pattern() local
2369 write_pattern(filter, reversed, address, get_vm_size(), pattern_name); in write_read_verify_pattern()
2378 …r_addresses_do_else(filter, reversed, read_address, read_size, verify_address, read_zero, address); in write_read_verify_pattern()
2408 mach_vm_address_t address = get_vm_address(); in test_write_null_map() local
2415 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in test_write_null_map()
2416 …assert_mach_return(mach_vm_write(VM_MAP_NULL, address, data, buffer_size), MACH_SEND_INVALID_DEST,… in test_write_null_map()
2436 mach_vm_address_t address = get_vm_address(); in test_write_partially_deallocated_buffer() local
2451 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in test_write_partially_deallocated_buffer()
2452 assert_write_return(address, data, buffer_size, MACH_SEND_INVALID_MEMORY); in test_write_partially_deallocated_buffer()
2460 mach_vm_address_t address = get_vm_address(); in test_write_partially_unreadable_buffer() local
2476 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in test_write_partially_unreadable_buffer()
2477 assert_write_return(address, data, buffer_size, MACH_SEND_INVALID_MEMORY); in test_write_partially_unreadable_buffer()
2485 mach_vm_address_t address = get_vm_address(); in test_write_on_partially_deallocated_range() local
2486 mach_vm_address_t start = mach_vm_trunc_page(address); in test_write_on_partially_deallocated_range()
2500 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in test_write_on_partially_deallocated_range()
2501 assert_write_return(address, data, buffer_size, KERN_INVALID_ADDRESS); in test_write_on_partially_deallocated_range()
2509 mach_vm_address_t address = get_vm_address(); in test_write_on_partially_unwritable_range() local
2510 mach_vm_address_t start = mach_vm_trunc_page(address); in test_write_on_partially_unwritable_range()
2530 (uintmax_t)data, (uintmax_t)buffer_size, (uintmax_t)buffer_size, (uintmax_t)address); in test_write_on_partially_unwritable_range()
2531 assert_write_return(address, data, buffer_size, kr_expected); in test_write_on_partially_unwritable_range()
2554 mach_vm_address_t address = get_vm_address(); in pattern_write() local
2565 pattern_name, (uintmax_t)address, (uintmax_t)buffer_size, (uintmax_t)size); in pattern_write()
2566 …filter_addresses_do_else(filter, reversed, address, buffer_size, verify_address, read_zero, buffer… in pattern_write()
2667 mach_vm_address_t address; in test_copy_wrapped_around_ranges() member
2685 kr = mach_vm_copy(this_task, ranges[i].address, ranges[i].size, dest); in test_copy_wrapped_around_ranges()
2690 …(uintmax_t)ranges[i].address, (uintmax_t)ranges[i].size, (uintmax_t)ranges[i].size, mach_error_str… in test_copy_wrapped_around_ranges()
3045 mach_vm_address_t address = get_vm_address(); in test_zero_filled_readprotect() local
3049 (size == 1) ? "" : "s", (uintmax_t)address); in test_zero_filled_readprotect()
3050 …T_QUIET; T_ASSERT_MACH_SUCCESS(mach_vm_protect(mach_task_self(), address, size, FALSE, VM_PROT_DEF… in test_zero_filled_readprotect()
3058 mach_vm_address_t address = get_vm_address(); in verify_protection() local
3068 protection_name, (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in verify_protection()
3070 …mach_vm_region(mach_task_self(), &address, &size, VM_REGION_BASIC_INFO_64, (vm_region_info_t)&info… in verify_protection()
3108 access_readprotected_range_address(mach_vm_address_t address, const char * position) in access_readprotected_range_address() argument
3110 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3111 mach_vm_address_t bad_value = MACH_VM_ADDRESS_T(address); in access_readprotected_range_address()
3114 (uintmax_t)bad_value, (uintmax_t)address); in access_readprotected_range_address()
3128 mach_vm_address_t address = get_vm_address(); in test_access_readprotected_range_middle() local
3129 …access_readprotected_range_address(mach_vm_trunc_page(address) + (aligned_size(address, get_vm_siz… in test_access_readprotected_range_middle()
3141 write_writeprotected_range_address(mach_vm_address_t address, const char * position) in write_writeprotected_range_address() argument
3143 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3144 MACH_VM_ADDRESS_T(address) = 0x0; in write_writeprotected_range_address()
3147 (uintmax_t)address); in write_writeprotected_range_address()
3161 mach_vm_address_t address = get_vm_address(); in test_write_writeprotected_range_middle() local
3162 …write_writeprotected_range_address(mach_vm_trunc_page(address) + (aligned_size(address, get_vm_siz… in test_write_writeprotected_range_middle()
3224 mach_vm_address_t address; in protect_wrapped_around_ranges() member
3239 kr = mach_vm_protect(this_task, ranges[i].address, ranges[i].size, FALSE, protection); in protect_wrapped_around_ranges()
3244 …(uintmax_t)ranges[i].address, (uintmax_t)ranges[i].size, (uintmax_t)ranges[i].size, mach_error_str… in protect_wrapped_around_ranges()
3268 assert_share_mode(mach_vm_address_t address, unsigned share_mode, const char * share_mode_name) in assert_share_mode() argument
3282 share_mode_name, (uintmax_t)address, (uintmax_t)size, (uintmax_t)size); in assert_share_mode()
3284 …mach_vm_region(mach_task_self(), &address, &size, VM_REGION_EXTENDED_INFO, (vm_region_info_t)&info… in assert_share_mode()
3315 write_region(mach_vm_address_t address, mach_vm_size_t start) in write_region() argument
3319 filter_addresses_do_else(empty, FALSE, address, size, write_address, write_address, start); in write_region()
3323 verify_region(mach_vm_address_t address, mach_vm_address_t start) in verify_region() argument
3327 filter_addresses_do_else(empty, FALSE, address, size, verify_address, verify_address, start); in verify_region()