• Home
  • Raw
  • Download

Lines Matching refs:src

706 			       const struct bpf_func_state *src)	\
708 if (!src->FIELD) \
710 if (WARN_ON_ONCE(dst->COUNT < src->COUNT)) { \
715 memcpy(dst->FIELD, src->FIELD, \
716 sizeof(*src->FIELD) * (src->COUNT / SIZE)); \
822 struct bpf_func_state *src) in transfer_reference_state() argument
824 int err = realloc_reference_state(dst, src->acquired_refs, false); in transfer_reference_state()
827 err = copy_reference_state(dst, src); in transfer_reference_state()
867 const struct bpf_func_state *src) in copy_func_state() argument
871 err = realloc_func_state(dst, src->allocated_stack, src->acquired_refs, in copy_func_state()
875 memcpy(dst, src, offsetof(struct bpf_func_state, acquired_refs)); in copy_func_state()
876 err = copy_reference_state(dst, src); in copy_func_state()
879 return copy_stack_state(dst, src); in copy_func_state()
883 const struct bpf_verifier_state *src) in copy_verifier_state() argument
886 u32 jmp_sz = sizeof(struct bpf_idx_pair) * src->jmp_history_cnt; in copy_verifier_state()
889 if (dst_state->jmp_history_cnt < src->jmp_history_cnt) { in copy_verifier_state()
895 memcpy(dst_state->jmp_history, src->jmp_history, jmp_sz); in copy_verifier_state()
896 dst_state->jmp_history_cnt = src->jmp_history_cnt; in copy_verifier_state()
899 for (i = src->curframe + 1; i <= dst_state->curframe; i++) { in copy_verifier_state()
903 dst_state->speculative = src->speculative; in copy_verifier_state()
904 dst_state->curframe = src->curframe; in copy_verifier_state()
905 dst_state->active_spin_lock = src->active_spin_lock; in copy_verifier_state()
906 dst_state->branches = src->branches; in copy_verifier_state()
907 dst_state->parent = src->parent; in copy_verifier_state()
908 dst_state->first_insn_idx = src->first_insn_idx; in copy_verifier_state()
909 dst_state->last_insn_idx = src->last_insn_idx; in copy_verifier_state()
910 for (i = 0; i <= src->curframe; i++) { in copy_verifier_state()
918 err = copy_func_state(dst, src->frame[i]); in copy_verifier_state()
2440 static void copy_register_state(struct bpf_reg_state *dst, const struct bpf_reg_state *src) in copy_register_state() argument
2445 *dst = *src; in copy_register_state()
3910 enum stack_access_src src, enum bpf_access_type type) in check_stack_access_within_bounds() argument
3919 if (src == ACCESS_HELPER) in check_stack_access_within_bounds()
6102 u32 dst = insn->dst_reg, src = insn->src_reg; in sanitize_err() local
6107 off_reg == dst_reg ? dst : src, err); in sanitize_err()
6111 off_reg == dst_reg ? src : dst, err); in sanitize_err()
9997 static bool reg_type_mismatch(enum bpf_reg_type src, enum bpf_reg_type prev) in reg_type_mismatch() argument
9999 return src != prev && (!reg_type_mismatch_ok(src) || in reg_type_mismatch()