Lines Matching +full:sync +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
34 static int check_usermem_access_fault(int mem_type, int mode, int mapping, in check_usermem_access_fault() argument
47 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG); in check_usermem_access_fault()
49 if (fd == -1) in check_usermem_access_fault()
60 mte_initialize_current_context(mode, (uintptr_t)ptr, len); in check_usermem_access_fault()
74 tag_len = len - tag_offset; in check_usermem_access_fault()
114 * Accessing user memory in kernel with invalid tag should fail in sync in check_usermem_access_fault()
115 * mode without fault but may not fail in async mode as per the in check_usermem_access_fault()
121 if (mode == MTE_SYNC_ERR && syscall_len < len) { in check_usermem_access_fault()
123 } else if (mode == MTE_ASYNC_ERR && syscall_len == size) { in check_usermem_access_fault()
142 void format_test_name(char* name, int name_len, int type, int sync, int map, int len, int offset) { in format_test_name() argument
165 switch (sync) { in format_test_name()
224 int sync = mte_sync[s]; in main() local
228 int res = check_usermem_access_fault(USE_MMAP, sync, in main()
232 t, sync, map, tag_len, offset); in main()