Lines Matching refs:verbose
349 __printf(2, 3) static void verbose(void *private_data, const char *fmt, ...) in verbose() function
405 verbose(env, "%s\n", in verbose_linfo()
419 verbose(env, "At %s the register %s ", ctx, reg_name); in verbose_invalid_scalar()
422 verbose(env, "has value %s", tn_buf); in verbose_invalid_scalar()
424 verbose(env, "has unknown scalar value"); in verbose_invalid_scalar()
427 verbose(env, " should have been in %s\n", tn_buf); in verbose_invalid_scalar()
604 verbose(env, "_"); in print_liveness()
606 verbose(env, "r"); in print_liveness()
608 verbose(env, "w"); in print_liveness()
610 verbose(env, "D"); in print_liveness()
845 verbose(env, " frame%d:", state->frameno); in print_verifier_state()
853 verbose(env, " R%d", i); in print_verifier_state()
855 verbose(env, "="); in print_verifier_state()
857 verbose(env, "P"); in print_verifier_state()
861 verbose(env, "%s", t == SCALAR_VALUE ? "" : reg_type_str(env, t)); in print_verifier_state()
862 verbose(env, "%lld", reg->var_off.value + reg->off); in print_verifier_state()
866 verbose(env, "%s", reg_type_str(env, t)); in print_verifier_state()
868 verbose(env, "%s", kernel_type_name(reg->btf, reg->btf_id)); in print_verifier_state()
869 verbose(env, "("); in print_verifier_state()
874 #define verbose_a(fmt, ...) ({ verbose(env, "%s" fmt, sep, __VA_ARGS__); sep = ","; }) in print_verifier_state()
928 verbose(env, ")"); in print_verifier_state()
947 verbose(env, " fp%d", (-i - 1) * BPF_REG_SIZE); in print_verifier_state()
952 verbose(env, "=%s", t == SCALAR_VALUE ? "" : reg_type_str(env, t)); in print_verifier_state()
954 verbose(env, "P"); in print_verifier_state()
956 verbose(env, "%lld", reg->var_off.value + reg->off); in print_verifier_state()
958 verbose(env, "=%s", types_buf); in print_verifier_state()
962 verbose(env, " refs=%d", state->refs[0].id); in print_verifier_state()
965 verbose(env, ",%d", state->refs[i].id); in print_verifier_state()
968 verbose(env, " cb"); in print_verifier_state()
970 verbose(env, " async_cb"); in print_verifier_state()
971 verbose(env, "\n"); in print_verifier_state()
987 verbose(env, "%*c;", vlog_alignment(env->prev_insn_print_len), ' '); in print_insn_state()
989 verbose(env, "%d:", env->insn_idx); in print_insn_state()
1301 verbose(env, "The sequence of %d jumps is too complex.\n", in push_stack()
1387 verbose(env, "mark_reg_known_zero(regs, %u)\n", regno); in mark_reg_known_zero()
1704 verbose(env, "mark_reg_unknown(regs, %u)\n", regno); in mark_reg_unknown()
1724 verbose(env, "mark_reg_not_init(regs, %u)\n", regno); in mark_reg_not_init()
1801 verbose(env, in push_async_cb()
1860 verbose(env, "call to invalid destination\n"); in add_subprog()
1867 verbose(env, "too many subprograms\n"); in add_subprog()
1949 verbose(env, "too many different module BTFs\n"); in __find_kfunc_desc_btf()
1954 verbose(env, "kfunc offset > 0 without fd_array is invalid\n"); in __find_kfunc_desc_btf()
1965 verbose(env, "invalid module BTF fd specified\n"); in __find_kfunc_desc_btf()
1970 verbose(env, "BTF fd for kfunc is not a module BTF\n"); in __find_kfunc_desc_btf()
2011 verbose(env, "negative offset disallowed for kernel module function call\n"); in find_kfunc_desc_btf()
2038 verbose(env, "calling kernel function is not supported without CONFIG_DEBUG_INFO_BTF\n"); in add_kfunc_call()
2043 verbose(env, "JIT is required for calling kernel function\n"); in add_kfunc_call()
2048 verbose(env, "JIT does not support calling kernel function\n"); in add_kfunc_call()
2053 verbose(env, "cannot call kernel function from non-GPL compatible program\n"); in add_kfunc_call()
2081 verbose(env, "failed to find BTF for kernel function\n"); in add_kfunc_call()
2089 verbose(env, "too many different kernel function calls\n"); in add_kfunc_call()
2095 verbose(env, "kernel btf_id %u is not a function\n", in add_kfunc_call()
2101 verbose(env, "kernel function btf_id %u does not have a valid func_proto\n", in add_kfunc_call()
2109 verbose(env, "cannot find address for kernel function %s\n", in add_kfunc_call()
2117 verbose(env, "address of kernel function %s is out of range\n", in add_kfunc_call()
2198 …verbose(env, "loading/calling other bpf or kernel functions are allowed for CAP_BPF and CAP_SYS_AD… in add_subprog_and_kfunc()
2218 verbose(env, "func#%d @%d\n", i, subprog[i].start); in add_subprog_and_kfunc()
2249 verbose(env, "jump out of range from insn %d to %d\n", i, off); in check_subprogs()
2260 verbose(env, "last insn is not an exit or jmp\n"); in check_subprogs()
2287 verbose(env, "verifier BUG type %s var_off %lld off %d\n", in mark_reg_read()
2468 verbose(env, "R%d is invalid\n", regno); in check_reg_arg()
2479 verbose(env, "R%d !read_ok\n", regno); in check_reg_arg()
2494 verbose(env, "frame pointer is read only\n"); in check_reg_arg()
2567 .cb_print = verbose, in backtrack_insn()
2581 verbose(env, "regs=%x stack=%llx before ", *reg_mask, *stack_mask); in backtrack_insn()
2582 verbose(env, "%d: ", idx); in backtrack_insn()
2637 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2654 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2673 verbose(env, "BUG regs %x\n", *reg_mask); in backtrack_insn()
2835 verbose(env, "last_idx %d first_idx %d\n", last_idx, first_idx); in __mark_chain_precision()
2865 verbose(env, "BUG backtracking idx %d\n", i); in __mark_chain_precision()
2922 verbose(env, "parent %s regs=%x stack=%llx marks:", in __mark_chain_precision()
3055 verbose(env, "attempt to corrupt spilled pointer on stack\n"); in check_stack_write_fixed_off()
3097 verbose(env, "invalid size of register spill\n"); in check_stack_write_fixed_off()
3101 verbose(env, "cannot spill pointers to stack into stack frame of the caller\n"); in check_stack_write_fixed_off()
3214 verbose(env, "spilled ptr in range of var-offset stack write; insn %d, ptr off: %d", in check_stack_write_var_off()
3237 verbose(env, "uninit stack in range of var-offset write prohibited for !root; insn %d, off: %d", in check_stack_write_var_off()
3334 verbose(env, "invalid size of register fill\n"); in check_stack_read_fixed_off()
3357 verbose(env, "invalid read from stack off %d+%d size %d\n", in check_stack_read_fixed_off()
3382 verbose(env, "leaking pointer from stack off %d\n", in check_stack_read_fixed_off()
3394 verbose(env, "invalid read from stack off %d+%d size %d\n", in check_stack_read_fixed_off()
3483 …verbose(env, "variable offset stack pointer cannot be passed into helper function; var_off=%s off=… in check_stack_read()
3495 verbose(env, "R%d variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_read()
3557 verbose(env, "write into map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3563 verbose(env, "read from map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3585 verbose(env, "invalid access to map key, key_size=%d off=%d size=%d\n", in __check_mem_access()
3589 verbose(env, "invalid access to map value, value_size=%d off=%d size=%d\n", in __check_mem_access()
3595 verbose(env, "invalid access to packet, off=%d size=%d, R%d(id=%d,off=%d,r=%d)\n", in __check_mem_access()
3600 verbose(env, "invalid access to memory, mem_size=%u off=%d size=%d\n", in __check_mem_access()
3631 …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()
3638 verbose(env, "R%d min value is outside of the allowed memory range\n", in check_mem_region_access()
3648 verbose(env, "R%d unbounded memory access, make sure to bounds check any such access\n", in check_mem_region_access()
3655 verbose(env, "R%d max value is outside of the allowed memory range\n", in check_mem_region_access()
3672 verbose(env, "negative offset %s ptr R%d off=%d disallowed\n", in __check_ptr_off_reg()
3678 verbose(env, "dereference of modified %s ptr R%d off=%d disallowed\n", in __check_ptr_off_reg()
3687 verbose(env, "variable %s access var_off=%s disallowed\n", in __check_ptr_off_reg()
3717 verbose(env, "R%d must point to kernel BTF\n", regno); in map_kptr_match_type()
3762 verbose(env, "invalid kptr access, R%d type=%s%s ", regno, in map_kptr_match_type()
3764 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
3766 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
3769 verbose(env, "\n"); in map_kptr_match_type()
3789 verbose(env, "kptr in map can only be accessed using BPF_MEM instruction mode\n"); in check_map_kptr_access()
3797 verbose(env, "store to referenced kptr disallowed\n"); in check_map_kptr_access()
3817 verbose(env, "BPF_ST imm must be 0 when storing to kptr at off=%u\n", in check_map_kptr_access()
3822 verbose(env, "kptr in map can only be accessed using BPF_LDX/BPF_STX/BPF_ST\n"); in check_map_kptr_access()
3854 verbose(env, "bpf_spin_lock cannot be accessed directly by load/store\n"); in check_map_access()
3863 verbose(env, "bpf_timer cannot be accessed directly by load/store\n"); in check_map_access()
3877 verbose(env, "kptr cannot be accessed indirectly by helper\n"); in check_map_access()
3881 verbose(env, "kptr access cannot have variable offset\n"); in check_map_access()
3885 verbose(env, "kptr access misaligned expected=%u off=%llu\n", in check_map_access()
3890 verbose(env, "kptr access size must be BPF_DW\n"); in check_map_access()
3960 …verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_packet_access()
3969 verbose(env, "R%d offset is outside of the packet\n", regno); in check_packet_access()
4019 verbose(env, "invalid bpf_context access off=%d size=%d\n", off, size); in check_ctx_access()
4028 verbose(env, "invalid access to flow keys off=%d size=%d\n", in check_flow_keys_access()
4045 …verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_sock_access()
4074 verbose(env, "R%d invalid %s access off=%d size=%d\n", in check_sock_access()
4140 verbose(env, in check_pkt_ptr_alignment()
4165 verbose(env, "misaligned %saccess off %s+%d+%d size %d\n", in check_generic_ptr_alignment()
4277 verbose(env, in check_max_stack_depth()
4287 verbose(env, "combined stack size of %d calls is %d. Too large\n", in check_max_stack_depth()
4312 verbose(env, "verifier bug. subprog has tail_call and async cb\n"); in check_max_stack_depth()
4325 verbose(env, "the call stack of %d frames is too deep !\n", in check_max_stack_depth()
4376 verbose(env, in __check_buffer_access()
4385 verbose(env, in __check_buffer_access()
4531 verbose(env, in check_ptr_to_btf_access()
4540 verbose(env, in check_ptr_to_btf_access()
4547 verbose(env, in check_ptr_to_btf_access()
4554 verbose(env, in check_ptr_to_btf_access()
4565 verbose(env, "only read is supported\n"); in check_ptr_to_btf_access()
4603 verbose(env, "map_ptr access not supported without CONFIG_DEBUG_INFO_BTF\n"); in check_ptr_to_map_access()
4608 verbose(env, "map_ptr access not supported for map type %d\n", in check_ptr_to_map_access()
4617 verbose(env, in check_ptr_to_map_access()
4624 verbose(env, "R%d is %s invalid negative access: off=%d\n", in check_ptr_to_map_access()
4630 verbose(env, "only read from %s is supported\n", tname); in check_ptr_to_map_access()
4700 verbose(env, "invalid unbounded variable-offset%s stack R%d\n", in check_stack_access_within_bounds()
4717 verbose(env, "invalid%s stack R%d off=%d size=%d\n", in check_stack_access_within_bounds()
4723 verbose(env, "invalid variable-offset%s stack R%d var_off=%s size=%d\n", in check_stack_access_within_bounds()
4759 verbose(env, "write to change key R%d not allowed\n", regno); in check_mem_access()
4774 verbose(env, "R%d leaks addr into map\n", value_regno); in check_mem_access()
4814 verbose(env, "R%d invalid mem access '%s'\n", regno, in check_mem_access()
4820 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4827 verbose(env, "R%d leaks addr into mem\n", value_regno); in check_mem_access()
4842 verbose(env, "R%d leaks addr into ctx\n", value_regno); in check_mem_access()
4899 verbose(env, "cannot write into packet\n"); in check_mem_access()
4904 verbose(env, "R%d leaks addr into packet\n", in check_mem_access()
4914 verbose(env, "R%d leaks addr into flow keys\n", in check_mem_access()
4924 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4948 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4963 verbose(env, "R%d invalid mem access '%s'\n", regno, in check_mem_access()
4994 verbose(env, "BPF_ATOMIC uses invalid atomic opcode %02x\n", insn->imm); in check_atomic()
4999 verbose(env, "invalid atomic operand size\n"); in check_atomic()
5022 verbose(env, "R%d leaks addr into mem\n", aux_reg); in check_atomic()
5028 verbose(env, "R%d leaks addr into mem\n", insn->src_reg); in check_atomic()
5036 verbose(env, "BPF_ATOMIC stores into R%d %s is not allowed\n", in check_atomic()
5105 verbose(env, "invalid zero-sized read\n"); in check_stack_range_initialized()
5137 verbose(env, "R%d%s variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_range_initialized()
5191 verbose(env, "invalid%s read from stack R%d off %d+%d size %d\n", in check_stack_range_initialized()
5197 verbose(env, "invalid%s read from stack R%d var_off %s+%d size %d\n", in check_stack_range_initialized()
5231 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5247 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5258 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5300 verbose(env, "R%d type=%s ", regno, in check_helper_mem_access()
5302 verbose(env, "expected=%s\n", reg_type_str(env, PTR_TO_STACK)); in check_helper_mem_access()
5336 verbose(env, "R%d min value is negative, either use unsigned or 'var &= const'\n", in check_mem_size_reg()
5350 verbose(env, "R%d unbounded memory access, use 'var &= const' or 'if (var < const)'\n", in check_mem_size_reg()
5451 verbose(env, in process_spin_lock()
5457 verbose(env, in process_spin_lock()
5464 verbose(env, in process_spin_lock()
5468 verbose(env, in process_spin_lock()
5472 verbose(env, in process_spin_lock()
5478 verbose(env, "off %lld doesn't point to 'struct bpf_spin_lock'\n", in process_spin_lock()
5484 verbose(env, in process_spin_lock()
5491 verbose(env, "bpf_spin_unlock without taking a lock\n"); in process_spin_lock()
5495 verbose(env, "bpf_spin_unlock of different lock\n"); in process_spin_lock()
5512 verbose(env, in process_timer_func()
5518 verbose(env, "map '%s' has to have BTF in order to use bpf_timer\n", in process_timer_func()
5524 verbose(env, in process_timer_func()
5528 verbose(env, in process_timer_func()
5532 verbose(env, in process_timer_func()
5538 verbose(env, "off %lld doesn't point to 'struct bpf_timer' that is at %d\n", in process_timer_func()
5543 verbose(env, "verifier bug. Two map pointers in a timer helper\n"); in process_timer_func()
5561 verbose(env, in process_kptr_func()
5567 verbose(env, "map '%s' has to have BTF in order to use bpf_kptr_xchg\n", in process_kptr_func()
5574 verbose(env, "map '%s' has more than %d kptr\n", map_ptr->name, in process_kptr_func()
5577 verbose(env, "map '%s' has repeating kptr BTF tags\n", map_ptr->name); in process_kptr_func()
5579 verbose(env, "map '%s' has no valid kptr\n", map_ptr->name); in process_kptr_func()
5587 verbose(env, "off=%d doesn't point to kptr\n", kptr_off); in process_kptr_func()
5591 verbose(env, "off=%d kptr isn't referenced kptr\n", kptr_off); in process_kptr_func()
5630 verbose(env, "invalid map_ptr to access map->type\n"); in resolve_map_arg_type()
5640 verbose(env, "invalid arg_type for sockmap/sockhash\n"); in resolve_map_arg_type()
5774 verbose(env, "verifier internal error: unsupported arg type %d\n", arg_type); in check_reg_type()
5802 verbose(env, "R%d type=%s expected=", regno, reg_type_str(env, reg->type)); in check_reg_type()
5804 verbose(env, "%s, ", reg_type_str(env, compatible->types[j])); in check_reg_type()
5805 verbose(env, "%s\n", reg_type_str(env, compatible->types[j])); in check_reg_type()
5819 verbose(env, "verifier internal error: missing arg compatible BTF ID\n"); in check_reg_type()
5830 verbose(env, "verifier internal error:"); in check_reg_type()
5831 verbose(env, "R%d has non-overwritten BPF_PTR_POISON type\n", in check_reg_type()
5839 verbose(env, "R%d is of type %s but %s is expected\n", in check_reg_type()
5861 verbose(env, "cannot pass in dynptr at an offset\n"); in check_func_arg_reg_off()
5890 verbose(env, "R%d must have zero offset when passed to release func\n", in check_func_arg_reg_off()
5934 verbose(env, "R%d leaks addr into helper function\n", in check_func_arg()
5943 verbose(env, "helper access to the packet is not allowed\n"); in check_func_arg()
5979 verbose(env, "arg %d is an unacquired reference\n", regno); in check_func_arg()
5983 verbose(env, "R%d must be referenced when passed to release function\n", in check_func_arg()
5988 verbose(env, "verifier internal error: more than one release argument\n"); in check_func_arg()
5996 verbose(env, "verifier internal error: more than one arg with ref_obj_id R%d %u %u\n", in check_func_arg()
6022 verbose(env, in check_func_arg()
6042 verbose(env, "invalid map_ptr to access map->key\n"); in check_func_arg()
6058 verbose(env, "invalid map_ptr to access map->value\n"); in check_func_arg()
6068 verbose(env, "Helper has invalid btf_id in R%d\n", regno); in check_func_arg()
6082 verbose(env, "verifier internal error\n"); in check_func_arg()
6120 verbose(env, "Dynptr has to be an uninitialized dynptr\n"); in check_func_arg()
6128 verbose(env, "verifier internal error: multiple uninitialized dynptr args\n"); in check_func_arg()
6134 verbose(env, in check_func_arg()
6152 verbose(env, in check_func_arg()
6160 verbose(env, "R%d is not a known constant'\n", in check_func_arg()
6188 verbose(env, "R%d does not point to a readonly map'\n", regno); in check_func_arg()
6193 verbose(env, "R%d is not a constant address'\n", regno); in check_func_arg()
6198 verbose(env, "no direct value access support for this map type\n"); in check_func_arg()
6211 verbose(env, "direct value access on string failed\n"); in check_func_arg()
6217 verbose(env, "string is not zero-terminated\n"); in check_func_arg()
6259 verbose(env, "cannot update sockmap in this context\n"); in may_update_sockmap()
6400 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in check_map_func_compatibility()
6503 verbose(env, "cannot pass map_type %d into func %s#%d\n", in check_map_func_compatibility()
6682 verbose(env, "the call stack of %d frames is too deep\n", in __check_func_call()
6689 verbose(env, "verifier bug. Frame %d already allocated\n", in __check_func_call()
6702 verbose(env, "Caller passes invalid args into func#%d\n", in __check_func_call()
6707 verbose(env, in __check_func_call()
6780 verbose(env, "caller:\n"); in __check_func_call()
6782 verbose(env, "callee:\n"); in __check_func_call()
6842 verbose(env, "verifier bug. No program starts at insn %d\n", in check_func_call()
6860 verbose(env, "tail_call abusing map_ptr\n"); in set_map_elem_callback_state()
6867 verbose(env, "callback function not allowed for map\n"); in set_map_elem_callback_state()
7000 verbose(env, "cannot return stack pointer to the caller\n"); in prepare_func_exit()
7010 verbose(env, "R0 not a scalar value\n"); in prepare_func_exit()
7036 verbose(env, "returning from callee:\n"); in prepare_func_exit()
7038 verbose(env, "to caller at %d:\n", *insn_idx); in prepare_func_exit()
7088 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_map()
7101 verbose(env, "write into map forbidden\n"); in record_func_map()
7127 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_key()
7163 verbose(env, "Unreleased reference id=%d alloc_insn=%d\n", in check_reference_leak()
7192 verbose(env, "verifier bug\n"); in check_bpf_snprintf_call()
7202 verbose(env, "Invalid format string\n"); in check_bpf_snprintf_call()
7214 verbose(env, "func %s#%d supported only for fentry/fexit/fmod_ret programs\n", in check_get_func_ip()
7223 verbose(env, "func %s#%d not supported for program type %d\n", in check_get_func_ip()
7279 verbose(env, "invalid func %s#%d\n", func_id_name(func_id), in check_helper_call()
7287 verbose(env, "unknown func %s#%d\n", func_id_name(func_id), in check_helper_call()
7294 verbose(env, "cannot call GPL-restricted function from non-GPL compatible program\n"); in check_helper_call()
7299 verbose(env, "helper call is not allowed in probe\n"); in check_helper_call()
7306 verbose(env, "kernel subsystem misconfigured func %s#%d: r1 != ctx\n", in check_helper_call()
7316 verbose(env, "kernel subsystem misconfigured func %s#%d\n", in check_helper_call()
7377 verbose(env, "func %s#%d reference has not been acquired before\n", in check_helper_call()
7387 verbose(env, "tail_call would lead to reference leak\n"); in check_helper_call()
7396 verbose(env, "get_local_storage() doesn't support non-zero flags\n"); in check_helper_call()
7422 verbose(env, "Unsupported reg type %s for bpf_dynptr_from_mem data\n", in check_helper_call()
7434 verbose(env, "BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_helper_call()
7445 verbose(env, "verifier internal error: meta.ref_obj_id already set\n"); in check_helper_call()
7458 verbose(env, "verifier internal error: no dynptr in bpf_dynptr_data()\n"); in check_helper_call()
7500 verbose(env, in check_helper_call()
7544 verbose(env, "unable to resolve the size of type '%s': %ld\n", in check_helper_call()
7576 verbose(env, "verifier internal error:"); in check_helper_call()
7577 verbose(env, "func %s has non-overwritten BPF_PTR_POISON return type\n", in check_helper_call()
7585 verbose(env, "invalid return type %u of func %s#%d\n", in check_helper_call()
7595 verbose(env, "unknown return type %u of func %s#%d\n", in check_helper_call()
7604 verbose(env, "verifier internal error: func %s#%d sets ref_obj_id more than once\n", in check_helper_call()
7642 verbose(env, err_str, func_id_name(func_id), func_id); in check_helper_call()
7716 verbose(env, "calling kernel function %s is not allowed\n", in check_kfunc_call()
7721 verbose(env, "destructive kfunc calls require CAP_SYS_BOOT capabilities\n"); in check_kfunc_call()
7739 verbose(env, "kfunc %s#%d reference has not been acquired before\n", in check_kfunc_call()
7752 verbose(env, "acquire kernel function does not return PTR_TO_BTF_ID\n"); in check_kfunc_call()
7766 verbose(env, in check_kfunc_call()
7871 verbose(env, "math between %s pointer and %lld is not allowed\n", in check_reg_sane_offset()
7877 verbose(env, "%s pointer offset %d is not allowed\n", in check_reg_sane_offset()
7883 verbose(env, "math between %s pointer and register with unbounded min value is not allowed\n", in check_reg_sane_offset()
7889 verbose(env, "value %lld makes %s pointer be out of bounds\n", in check_reg_sane_offset()
8121 verbose(env, "R%d has unknown scalar with mixed signed bounds, %s\n", in sanitize_err()
8125 verbose(env, "R%d has pointer with unsupported alu operation, %s\n", in sanitize_err()
8129 verbose(env, "R%d tried to %s from different maps, paths or scalars, %s\n", in sanitize_err()
8133 verbose(env, "R%d tried to %s beyond pointer bounds, %s\n", in sanitize_err()
8137 verbose(env, "R%d could not be pushed for speculative verification, %s\n", in sanitize_err()
8141 verbose(env, "verifier internal error: unknown reason (%d)\n", in sanitize_err()
8169 verbose(env, "R%d variable stack access prohibited for !root, var_off=%s off=%d\n", in check_stack_access_for_ptr_arithmetic()
8175 verbose(env, "R%d stack pointer arithmetic goes out of range, " in check_stack_access_for_ptr_arithmetic()
8203 verbose(env, "R%d pointer arithmetic of map value goes out of range, " in sanitize_check_bounds()
8256 verbose(env, in adjust_ptr_min_max_vals()
8263 verbose(env, "R%d pointer arithmetic on %s prohibited, null-check it first\n", in adjust_ptr_min_max_vals()
8279 verbose(env, "R%d pointer arithmetic on %s prohibited\n", in adjust_ptr_min_max_vals()
8360 verbose(env, "R%d tried to subtract pointer from scalar\n", in adjust_ptr_min_max_vals()
8369 verbose(env, "R%d subtraction from stack pointer prohibited\n", in adjust_ptr_min_max_vals()
8421 verbose(env, "R%d bitwise operator %s on pointer prohibited\n", in adjust_ptr_min_max_vals()
8426 verbose(env, "R%d pointer arithmetic with %s operator prohibited\n", in adjust_ptr_min_max_vals()
9209 verbose(env, "R%d pointer %s pointer prohibited\n", in adjust_reg_min_max_vals()
9252 verbose(env, "verifier internal error: unexpected ptr_reg\n"); in adjust_reg_min_max_vals()
9257 verbose(env, "verifier internal error: no src_reg\n"); in adjust_reg_min_max_vals()
9275 verbose(env, "BPF_NEG uses reserved fields\n"); in check_alu_op()
9282 verbose(env, "BPF_END uses reserved fields\n"); in check_alu_op()
9293 verbose(env, "R%d pointer arithmetic prohibited\n", in check_alu_op()
9307 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
9317 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
9347 verbose(env, in check_alu_op()
9384 verbose(env, "invalid BPF_ALU opcode %x\n", opcode); in check_alu_op()
9391 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
9400 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
9412 verbose(env, "div by zero\n"); in check_alu_op()
9421 verbose(env, "invalid shift %d\n", insn->imm); in check_alu_op()
10166 verbose(env, "invalid BPF_JMP/JMP32 opcode %x\n", opcode); in check_cond_jmp_op()
10172 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
10182 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
10189 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
10335 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
10354 verbose(env, "invalid BPF_LD_IMM insn\n"); in check_ld_imm()
10358 verbose(env, "BPF_LD_IMM64 uses reserved fields\n"); in check_ld_imm()
10392 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
10404 verbose(env, "missing btf func_info\n"); in check_ld_imm()
10408 verbose(env, "callback function not static\n"); in check_ld_imm()
10430 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
10472 verbose(env, "BPF_LD_[ABS|IND] instructions not allowed for this program type\n"); in check_ld_abs()
10477 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_abs()
10484 verbose(env, "BPF_LD_[ABS|IND] uses reserved fields\n"); in check_ld_abs()
10499 verbose(env, "BPF_LD_[ABS|IND] cannot be mixed with socket references\n"); in check_ld_abs()
10504 verbose(env, "BPF_LD_[ABS|IND] cannot be used inside bpf_spin_lock-ed region\n"); in check_ld_abs()
10509 verbose(env, in check_ld_abs()
10580 verbose(env, "R0 leaks addr as return value\n"); in check_return_code()
10589 verbose(env, "In async callback the register R0 is not a known value (%s)\n", in check_return_code()
10603 verbose(env, "At subprogram exit the register R0 is not a scalar value (%s)\n", in check_return_code()
10683 verbose(env, "At program exit the register R0 is not a known value (%s)\n", in check_return_code()
10693 verbose(env, "Note, BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_return_code()
10787 verbose(env, "jump out of range from insn %d to %d\n", t, w); in push_insn()
10808 verbose(env, "back-edge from insn %d to %d\n", t, w); in push_insn()
10814 verbose(env, "insn state internal bug\n"); in push_insn()
10949 verbose(env, "visit_insn internal bug\n"); in check_cfg()
10957 verbose(env, "pop stack internal bug\n"); in check_cfg()
10964 verbose(env, "unreachable insn %d\n", i); in check_cfg()
10984 verbose(env, "LD_ABS is not allowed in subprogs without BTF\n"); in check_abnormal_return()
10988 verbose(env, "tail_call is not allowed in subprogs without BTF\n"); in check_abnormal_return()
11023 verbose(env, "number of funcs in func_info doesn't match number of subprogs\n"); in check_btf_func()
11031 verbose(env, "invalid func info rec size %u\n", urec_size); in check_btf_func()
11052 verbose(env, "nonzero tailing record in func info"); in check_btf_func()
11073 verbose(env, in check_btf_func()
11079 verbose(env, in check_btf_func()
11086 verbose(env, "func_info BTF section doesn't match subprog layout in BPF program\n"); in check_btf_func()
11093 verbose(env, "invalid type id %d in func info", in check_btf_func()
11107 verbose(env, "LD_ABS is only allowed in functions that return 'int'.\n"); in check_btf_func()
11111 verbose(env, "tail_call is only allowed in functions that return 'int'.\n"); in check_btf_func()
11189 verbose(env, "nonzero tailing record in line_info"); in check_btf_line()
11216 verbose(env, "Invalid line_info[%u].insn_off:%u (prev_offset:%u prog->len:%u)\n", in check_btf_line()
11224 verbose(env, in check_btf_line()
11233 verbose(env, "Invalid line_info[%u].line_off or .file_name_off\n", i); in check_btf_line()
11243 verbose(env, "missing bpf_line_info for func#%u\n", s); in check_btf_line()
11254 verbose(env, "missing bpf_line_info for %u funcs starting from func#%u\n", in check_btf_line()
11312 verbose(env, "nonzero tailing record in core_relo"); in check_core_relo()
11327 verbose(env, "Invalid core_relo[%u].insn_off:%u prog->len:%u\n", in check_core_relo()
11882 verbose(env, "frame %d: propagating r%d\n", i, fr); in propagate_precision()
11896 verbose(env, "frame %d: propagating fp%d\n", in propagate_precision()
11981 verbose(env, "infinite loop detected at insn %d\n", insn_idx); in is_state_visited()
12198 verbose(env, "invalid insn idx %d insn_cnt %d\n", in do_check()
12207 verbose(env, in do_check()
12220 verbose(env, "\nfrom %d to %d%s: safe\n", in do_check()
12225 verbose(env, "%d: safe\n", env->insn_idx); in do_check()
12237 verbose(env, "\nfrom %d to %d%s:", in do_check()
12248 .cb_print = verbose, in do_check()
12257 verbose(env, "%d: ", env->insn_idx); in do_check()
12321 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
12337 verbose(env, "BPF_STX uses reserved fields\n"); in do_check()
12364 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
12371 verbose(env, "BPF_ST uses reserved fields\n"); in do_check()
12380 verbose(env, "BPF_ST stores into R%d %s is not allowed\n", in do_check()
12406 verbose(env, "BPF_CALL uses reserved fields\n"); in do_check()
12413 verbose(env, "function calls are not allowed while holding a lock\n"); in do_check()
12430 verbose(env, "BPF_JA uses reserved fields\n"); in do_check()
12443 verbose(env, "BPF_EXIT uses reserved fields\n"); in do_check()
12448 verbose(env, "bpf_spin_unlock is missing\n"); in do_check()
12508 verbose(env, "invalid BPF_LD mode\n"); in do_check()
12512 verbose(env, "unknown insn class %d\n", class); in do_check()
12573 verbose(env, "invalid module BTF object FD specified.\n"); in check_pseudo_btf_id()
12578 …verbose(env, "kernel is missing BTF, make sure CONFIG_DEBUG_INFO_BTF=y is specified in Kconfig.\n"… in check_pseudo_btf_id()
12587 verbose(env, "ldimm64 insn specifies invalid btf_id %d.\n", id); in check_pseudo_btf_id()
12593 verbose(env, "pseudo btf_id %d in ldimm64 isn't KIND_VAR.\n", id); in check_pseudo_btf_id()
12601 verbose(env, "ldimm64 failed to find the address for kernel symbol '%s'.\n", in check_pseudo_btf_id()
12636 verbose(env, "ldimm64 unable to resolve the size of type '%s': %ld\n", in check_pseudo_btf_id()
12706 verbose(env, "socket filter progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12711 verbose(env, "tracing progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12716 verbose(env, "sleepable progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12723 verbose(env, "tracing progs cannot use bpf_timer yet\n"); in check_map_prog_compatibility()
12730 verbose(env, "offload device mismatch between prog and map\n"); in check_map_prog_compatibility()
12735 verbose(env, "bpf_struct_ops map cannot be used in prog\n"); in check_map_prog_compatibility()
12756 verbose(env, in check_map_prog_compatibility()
12790 verbose(env, "BPF_LDX uses reserved fields\n"); in resolve_pseudo_ldimm64()
12804 verbose(env, "invalid bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
12839 verbose(env, "unrecognized bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
12847 verbose(env, "fd_idx without fd_array is invalid\n"); in resolve_pseudo_ldimm64()
12863 verbose(env, "fd %d is not pointing to valid bpf_map\n", in resolve_pseudo_ldimm64()
12882 verbose(env, "direct value offset of %u is not allowed\n", off); in resolve_pseudo_ldimm64()
12888 verbose(env, "no direct value access support for this map type\n"); in resolve_pseudo_ldimm64()
12895 verbose(env, "invalid access to map value pointer, value_size=%u off=%u\n", in resolve_pseudo_ldimm64()
12934 verbose(env, "only one cgroup storage of each type is allowed\n"); in resolve_pseudo_ldimm64()
12948 verbose(env, "unknown opcode %02x\n", insn->code); in resolve_pseudo_ldimm64()
13070 verbose(env, in bpf_patch_insn_data()
13418 verbose(env, "verifier bug. zext_dst is set, but no reg is defined\n"); in opt_subreg_zext_lo32_rnd_hi32()
13458 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13464 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13569 verbose(env, "bpf verifier narrow ctx access misconfigured\n"); in convert_ctx_accesses()
13588 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13596 verbose(env, "bpf verifier narrow ctx load misconfigured\n"); in convert_ctx_accesses()
13784 verbose(env, "JIT doesn't support bpf-to-bpf calls\n"); in jit_subprogs()
13878 verbose(env, "calling kernel functions are not allowed in non-JITed programs\n"); in fixup_call_args()
13885 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in fixup_call_args()
13893 verbose(env, "callbacks are not allowed in non-JITed programs\n"); in fixup_call_args()
13915 verbose(env, "invalid kernel function call not eliminated in verifier pass\n"); in fixup_kfunc_call()
13924 verbose(env, "verifier internal error: kernel function descriptor not found for func_id %u\n", in fixup_kfunc_call()
14000 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14118 verbose(env, "adding tail call poke descriptor failed\n"); in do_misc_fixups()
14136 verbose(env, "tail_call abusing map_ptr\n"); in do_misc_fixups()
14238 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14425 verbose(env, in do_misc_fixups()
14439 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14445 verbose(env, "tracking tail call prog failed\n"); in do_misc_fixups()
14734 verbose(env, in do_check_subprogs()
14759 verbose(env, "verification time %lld usec\n", in print_verification_stats()
14761 verbose(env, "stack depth "); in print_verification_stats()
14765 verbose(env, "%d", depth); in print_verification_stats()
14767 verbose(env, "+"); in print_verification_stats()
14769 verbose(env, "\n"); in print_verification_stats()
14771 verbose(env, "processed %d insns (limit %d) max_states_per_insn %d " in print_verification_stats()
14788 verbose(env, "struct ops programs must have a GPL compatible license\n"); in check_struct_ops_btf_id()
14795 verbose(env, "attach_btf_id %u is not a supported struct\n", in check_struct_ops_btf_id()
14803 verbose(env, "attach to invalid member idx %u of struct %s\n", in check_struct_ops_btf_id()
14813 verbose(env, "attach to invalid member %s(@idx %u) of struct %s\n", in check_struct_ops_btf_id()
14822 verbose(env, "attach to unsupported member %s of struct %s\n", in check_struct_ops_btf_id()
15122 verbose(env, "Syscall programs can only be sleepable\n"); in BTF_SET_START()
15128 verbose(env, "Only fentry/fexit/fmod_ret, lsm, and kprobe/uprobe programs can be sleepable\n"); in BTF_SET_START()
15258 verbose(env, "in-kernel BTF is malformed\n"); in bpf_check()