Lines Matching refs:verbose
345 __printf(2, 3) static void verbose(void *private_data, const char *fmt, ...) in verbose() function
400 verbose(env, "%s\n", in verbose_linfo()
414 verbose(env, "At %s the register %s ", ctx, reg_name); in verbose_invalid_scalar()
417 verbose(env, "has value %s", tn_buf); in verbose_invalid_scalar()
419 verbose(env, "has unknown scalar value"); in verbose_invalid_scalar()
422 verbose(env, " should have been in %s\n", tn_buf); in verbose_invalid_scalar()
593 verbose(env, "_"); in print_liveness()
595 verbose(env, "r"); in print_liveness()
597 verbose(env, "w"); in print_liveness()
599 verbose(env, "D"); in print_liveness()
623 verbose(env, " frame%d:", state->frameno); in print_verifier_state()
629 verbose(env, " R%d", i); in print_verifier_state()
631 verbose(env, "=%s", reg_type_str[t]); in print_verifier_state()
633 verbose(env, "P"); in print_verifier_state()
637 verbose(env, "%lld", reg->var_off.value + reg->off); in print_verifier_state()
642 verbose(env, "%s", kernel_type_name(reg->btf, reg->btf_id)); in print_verifier_state()
643 verbose(env, "(id=%d", reg->id); in print_verifier_state()
645 verbose(env, ",ref_obj_id=%d", reg->ref_obj_id); in print_verifier_state()
647 verbose(env, ",off=%d", reg->off); in print_verifier_state()
649 verbose(env, ",r=%d", reg->range); in print_verifier_state()
654 verbose(env, ",ks=%d,vs=%d", in print_verifier_state()
662 verbose(env, ",imm=%llx", reg->var_off.value); in print_verifier_state()
666 verbose(env, ",smin_value=%lld", in print_verifier_state()
670 verbose(env, ",smax_value=%lld", in print_verifier_state()
673 verbose(env, ",umin_value=%llu", in print_verifier_state()
676 verbose(env, ",umax_value=%llu", in print_verifier_state()
682 verbose(env, ",var_off=%s", tn_buf); in print_verifier_state()
686 verbose(env, ",s32_min_value=%d", in print_verifier_state()
690 verbose(env, ",s32_max_value=%d", in print_verifier_state()
694 verbose(env, ",u32_min_value=%d", in print_verifier_state()
698 verbose(env, ",u32_max_value=%d", in print_verifier_state()
701 verbose(env, ")"); in print_verifier_state()
718 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
723 verbose(env, "=%s", reg_type_str[t]); in print_verifier_state()
725 verbose(env, "P"); in print_verifier_state()
727 verbose(env, "%lld", reg->var_off.value + reg->off); in print_verifier_state()
729 verbose(env, "=%s", types_buf); in print_verifier_state()
733 verbose(env, " refs=%d", state->refs[0].id); in print_verifier_state()
736 verbose(env, ",%d", state->refs[i].id); in print_verifier_state()
739 verbose(env, " cb"); in print_verifier_state()
741 verbose(env, " async_cb"); in print_verifier_state()
742 verbose(env, "\n"); in print_verifier_state()
1039 verbose(env, "The sequence of %d jumps is too complex.\n", in push_stack()
1125 verbose(env, "mark_reg_known_zero(regs, %u)\n", regno); in mark_reg_known_zero()
1459 verbose(env, "mark_reg_unknown(regs, %u)\n", regno); in mark_reg_unknown()
1479 verbose(env, "mark_reg_not_init(regs, %u)\n", regno); in mark_reg_not_init()
1553 verbose(env, in push_async_cb()
1612 verbose(env, "call to invalid destination\n"); in add_subprog()
1619 verbose(env, "too many subprograms\n"); in add_subprog()
1677 verbose(env, "calling kernel function is not supported without CONFIG_DEBUG_INFO_BTF\n"); in add_kfunc_call()
1682 verbose(env, "JIT is required for calling kernel function\n"); in add_kfunc_call()
1687 verbose(env, "JIT does not support calling kernel function\n"); in add_kfunc_call()
1692 verbose(env, "cannot call kernel function from non-GPL compatible program\n"); in add_kfunc_call()
1706 verbose(env, "too many different kernel function calls\n"); in add_kfunc_call()
1712 verbose(env, "kernel btf_id %u is not a function\n", in add_kfunc_call()
1718 verbose(env, "kernel function btf_id %u does not have a valid func_proto\n", in add_kfunc_call()
1726 verbose(env, "cannot find address for kernel function %s\n", in add_kfunc_call()
1806 …verbose(env, "loading/calling other bpf or kernel functions are allowed for CAP_BPF and CAP_SYS_AD… in add_subprog_and_kfunc()
1832 verbose(env, "func#%d @%d\n", i, subprog[i].start); in add_subprog_and_kfunc()
1863 verbose(env, "jump out of range from insn %d to %d\n", i, off); in check_subprogs()
1874 verbose(env, "last insn is not an exit or jmp\n"); in check_subprogs()
1901 verbose(env, "verifier BUG type %s var_off %lld off %d\n", in mark_reg_read()
2082 verbose(env, "R%d is invalid\n", regno); in check_reg_arg()
2091 verbose(env, "R%d !read_ok\n", regno); in check_reg_arg()
2106 verbose(env, "frame pointer is read only\n"); in check_reg_arg()
2172 .cb_print = verbose, in backtrack_insn()
2186 verbose(env, "regs=%x stack=%llx before ", *reg_mask, *stack_mask); in backtrack_insn()
2187 verbose(env, "%d: ", idx); in backtrack_insn()
2244 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2263 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2282 verbose(env, "BUG regs %x\n", *reg_mask); in backtrack_insn()
2444 verbose(env, "last_idx %d first_idx %d\n", last_idx, first_idx); in __mark_chain_precision()
2474 verbose(env, "BUG backtracking idx %d\n", i); in __mark_chain_precision()
2532 verbose(env, "parent %s regs=%x stack=%llx marks\n", in __mark_chain_precision()
2663 verbose(env, "attempt to corrupt spilled pointer on stack\n"); in check_stack_write_fixed_off()
2702 verbose(env, "invalid size of register spill\n"); in check_stack_write_fixed_off()
2706 verbose(env, "cannot spill pointers to stack into stack frame of the caller\n"); in check_stack_write_fixed_off()
2815 verbose(env, "spilled ptr in range of var-offset stack write; insn %d, ptr off: %d", in check_stack_write_var_off()
2838 verbose(env, "uninit stack in range of var-offset write prohibited for !root; insn %d, off: %d", in check_stack_write_var_off()
2930 verbose(env, "invalid size of register fill\n"); in check_stack_read_fixed_off()
2942 verbose(env, "corrupted spill memory\n"); in check_stack_read_fixed_off()
2962 verbose(env, "leaking pointer from stack off %d\n", in check_stack_read_fixed_off()
2976 verbose(env, "invalid read from stack off %d+%d size %d\n", in check_stack_read_fixed_off()
3065 …verbose(env, "variable offset stack pointer cannot be passed into helper function; var_off=%s off=… in check_stack_read()
3077 verbose(env, "R%d variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_read()
3139 verbose(env, "write into map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3145 verbose(env, "read from map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3167 verbose(env, "invalid access to map key, key_size=%d off=%d size=%d\n", in __check_mem_access()
3171 verbose(env, "invalid access to map value, value_size=%d off=%d size=%d\n", in __check_mem_access()
3177 verbose(env, "invalid access to packet, off=%d size=%d, R%d(id=%d,off=%d,r=%d)\n", in __check_mem_access()
3182 verbose(env, "invalid access to memory, mem_size=%u off=%d size=%d\n", in __check_mem_access()
3216 …verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_mem_region_access()
3223 verbose(env, "R%d min value is outside of the allowed memory range\n", in check_mem_region_access()
3233 verbose(env, "R%d unbounded memory access, make sure to bounds check any such access\n", in check_mem_region_access()
3240 verbose(env, "R%d max value is outside of the allowed memory range\n", in check_mem_region_access()
3273 verbose(env, "bpf_spin_lock cannot be accessed directly by load/store\n"); in check_map_access()
3282 verbose(env, "bpf_timer cannot be accessed directly by load/store\n"); in check_map_access()
3354 …verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_packet_access()
3363 verbose(env, "R%d offset is outside of the packet\n", regno); in check_packet_access()
3413 verbose(env, "invalid bpf_context access off=%d size=%d\n", off, size); in check_ctx_access()
3422 verbose(env, "invalid access to flow keys off=%d size=%d\n", in check_flow_keys_access()
3439 …verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_sock_access()
3468 verbose(env, "R%d invalid %s access off=%d size=%d\n", in check_sock_access()
3534 verbose(env, in check_pkt_ptr_alignment()
3559 verbose(env, "misaligned %saccess off %s+%d+%d size %d\n", in check_generic_ptr_alignment()
3671 verbose(env, in check_max_stack_depth()
3681 verbose(env, "combined stack size of %d calls is %d. Too large\n", in check_max_stack_depth()
3706 verbose(env, "verifier bug. subprog has tail_call and async cb\n"); in check_max_stack_depth()
3719 verbose(env, "the call stack of %d frames is too deep !\n", in check_max_stack_depth()
3772 verbose(env, "dereference of modified ctx ptr R%d off=%d disallowed\n", in check_ctx_reg()
3781 verbose(env, "variable ctx access var_off=%s disallowed\n", tn_buf); in check_ctx_reg()
3794 verbose(env, in __check_buffer_access()
3803 verbose(env, in __check_buffer_access()
3933 verbose(env, in check_ptr_to_btf_access()
3942 verbose(env, in check_ptr_to_btf_access()
3953 verbose(env, "only read is supported\n"); in check_ptr_to_btf_access()
3984 verbose(env, "map_ptr access not supported without CONFIG_DEBUG_INFO_BTF\n"); in check_ptr_to_map_access()
3989 verbose(env, "map_ptr access not supported for map type %d\n", in check_ptr_to_map_access()
3998 verbose(env, in check_ptr_to_map_access()
4005 verbose(env, "R%d is %s invalid negative access: off=%d\n", in check_ptr_to_map_access()
4011 verbose(env, "only read from %s is supported\n", tname); in check_ptr_to_map_access()
4081 verbose(env, "invalid unbounded variable-offset%s stack R%d\n", in check_stack_access_within_bounds()
4098 verbose(env, "invalid%s stack R%d off=%d size=%d\n", in check_stack_access_within_bounds()
4104 verbose(env, "invalid variable-offset%s stack R%d var_off=%s size=%d\n", in check_stack_access_within_bounds()
4140 verbose(env, "write to change key R%d not allowed\n", regno); in check_mem_access()
4153 verbose(env, "R%d leaks addr into map\n", value_regno); in check_mem_access()
4184 verbose(env, "R%d leaks addr into mem\n", value_regno); in check_mem_access()
4198 verbose(env, "R%d leaks addr into ctx\n", value_regno); in check_mem_access()
4255 verbose(env, "cannot write into packet\n"); in check_mem_access()
4260 verbose(env, "R%d leaks addr into packet\n", in check_mem_access()
4270 verbose(env, "R%d leaks addr into flow keys\n", in check_mem_access()
4280 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4299 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4315 verbose(env, "R%d invalid mem access '%s'\n", regno, in check_mem_access()
4346 verbose(env, "BPF_ATOMIC uses invalid atomic opcode %02x\n", insn->imm); in check_atomic()
4351 verbose(env, "invalid atomic operand size\n"); in check_atomic()
4373 verbose(env, "R%d leaks addr into mem\n", insn->src_reg); in check_atomic()
4381 verbose(env, "BPF_ATOMIC stores into R%d %s is not allowed\n", in check_atomic()
4444 verbose(env, "invalid zero-sized read\n"); in check_stack_range_initialized()
4476 verbose(env, "R%d%s variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_range_initialized()
4534 verbose(env, "invalid%s read from stack R%d off %d+%d size %d\n", in check_stack_range_initialized()
4540 verbose(env, "invalid%s read from stack R%d var_off %s+%d size %d\n", in check_stack_range_initialized()
4603 verbose(env, "R%d type=%s expected=%s\n", regno, in check_helper_mem_access()
4662 verbose(env, in process_spin_lock()
4668 verbose(env, in process_spin_lock()
4675 verbose(env, in process_spin_lock()
4679 verbose(env, in process_spin_lock()
4683 verbose(env, in process_spin_lock()
4689 verbose(env, "off %lld doesn't point to 'struct bpf_spin_lock'\n", in process_spin_lock()
4695 verbose(env, in process_spin_lock()
4702 verbose(env, "bpf_spin_unlock without taking a lock\n"); in process_spin_lock()
4706 verbose(env, "bpf_spin_unlock of different lock\n"); in process_spin_lock()
4723 verbose(env, in process_timer_func()
4729 verbose(env, "map '%s' has to have BTF in order to use bpf_timer\n", in process_timer_func()
4735 verbose(env, in process_timer_func()
4739 verbose(env, in process_timer_func()
4743 verbose(env, in process_timer_func()
4749 verbose(env, "off %lld doesn't point to 'struct bpf_timer' that is at %d\n", in process_timer_func()
4754 verbose(env, "verifier bug. Two map pointers in a timer helper\n"); in process_timer_func()
4802 verbose(env, "invalid map_ptr to access map->type\n"); in resolve_map_arg_type()
4812 verbose(env, "invalid arg_type for sockmap/sockhash\n"); in resolve_map_arg_type()
4940 verbose(env, "verifier internal error: unsupported arg type %d\n", arg_type); in check_reg_type()
4953 verbose(env, "R%d type=%s expected=", regno, reg_type_str[type]); in check_reg_type()
4955 verbose(env, "%s, ", reg_type_str[compatible->types[j]]); in check_reg_type()
4956 verbose(env, "%s\n", reg_type_str[compatible->types[j]]); in check_reg_type()
4963 verbose(env, "verifier internal error: missing arg compatible BTF ID\n"); in check_reg_type()
4971 verbose(env, "R%d is of type %s but %s is expected\n", in check_reg_type()
4978 verbose(env, "R%d is a pointer to in-kernel struct with non-zero offset\n", in check_reg_type()
5006 verbose(env, "R%d leaks addr into helper function\n", in check_func_arg()
5015 verbose(env, "helper access to the packet is not allowed\n"); in check_func_arg()
5046 verbose(env, "verifier internal error: more than one arg with ref_obj_id R%d %u %u\n", in check_func_arg()
5071 verbose(env, in check_func_arg()
5090 verbose(env, "invalid map_ptr to access map->key\n"); in check_func_arg()
5105 verbose(env, "invalid map_ptr to access map->value\n"); in check_func_arg()
5114 verbose(env, "Helper has invalid btf_id in R%d\n", regno); in check_func_arg()
5127 verbose(env, "verifier internal error\n"); in check_func_arg()
5165 verbose(env, "R%d min value is negative, either use unsigned or 'var &= const'\n", in check_func_arg()
5179 verbose(env, "R%d unbounded memory access, use 'var &= const' or 'if (var < const)'\n", in check_func_arg()
5190 verbose(env, "R%d is not a known constant'\n", in check_func_arg()
5209 verbose(env, "R%d does not point to a readonly map'\n", regno); in check_func_arg()
5214 verbose(env, "R%d is not a constant address'\n", regno); in check_func_arg()
5219 verbose(env, "no direct value access support for this map type\n"); in check_func_arg()
5231 verbose(env, "direct value access on string failed\n"); in check_func_arg()
5237 verbose(env, "string is not zero-terminated\n"); in check_func_arg()
5273 verbose(env, "cannot update sockmap in this context\n"); in may_update_sockmap()
5401 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in check_map_func_compatibility()
5486 verbose(env, "cannot pass map_type %d into func %s#%d\n", in check_map_func_compatibility()
5713 verbose(env, "the call stack of %d frames is too deep\n", in __check_func_call()
5720 verbose(env, "verifier bug. Frame %d already allocated\n", in __check_func_call()
5733 verbose(env, "Caller passes invalid args into func#%d\n", in __check_func_call()
5738 verbose(env, in __check_func_call()
5810 verbose(env, "caller:\n"); in __check_func_call()
5812 verbose(env, "callee:\n"); in __check_func_call()
5867 verbose(env, "verifier bug. No program starts at insn %d\n", in check_func_call()
5885 verbose(env, "tail_call abusing map_ptr\n"); in set_map_elem_callback_state()
5892 verbose(env, "callback function not allowed for map\n"); in set_map_elem_callback_state()
5949 verbose(env, "cannot return stack pointer to the caller\n"); in prepare_func_exit()
5960 verbose(env, "R0 not a scalar value\n"); in prepare_func_exit()
5979 verbose(env, "returning from callee:\n"); in prepare_func_exit()
5981 verbose(env, "to caller at %d:\n", *insn_idx); in prepare_func_exit()
6032 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_map()
6045 verbose(env, "write into map forbidden\n"); in record_func_map()
6072 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_key()
6103 verbose(env, "Unreleased reference id=%d alloc_insn=%d\n", in check_reference_leak()
6131 verbose(env, "verifier bug\n"); in check_bpf_snprintf_call()
6141 verbose(env, "Invalid format string\n"); in check_bpf_snprintf_call()
6155 verbose(env, "func %s#%d supported only for fentry/fexit/fmod_ret programs\n", in check_get_func_ip()
6164 verbose(env, "func %s#%d not supported for program type %d\n", in check_get_func_ip()
6182 verbose(env, "invalid func %s#%d\n", func_id_name(func_id), in check_helper_call()
6190 verbose(env, "unknown func %s#%d\n", func_id_name(func_id), in check_helper_call()
6197 verbose(env, "cannot call GPL-restricted function from non-GPL compatible program\n"); in check_helper_call()
6202 verbose(env, "helper call is not allowed in probe\n"); in check_helper_call()
6209 verbose(env, "kernel subsystem misconfigured func %s#%d: r1 != ctx\n", in check_helper_call()
6219 verbose(env, "kernel subsystem misconfigured func %s#%d\n", in check_helper_call()
6253 verbose(env, "tail_call would lead to reference leak\n"); in check_helper_call()
6259 verbose(env, "func %s#%d reference has not been acquired before\n", in check_helper_call()
6272 verbose(env, "get_local_storage() doesn't support non-zero flags\n"); in check_helper_call()
6320 verbose(env, in check_helper_call()
6361 verbose(env, "unable to resolve the size of type '%s': %ld\n", in check_helper_call()
6386 verbose(env, "invalid return type %d of func %s#%d\n", in check_helper_call()
6396 verbose(env, "unknown return type %d of func %s#%d\n", in check_helper_call()
6437 verbose(env, err_str, func_id_name(func_id), func_id); in check_helper_call()
6498 verbose(env, "calling kernel function %s is not allowed\n", in check_kfunc_call()
6522 verbose(env, "kernel function %s returns pointer type %s %s is not supported\n", in check_kfunc_call()
6599 verbose(env, "math between %s pointer and %lld is not allowed\n", in check_reg_sane_offset()
6605 verbose(env, "%s pointer offset %d is not allowed\n", in check_reg_sane_offset()
6611 verbose(env, "math between %s pointer and register with unbounded min value is not allowed\n", in check_reg_sane_offset()
6617 verbose(env, "value %lld makes %s pointer be out of bounds\n", in check_reg_sane_offset()
6854 verbose(env, "R%d has unknown scalar with mixed signed bounds, %s\n", in sanitize_err()
6858 verbose(env, "R%d has pointer with unsupported alu operation, %s\n", in sanitize_err()
6862 verbose(env, "R%d tried to %s from different maps, paths or scalars, %s\n", in sanitize_err()
6866 verbose(env, "R%d tried to %s beyond pointer bounds, %s\n", in sanitize_err()
6870 verbose(env, "R%d could not be pushed for speculative verification, %s\n", in sanitize_err()
6874 verbose(env, "verifier internal error: unknown reason (%d)\n", in sanitize_err()
6902 verbose(env, "R%d variable stack access prohibited for !root, var_off=%s off=%d\n", in check_stack_access_for_ptr_arithmetic()
6908 verbose(env, "R%d stack pointer arithmetic goes out of range, " in check_stack_access_for_ptr_arithmetic()
6936 verbose(env, "R%d pointer arithmetic of map value goes out of range, " in sanitize_check_bounds()
6989 verbose(env, in adjust_ptr_min_max_vals()
6997 verbose(env, "R%d pointer arithmetic on %s prohibited, null-check it first\n", in adjust_ptr_min_max_vals()
7013 verbose(env, "R%d pointer arithmetic on %s prohibited\n", in adjust_ptr_min_max_vals()
7094 verbose(env, "R%d tried to subtract pointer from scalar\n", in adjust_ptr_min_max_vals()
7103 verbose(env, "R%d subtraction from stack pointer prohibited\n", in adjust_ptr_min_max_vals()
7155 verbose(env, "R%d bitwise operator %s on pointer prohibited\n", in adjust_ptr_min_max_vals()
7160 verbose(env, "R%d pointer arithmetic with %s operator prohibited\n", in adjust_ptr_min_max_vals()
7950 verbose(env, "R%d pointer %s pointer prohibited\n", in adjust_reg_min_max_vals()
7988 verbose(env, "verifier internal error: unexpected ptr_reg\n"); in adjust_reg_min_max_vals()
7993 verbose(env, "verifier internal error: no src_reg\n"); in adjust_reg_min_max_vals()
8011 verbose(env, "BPF_NEG uses reserved fields\n"); in check_alu_op()
8018 verbose(env, "BPF_END uses reserved fields\n"); in check_alu_op()
8029 verbose(env, "R%d pointer arithmetic prohibited\n", in check_alu_op()
8043 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
8053 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
8083 verbose(env, in check_alu_op()
8119 verbose(env, "invalid BPF_ALU opcode %x\n", opcode); in check_alu_op()
8126 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
8135 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
8147 verbose(env, "div by zero\n"); in check_alu_op()
8156 verbose(env, "invalid shift %d\n", insn->imm); in check_alu_op()
8953 verbose(env, "invalid BPF_JMP/JMP32 opcode %x\n", opcode); in check_cond_jmp_op()
8959 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
8969 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
8976 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
9122 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
9141 verbose(env, "invalid BPF_LD_IMM insn\n"); in check_ld_imm()
9145 verbose(env, "BPF_LD_IMM64 uses reserved fields\n"); in check_ld_imm()
9176 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
9187 verbose(env, "missing btf func_info\n"); in check_ld_imm()
9191 verbose(env, "callback function not static\n"); in check_ld_imm()
9214 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
9256 verbose(env, "BPF_LD_[ABS|IND] instructions not allowed for this program type\n"); in check_ld_abs()
9261 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_abs()
9268 verbose(env, "BPF_LD_[ABS|IND] uses reserved fields\n"); in check_ld_abs()
9283 verbose(env, "BPF_LD_[ABS|IND] cannot be mixed with socket references\n"); in check_ld_abs()
9288 verbose(env, "BPF_LD_[ABS|IND] cannot be used inside bpf_spin_lock-ed region\n"); in check_ld_abs()
9293 verbose(env, in check_ld_abs()
9354 verbose(env, "R0 leaks addr as return value\n"); in check_return_code()
9363 verbose(env, "In async callback the register R0 is not a known value (%s)\n", in check_return_code()
9377 verbose(env, "At subprogram exit the register R0 is not a scalar value (%s)\n", in check_return_code()
9441 verbose(env, "At program exit the register R0 is not a known value (%s)\n", in check_return_code()
9541 verbose(env, "jump out of range from insn %d to %d\n", t, w); in push_insn()
9562 verbose(env, "back-edge from insn %d to %d\n", t, w); in push_insn()
9568 verbose(env, "insn state internal bug\n"); in push_insn()
9703 verbose(env, "visit_insn internal bug\n"); in check_cfg()
9711 verbose(env, "pop stack internal bug\n"); in check_cfg()
9718 verbose(env, "unreachable insn %d\n", i); in check_cfg()
9738 verbose(env, "LD_ABS is not allowed in subprogs without BTF\n"); in check_abnormal_return()
9742 verbose(env, "tail_call is not allowed in subprogs without BTF\n"); in check_abnormal_return()
9777 verbose(env, "number of funcs in func_info doesn't match number of subprogs\n"); in check_btf_func()
9785 verbose(env, "invalid func info rec size %u\n", urec_size); in check_btf_func()
9806 verbose(env, "nonzero tailing record in func info"); in check_btf_func()
9827 verbose(env, in check_btf_func()
9833 verbose(env, in check_btf_func()
9840 verbose(env, "func_info BTF section doesn't match subprog layout in BPF program\n"); in check_btf_func()
9847 verbose(env, "invalid type id %d in func info", in check_btf_func()
9861 verbose(env, "LD_ABS is only allowed in functions that return 'int'.\n"); in check_btf_func()
9865 verbose(env, "tail_call is only allowed in functions that return 'int'.\n"); in check_btf_func()
9944 verbose(env, "nonzero tailing record in line_info"); in check_btf_line()
9971 verbose(env, "Invalid line_info[%u].insn_off:%u (prev_offset:%u prog->len:%u)\n", in check_btf_line()
9979 verbose(env, in check_btf_line()
9988 verbose(env, "Invalid line_info[%u].line_off or .file_name_off\n", i); in check_btf_line()
9998 verbose(env, "missing bpf_line_info for func#%u\n", s); in check_btf_line()
10009 verbose(env, "missing bpf_line_info for %u funcs starting from func#%u\n", in check_btf_line()
10561 verbose(env, "propagating r%d\n", i); in propagate_precision()
10575 verbose(env, "propagating fp%d\n", in propagate_precision()
10659 verbose(env, "infinite loop detected at insn %d\n", insn_idx); in is_state_visited()
10880 verbose(env, "invalid insn idx %d insn_cnt %d\n", in do_check()
10889 verbose(env, in do_check()
10902 verbose(env, "\nfrom %d to %d%s: safe\n", in do_check()
10907 verbose(env, "%d: safe\n", env->insn_idx); in do_check()
10921 verbose(env, "%d:", env->insn_idx); in do_check()
10923 verbose(env, "\nfrom %d to %d%s:", in do_check()
10934 .cb_print = verbose, in do_check()
10939 verbose(env, "%d: ", env->insn_idx); in do_check()
11001 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
11017 verbose(env, "BPF_STX uses reserved fields\n"); in do_check()
11044 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
11051 verbose(env, "BPF_ST uses reserved fields\n"); in do_check()
11060 verbose(env, "BPF_ST stores into R%d %s is not allowed\n", in do_check()
11085 verbose(env, "BPF_CALL uses reserved fields\n"); in do_check()
11092 verbose(env, "function calls are not allowed while holding a lock\n"); in do_check()
11109 verbose(env, "BPF_JA uses reserved fields\n"); in do_check()
11122 verbose(env, "BPF_EXIT uses reserved fields\n"); in do_check()
11127 verbose(env, "bpf_spin_unlock is missing\n"); in do_check()
11180 verbose(env, "invalid BPF_LD mode\n"); in do_check()
11184 verbose(env, "unknown insn class %d\n", class); in do_check()
11245 verbose(env, "invalid module BTF object FD specified.\n"); in check_pseudo_btf_id()
11250 …verbose(env, "kernel is missing BTF, make sure CONFIG_DEBUG_INFO_BTF=y is specified in Kconfig.\n"… in check_pseudo_btf_id()
11259 verbose(env, "ldimm64 insn specifies invalid btf_id %d.\n", id); in check_pseudo_btf_id()
11265 verbose(env, "pseudo btf_id %d in ldimm64 isn't KIND_VAR.\n", id); in check_pseudo_btf_id()
11273 verbose(env, "ldimm64 failed to find the address for kernel symbol '%s'.\n", in check_pseudo_btf_id()
11308 verbose(env, "ldimm64 unable to resolve the size of type '%s': %ld\n", in check_pseudo_btf_id()
11410 verbose(env, "perf_event programs can only use preallocated hash map\n"); in check_map_prog_compatibility()
11414 verbose(env, "trace type programs can only use preallocated hash map\n"); in check_map_prog_compatibility()
11418 …verbose(env, "trace type programs with run-time allocated hash maps are unsafe. Switch to prealloc… in check_map_prog_compatibility()
11423 verbose(env, "socket filter progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
11428 verbose(env, "tracing progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
11433 verbose(env, "sleepable progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
11440 verbose(env, "offload device mismatch between prog and map\n"); in check_map_prog_compatibility()
11445 verbose(env, "bpf_struct_ops map cannot be used in prog\n"); in check_map_prog_compatibility()
11460 verbose(env, in check_map_prog_compatibility()
11468 verbose(env, in check_map_prog_compatibility()
11502 verbose(env, "BPF_LDX uses reserved fields\n"); in resolve_pseudo_ldimm64()
11516 verbose(env, "invalid bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
11551 verbose(env, "unrecognized bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
11559 verbose(env, "fd_idx without fd_array is invalid\n"); in resolve_pseudo_ldimm64()
11575 verbose(env, "fd %d is not pointing to valid bpf_map\n", in resolve_pseudo_ldimm64()
11594 verbose(env, "direct value offset of %u is not allowed\n", off); in resolve_pseudo_ldimm64()
11600 verbose(env, "no direct value access support for this map type\n"); in resolve_pseudo_ldimm64()
11607 verbose(env, "invalid access to map value pointer, value_size=%u off=%u\n", in resolve_pseudo_ldimm64()
11646 verbose(env, "only one cgroup storage of each type is allowed\n"); in resolve_pseudo_ldimm64()
11660 verbose(env, "unknown opcode %02x\n", insn->code); in resolve_pseudo_ldimm64()
11782 verbose(env, in bpf_patch_insn_data()
12126 verbose(env, "verifier bug. zext_dst is set, but no reg is defined\n"); in opt_subreg_zext_lo32_rnd_hi32()
12166 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
12172 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
12256 verbose(env, "Writes through BTF pointers are not allowed\n"); in convert_ctx_accesses()
12279 verbose(env, "bpf verifier narrow ctx access misconfigured\n"); in convert_ctx_accesses()
12298 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
12306 verbose(env, "bpf verifier narrow ctx load misconfigured\n"); in convert_ctx_accesses()
12494 verbose(env, "JIT doesn't support bpf-to-bpf calls\n"); in jit_subprogs()
12585 verbose(env, "calling kernel functions are not allowed in non-JITed programs\n"); in fixup_call_args()
12592 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in fixup_call_args()
12600 verbose(env, "callbacks are not allowed in non-JITed programs\n"); in fixup_call_args()
12626 verbose(env, "verifier internal error: kernel function descriptor not found for func_id %u\n", in fixup_kfunc_call()
12702 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
12820 verbose(env, "adding tail call poke descriptor failed\n"); in do_misc_fixups()
12838 verbose(env, "tail_call abusing map_ptr\n"); in do_misc_fixups()
12918 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
13031 verbose(env, in do_misc_fixups()
13045 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
13051 verbose(env, "tracking tail call prog failed\n"); in do_misc_fixups()
13204 verbose(env, in do_check_subprogs()
13229 verbose(env, "verification time %lld usec\n", in print_verification_stats()
13231 verbose(env, "stack depth "); in print_verification_stats()
13235 verbose(env, "%d", depth); in print_verification_stats()
13237 verbose(env, "+"); in print_verification_stats()
13239 verbose(env, "\n"); in print_verification_stats()
13241 verbose(env, "processed %d insns (limit %d) max_states_per_insn %d " in print_verification_stats()
13258 verbose(env, "struct ops programs must have a GPL compatible license\n"); in check_struct_ops_btf_id()
13265 verbose(env, "attach_btf_id %u is not a supported struct\n", in check_struct_ops_btf_id()
13273 verbose(env, "attach to invalid member idx %u of struct %s\n", in check_struct_ops_btf_id()
13283 verbose(env, "attach to invalid member %s(@idx %u) of struct %s\n", in check_struct_ops_btf_id()
13292 verbose(env, "attach to unsupported member %s of struct %s\n", in check_struct_ops_btf_id()
13591 verbose(env, "Syscall programs can only be sleepable\n"); in BTF_SET_START()
13597 verbose(env, "Only fentry/fexit/fmod_ret and lsm programs can be sleepable\n"); in BTF_SET_START()
13725 verbose(env, "in-kernel BTF is malformed\n"); in bpf_check()