Home
last modified time | relevance | path

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

/linux-6.6.21/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()
48 if (cur_mte_cxt.trig_si_code == si->si_code && in mte_default_handler()
49 ((cur_mte_cxt.trig_range >= 0 && in mte_default_handler()
50 addr >= MT_CLEAR_TAG(cur_mte_cxt.trig_addr) && in mte_default_handler()
51 addr <= (MT_CLEAR_TAG(cur_mte_cxt.trig_addr) + cur_mte_cxt.trig_range)) || in mte_default_handler()
52 (cur_mte_cxt.trig_range < 0 && in mte_default_handler()
53 addr <= MT_CLEAR_TAG(cur_mte_cxt.trig_addr) && in mte_default_handler()
54 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); 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()
77 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_anonymous_memory_mapping()
114 if (!ptr || cur_mte_cxt.fault_valid == true) { in check_file_memory_mapping()
Dcheck_tags_inclusion.c28 if (cur_mte_cxt.fault_valid) { in verify_mte_pointer_validity()
40 if (!cur_mte_cxt.fault_valid) { in verify_mte_pointer_validity()
164 if (cur_mte_cxt.fault_valid) in check_none_included_tags()
168 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()
Dcheck_user_mem.c64 if (cur_mte_cxt.fault_valid || syscall_len < len) in check_usermem_access_fault()
118 if (cur_mte_cxt.fault_valid) { in check_usermem_access_fault()
Dmte_common_util.h39 extern struct mte_fault_cxt cur_mte_cxt;