Searched refs:ptr_reg (Results 1 – 1 of 1) sorted by relevance
5236 struct bpf_reg_state *ptr_reg = NULL, *value_reg = NULL; in check_stack_write_var_off() local5245 ptr_reg = &cur->regs[ptr_regno]; in check_stack_write_var_off()5246 min_off = ptr_reg->smin_value + off; in check_stack_write_var_off()5247 max_off = ptr_reg->smax_value + off + size; in check_stack_write_var_off()14339 static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, in retrieve_ptr_limit() argument14344 switch (ptr_reg->type) { in retrieve_ptr_limit()14352 ptr_limit = -(ptr_reg->var_off.value + ptr_reg->off); in retrieve_ptr_limit()14355 max = ptr_reg->map_ptr->value_size; in retrieve_ptr_limit()14357 ptr_reg->smin_value : in retrieve_ptr_limit()14358 ptr_reg->umax_value) + ptr_reg->off; in retrieve_ptr_limit()[all …]