Lines Matching refs:reorder_access
385 return ctx->disable_scoped ? NULL : &ctx->reorder_access; in get_reorder_access()
395 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in find_reorder_access() local
397 if (!reorder_access) in find_reorder_access()
404 return reorder_access->ptr == ptr && reorder_access->size == size && in find_reorder_access()
405 reorder_access->type == type && reorder_access->ip == ip; in find_reorder_access()
412 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in set_reorder_access() local
414 if (!reorder_access || !kcsan_weak_memory) in set_reorder_access()
424 reorder_access->ptr = ptr; in set_reorder_access()
425 reorder_access->size = size; in set_reorder_access()
426 reorder_access->type = type | KCSAN_ACCESS_SCOPED; in set_reorder_access()
427 reorder_access->ip = ip; in set_reorder_access()
428 reorder_access->stack_depth = get_kcsan_stack_depth(); in set_reorder_access()
749 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in check_access() local
751 if (reorder_access) { in check_access()
756 ptr = reorder_access->ptr; in check_access()
757 type = reorder_access->type; in check_access()
758 ip = reorder_access->ip; in check_access()
768 size = READ_ONCE(reorder_access->size); in check_access()
1104 struct kcsan_scoped_access *reorder_access; in __tsan_func_exit() local
1109 reorder_access = get_reorder_access(get_ctx()); in __tsan_func_exit()
1110 if (!reorder_access) in __tsan_func_exit()
1113 if (get_kcsan_stack_depth() <= reorder_access->stack_depth) { in __tsan_func_exit()
1121 check_access(reorder_access->ptr, reorder_access->size, in __tsan_func_exit()
1122 reorder_access->type, reorder_access->ip); in __tsan_func_exit()
1123 reorder_access->size = 0; in __tsan_func_exit()
1124 reorder_access->stack_depth = INT_MIN; in __tsan_func_exit()