Home
last modified time | relevance | path

Searched refs:cur_mte_cxt (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/tools/testing/selftests/arm64/mte/
Dmte_common_util.c24 struct mte_fault_cxt cur_mte_cxt; variable
38 if (cur_mte_cxt.trig_si_code == si->si_code) in mte_default_handler()
39 cur_mte_cxt.fault_valid = true; in mte_default_handler()
44 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler()
45 ((cur_mte_cxt.trig_range >= 0 && in mte_default_handler()
46 addr >= MT_CLEAR_TAG(cur_mte_cxt.trig_addr) && in mte_default_handler()
47 addr <= (MT_CLEAR_TAG(cur_mte_cxt.trig_addr) + cur_mte_cxt.trig_range)) || in mte_default_handler()
48 (cur_mte_cxt.trig_range < 0 && in mte_default_handler()
49 addr <= MT_CLEAR_TAG(cur_mte_cxt.trig_addr) && in mte_default_handler()
50 addr >= (MT_CLEAR_TAG(cur_mte_cxt.trig_addr) + cur_mte_cxt.trig_range)))) { in mte_default_handler()
[all …]
Dcheck_buffer_fill.c46 err = cur_mte_cxt.fault_valid; in check_buffer_by_byte()
84 (cur_mte_cxt.fault_valid == false); j--) { in check_buffer_underflow_by_byte()
104 if (cur_mte_cxt.fault_valid == true || last_index != -underflow_range) { in check_buffer_underflow_by_byte()
119 if (cur_mte_cxt.fault_valid == false) { in check_buffer_underflow_by_byte()
137 if (!cur_mte_cxt.fault_valid || (last_index != (-1))) { in check_buffer_underflow_by_byte()
182 (cur_mte_cxt.fault_valid == false); j++) { in check_buffer_overflow_by_byte()
204 if ((cur_mte_cxt.fault_valid == true) || in check_buffer_overflow_by_byte()
220 if (cur_mte_cxt.fault_valid == false) { in check_buffer_overflow_by_byte()
238 if (!cur_mte_cxt.fault_valid || (last_index != tagged_size)) { in check_buffer_overflow_by_byte()
307 cur_mte_cxt.fault_valid = false; in check_buffer_by_block_iterate()
[all …]
Dcheck_mmap_options.c38 if (cur_mte_cxt.fault_valid == true) in check_mte_memory()
44 if (cur_mte_cxt.fault_valid == false && tag_check == TAG_CHECK_ON) in check_mte_memory()
46 if (cur_mte_cxt.fault_valid == true && tag_check == TAG_CHECK_OFF) in check_mte_memory()
52 if (cur_mte_cxt.fault_valid == false && tag_check == TAG_CHECK_ON) in check_mte_memory()
54 if (cur_mte_cxt.fault_valid == true && tag_check == TAG_CHECK_OFF) in check_mte_memory()
78 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_anonymous_memory_mapping()
115 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_file_memory_mapping()
Dcheck_user_mem.c47 if (cur_mte_cxt.fault_valid || read_len < len) in check_usermem_access_fault()
71 !cur_mte_cxt.fault_valid && read_len < len) { in check_usermem_access_fault()
74 !cur_mte_cxt.fault_valid && read_len == len) { in check_usermem_access_fault()
Dcheck_tags_inclusion.c28 if (cur_mte_cxt.fault_valid) in verify_mte_pointer_validity()
37 if (!cur_mte_cxt.fault_valid) in verify_mte_pointer_validity()
152 if (cur_mte_cxt.fault_valid) in check_none_included_tags()
156 if (cur_mte_cxt.fault_valid) in check_none_included_tags()
Dcheck_child_memory.c46 if (cur_mte_cxt.fault_valid == true) { in check_child_tag_inheritance()
61 if (cur_mte_cxt.fault_valid == false) { in check_child_tag_inheritance()
68 if (cur_mte_cxt.fault_valid == false) { in check_child_tag_inheritance()
128 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_child_file_mapping()
Dmte_common_util.h39 extern struct mte_fault_cxt cur_mte_cxt;