• Home
  • Raw
  • Download

Lines Matching refs:reorder_access

394 	return ctx->disable_scoped ? NULL : &ctx->reorder_access;  in get_reorder_access()
404 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in find_reorder_access() local
406 if (!reorder_access) in find_reorder_access()
413 return reorder_access->ptr == ptr && reorder_access->size == size && in find_reorder_access()
414 reorder_access->type == type && reorder_access->ip == ip; in find_reorder_access()
421 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in set_reorder_access() local
423 if (!reorder_access || !kcsan_weak_memory) in set_reorder_access()
433 reorder_access->ptr = ptr; in set_reorder_access()
434 reorder_access->size = size; in set_reorder_access()
435 reorder_access->type = type | KCSAN_ACCESS_SCOPED; in set_reorder_access()
436 reorder_access->ip = ip; in set_reorder_access()
437 reorder_access->stack_depth = get_kcsan_stack_depth(); in set_reorder_access()
758 struct kcsan_scoped_access *reorder_access = get_reorder_access(ctx); in check_access() local
760 if (reorder_access) { in check_access()
765 ptr = reorder_access->ptr; in check_access()
766 type = reorder_access->type; in check_access()
767 ip = reorder_access->ip; in check_access()
777 size = READ_ONCE(reorder_access->size); in check_access()
1113 struct kcsan_scoped_access *reorder_access; in __tsan_func_exit() local
1118 reorder_access = get_reorder_access(get_ctx()); in __tsan_func_exit()
1119 if (!reorder_access) in __tsan_func_exit()
1122 if (get_kcsan_stack_depth() <= reorder_access->stack_depth) { in __tsan_func_exit()
1130 check_access(reorder_access->ptr, reorder_access->size, in __tsan_func_exit()
1131 reorder_access->type, reorder_access->ip); in __tsan_func_exit()
1132 reorder_access->size = 0; in __tsan_func_exit()
1133 reorder_access->stack_depth = INT_MIN; in __tsan_func_exit()