• Home
  • Raw
  • Download

Lines Matching refs:ptr

29 static int check_child_tag_inheritance(char *ptr, int size, int mode)  in check_child_tag_inheritance()  argument
34 parent_tag = MT_FETCH_TAG((uintptr_t)ptr); in check_child_tag_inheritance()
42 mte_initialize_current_context(mode, (uintptr_t)ptr, size); in check_child_tag_inheritance()
44 memset(ptr, '1', size); in check_child_tag_inheritance()
51 child_tag = MT_FETCH_TAG((uintptr_t)(mte_get_tag_address(ptr + i))); in check_child_tag_inheritance()
58 mte_initialize_current_context(mode, (uintptr_t)ptr, -UNDERFLOW); in check_child_tag_inheritance()
59 memset(ptr - UNDERFLOW, '2', UNDERFLOW); in check_child_tag_inheritance()
65 mte_initialize_current_context(mode, (uintptr_t)ptr, size + OVERFLOW); in check_child_tag_inheritance()
66 memset(ptr + size, '3', OVERFLOW); in check_child_tag_inheritance()
86 char *ptr; in check_child_memory_mapping() local
93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping()
95 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_child_memory_mapping()
98 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_memory_mapping()
99 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW); in check_child_memory_mapping()
108 char *ptr, *map_ptr; in check_child_file_mapping() local
124 ptr = map_ptr + UNDERFLOW; in check_child_file_mapping()
125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping()
127 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_child_file_mapping()
128 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_child_file_mapping()
134 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_file_mapping()
135 mte_clear_tags((void *)ptr, sizes[run]); in check_child_file_mapping()