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()
1297 verbose(env, "The sequence of %d jumps is too complex.\n", in push_stack()
1383 verbose(env, "mark_reg_known_zero(regs, %u)\n", regno); in mark_reg_known_zero()
1700 verbose(env, "mark_reg_unknown(regs, %u)\n", regno); in mark_reg_unknown()
1720 verbose(env, "mark_reg_not_init(regs, %u)\n", regno); in mark_reg_not_init()
1797 verbose(env, in push_async_cb()
1856 verbose(env, "call to invalid destination\n"); in add_subprog()
1863 verbose(env, "too many subprograms\n"); in add_subprog()
1945 verbose(env, "too many different module BTFs\n"); in __find_kfunc_desc_btf()
1950 verbose(env, "kfunc offset > 0 without fd_array is invalid\n"); in __find_kfunc_desc_btf()
1961 verbose(env, "invalid module BTF fd specified\n"); in __find_kfunc_desc_btf()
1966 verbose(env, "BTF fd for kfunc is not a module BTF\n"); in __find_kfunc_desc_btf()
2007 verbose(env, "negative offset disallowed for kernel module function call\n"); in find_kfunc_desc_btf()
2034 verbose(env, "calling kernel function is not supported without CONFIG_DEBUG_INFO_BTF\n"); in add_kfunc_call()
2039 verbose(env, "JIT is required for calling kernel function\n"); in add_kfunc_call()
2044 verbose(env, "JIT does not support calling kernel function\n"); in add_kfunc_call()
2049 verbose(env, "cannot call kernel function from non-GPL compatible program\n"); in add_kfunc_call()
2077 verbose(env, "failed to find BTF for kernel function\n"); in add_kfunc_call()
2085 verbose(env, "too many different kernel function calls\n"); in add_kfunc_call()
2091 verbose(env, "kernel btf_id %u is not a function\n", in add_kfunc_call()
2097 verbose(env, "kernel function btf_id %u does not have a valid func_proto\n", in add_kfunc_call()
2105 verbose(env, "cannot find address for kernel function %s\n", in add_kfunc_call()
2113 verbose(env, "address of kernel function %s is out of range\n", in add_kfunc_call()
2194verbose(env, "loading/calling other bpf or kernel functions are allowed for CAP_BPF and CAP_SYS_AD… in add_subprog_and_kfunc()
2214 verbose(env, "func#%d @%d\n", i, subprog[i].start); in add_subprog_and_kfunc()
2245 verbose(env, "jump out of range from insn %d to %d\n", i, off); in check_subprogs()
2256 verbose(env, "last insn is not an exit or jmp\n"); in check_subprogs()
2283 verbose(env, "verifier BUG type %s var_off %lld off %d\n", in mark_reg_read()
2464 verbose(env, "R%d is invalid\n", regno); in check_reg_arg()
2475 verbose(env, "R%d !read_ok\n", regno); in check_reg_arg()
2490 verbose(env, "frame pointer is read only\n"); in check_reg_arg()
2561 .cb_print = verbose, in backtrack_insn()
2575 verbose(env, "regs=%x stack=%llx before ", *reg_mask, *stack_mask); in backtrack_insn()
2576 verbose(env, "%d: ", idx); in backtrack_insn()
2631 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2648 verbose(env, "BUG spi %d\n", spi); in backtrack_insn()
2667 verbose(env, "BUG regs %x\n", *reg_mask); in backtrack_insn()
2829 verbose(env, "last_idx %d first_idx %d\n", last_idx, first_idx); in __mark_chain_precision()
2859 verbose(env, "BUG backtracking idx %d\n", i); in __mark_chain_precision()
2916 verbose(env, "parent %s regs=%x stack=%llx marks:", in __mark_chain_precision()
3044 verbose(env, "attempt to corrupt spilled pointer on stack\n"); in check_stack_write_fixed_off()
3084 verbose(env, "invalid size of register spill\n"); in check_stack_write_fixed_off()
3088 verbose(env, "cannot spill pointers to stack into stack frame of the caller\n"); in check_stack_write_fixed_off()
3198 verbose(env, "spilled ptr in range of var-offset stack write; insn %d, ptr off: %d", in check_stack_write_var_off()
3221 verbose(env, "uninit stack in range of var-offset write prohibited for !root; insn %d, off: %d", in check_stack_write_var_off()
3318 verbose(env, "invalid size of register fill\n"); in check_stack_read_fixed_off()
3341 verbose(env, "invalid read from stack off %d+%d size %d\n", in check_stack_read_fixed_off()
3366 verbose(env, "leaking pointer from stack off %d\n", in check_stack_read_fixed_off()
3378 verbose(env, "invalid read from stack off %d+%d size %d\n", in check_stack_read_fixed_off()
3467verbose(env, "variable offset stack pointer cannot be passed into helper function; var_off=%s off=… in check_stack_read()
3479 verbose(env, "R%d variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_read()
3541 verbose(env, "write into map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3547 verbose(env, "read from map forbidden, value_size=%d off=%d size=%d\n", in check_map_access_type()
3569 verbose(env, "invalid access to map key, key_size=%d off=%d size=%d\n", in __check_mem_access()
3573 verbose(env, "invalid access to map value, value_size=%d off=%d size=%d\n", in __check_mem_access()
3579 verbose(env, "invalid access to packet, off=%d size=%d, R%d(id=%d,off=%d,r=%d)\n", in __check_mem_access()
3584 verbose(env, "invalid access to memory, mem_size=%u off=%d size=%d\n", in __check_mem_access()
3615verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_mem_region_access()
3622 verbose(env, "R%d min value is outside of the allowed memory range\n", in check_mem_region_access()
3632 verbose(env, "R%d unbounded memory access, make sure to bounds check any such access\n", in check_mem_region_access()
3639 verbose(env, "R%d max value is outside of the allowed memory range\n", in check_mem_region_access()
3656 verbose(env, "negative offset %s ptr R%d off=%d disallowed\n", in __check_ptr_off_reg()
3662 verbose(env, "dereference of modified %s ptr R%d off=%d disallowed\n", in __check_ptr_off_reg()
3671 verbose(env, "variable %s access var_off=%s disallowed\n", in __check_ptr_off_reg()
3701 verbose(env, "R%d must point to kernel BTF\n", regno); in map_kptr_match_type()
3746 verbose(env, "invalid kptr access, R%d type=%s%s ", regno, in map_kptr_match_type()
3748 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
3750 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
3753 verbose(env, "\n"); in map_kptr_match_type()
3773 verbose(env, "kptr in map can only be accessed using BPF_MEM instruction mode\n"); in check_map_kptr_access()
3781 verbose(env, "store to referenced kptr disallowed\n"); in check_map_kptr_access()
3801 verbose(env, "BPF_ST imm must be 0 when storing to kptr at off=%u\n", in check_map_kptr_access()
3806 verbose(env, "kptr in map can only be accessed using BPF_LDX/BPF_STX/BPF_ST\n"); in check_map_kptr_access()
3838 verbose(env, "bpf_spin_lock cannot be accessed directly by load/store\n"); in check_map_access()
3847 verbose(env, "bpf_timer cannot be accessed directly by load/store\n"); in check_map_access()
3861 verbose(env, "kptr cannot be accessed indirectly by helper\n"); in check_map_access()
3865 verbose(env, "kptr access cannot have variable offset\n"); in check_map_access()
3869 verbose(env, "kptr access misaligned expected=%u off=%llu\n", in check_map_access()
3874 verbose(env, "kptr access size must be BPF_DW\n"); in check_map_access()
3944verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_packet_access()
3953 verbose(env, "R%d offset is outside of the packet\n", regno); in check_packet_access()
4003 verbose(env, "invalid bpf_context access off=%d size=%d\n", off, size); in check_ctx_access()
4012 verbose(env, "invalid access to flow keys off=%d size=%d\n", in check_flow_keys_access()
4029verbose(env, "R%d min value is negative, either use unsigned index or do a if (index >=0) check.\n… in check_sock_access()
4058 verbose(env, "R%d invalid %s access off=%d size=%d\n", in check_sock_access()
4124 verbose(env, in check_pkt_ptr_alignment()
4149 verbose(env, "misaligned %saccess off %s+%d+%d size %d\n", in check_generic_ptr_alignment()
4261 verbose(env, in check_max_stack_depth()
4271 verbose(env, "combined stack size of %d calls is %d. Too large\n", in check_max_stack_depth()
4296 verbose(env, "verifier bug. subprog has tail_call and async cb\n"); in check_max_stack_depth()
4309 verbose(env, "the call stack of %d frames is too deep !\n", in check_max_stack_depth()
4360 verbose(env, in __check_buffer_access()
4369 verbose(env, in __check_buffer_access()
4515 verbose(env, in check_ptr_to_btf_access()
4524 verbose(env, in check_ptr_to_btf_access()
4531 verbose(env, in check_ptr_to_btf_access()
4538 verbose(env, in check_ptr_to_btf_access()
4549 verbose(env, "only read is supported\n"); in check_ptr_to_btf_access()
4587 verbose(env, "map_ptr access not supported without CONFIG_DEBUG_INFO_BTF\n"); in check_ptr_to_map_access()
4592 verbose(env, "map_ptr access not supported for map type %d\n", in check_ptr_to_map_access()
4601 verbose(env, in check_ptr_to_map_access()
4608 verbose(env, "R%d is %s invalid negative access: off=%d\n", in check_ptr_to_map_access()
4614 verbose(env, "only read from %s is supported\n", tname); in check_ptr_to_map_access()
4684 verbose(env, "invalid unbounded variable-offset%s stack R%d\n", in check_stack_access_within_bounds()
4701 verbose(env, "invalid%s stack R%d off=%d size=%d\n", in check_stack_access_within_bounds()
4707 verbose(env, "invalid variable-offset%s stack R%d var_off=%s size=%d\n", in check_stack_access_within_bounds()
4743 verbose(env, "write to change key R%d not allowed\n", regno); in check_mem_access()
4758 verbose(env, "R%d leaks addr into map\n", value_regno); in check_mem_access()
4798 verbose(env, "R%d invalid mem access '%s'\n", regno, in check_mem_access()
4804 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4811 verbose(env, "R%d leaks addr into mem\n", value_regno); in check_mem_access()
4826 verbose(env, "R%d leaks addr into ctx\n", value_regno); in check_mem_access()
4883 verbose(env, "cannot write into packet\n"); in check_mem_access()
4888 verbose(env, "R%d leaks addr into packet\n", in check_mem_access()
4898 verbose(env, "R%d leaks addr into flow keys\n", in check_mem_access()
4908 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4932 verbose(env, "R%d cannot write into %s\n", in check_mem_access()
4947 verbose(env, "R%d invalid mem access '%s'\n", regno, in check_mem_access()
4978 verbose(env, "BPF_ATOMIC uses invalid atomic opcode %02x\n", insn->imm); in check_atomic()
4983 verbose(env, "invalid atomic operand size\n"); in check_atomic()
5006 verbose(env, "R%d leaks addr into mem\n", aux_reg); in check_atomic()
5012 verbose(env, "R%d leaks addr into mem\n", insn->src_reg); in check_atomic()
5020 verbose(env, "BPF_ATOMIC stores into R%d %s is not allowed\n", in check_atomic()
5089 verbose(env, "invalid zero-sized read\n"); in check_stack_range_initialized()
5121 verbose(env, "R%d%s variable offset stack access prohibited for !root, var_off=%s\n", in check_stack_range_initialized()
5179 verbose(env, "invalid%s read from stack R%d off %d+%d size %d\n", in check_stack_range_initialized()
5185 verbose(env, "invalid%s read from stack R%d var_off %s+%d size %d\n", in check_stack_range_initialized()
5214 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5230 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5241 verbose(env, "R%d cannot write into %s\n", regno, in check_helper_mem_access()
5283 verbose(env, "R%d type=%s ", regno, in check_helper_mem_access()
5285 verbose(env, "expected=%s\n", reg_type_str(env, PTR_TO_STACK)); in check_helper_mem_access()
5319 verbose(env, "R%d min value is negative, either use unsigned or 'var &= const'\n", in check_mem_size_reg()
5333 verbose(env, "R%d unbounded memory access, use 'var &= const' or 'if (var < const)'\n", in check_mem_size_reg()
5434 verbose(env, in process_spin_lock()
5440 verbose(env, in process_spin_lock()
5447 verbose(env, in process_spin_lock()
5451 verbose(env, in process_spin_lock()
5455 verbose(env, in process_spin_lock()
5461 verbose(env, "off %lld doesn't point to 'struct bpf_spin_lock'\n", in process_spin_lock()
5467 verbose(env, in process_spin_lock()
5474 verbose(env, "bpf_spin_unlock without taking a lock\n"); in process_spin_lock()
5478 verbose(env, "bpf_spin_unlock of different lock\n"); in process_spin_lock()
5495 verbose(env, in process_timer_func()
5501 verbose(env, "map '%s' has to have BTF in order to use bpf_timer\n", in process_timer_func()
5507 verbose(env, in process_timer_func()
5511 verbose(env, in process_timer_func()
5515 verbose(env, in process_timer_func()
5521 verbose(env, "off %lld doesn't point to 'struct bpf_timer' that is at %d\n", in process_timer_func()
5526 verbose(env, "verifier bug. Two map pointers in a timer helper\n"); in process_timer_func()
5544 verbose(env, in process_kptr_func()
5550 verbose(env, "map '%s' has to have BTF in order to use bpf_kptr_xchg\n", in process_kptr_func()
5557 verbose(env, "map '%s' has more than %d kptr\n", map_ptr->name, in process_kptr_func()
5560 verbose(env, "map '%s' has repeating kptr BTF tags\n", map_ptr->name); in process_kptr_func()
5562 verbose(env, "map '%s' has no valid kptr\n", map_ptr->name); in process_kptr_func()
5570 verbose(env, "off=%d doesn't point to kptr\n", kptr_off); in process_kptr_func()
5574 verbose(env, "off=%d kptr isn't referenced kptr\n", kptr_off); in process_kptr_func()
5613 verbose(env, "invalid map_ptr to access map->type\n"); in resolve_map_arg_type()
5623 verbose(env, "invalid arg_type for sockmap/sockhash\n"); in resolve_map_arg_type()
5757 verbose(env, "verifier internal error: unsupported arg type %d\n", arg_type); in check_reg_type()
5785 verbose(env, "R%d type=%s expected=", regno, reg_type_str(env, reg->type)); in check_reg_type()
5787 verbose(env, "%s, ", reg_type_str(env, compatible->types[j])); in check_reg_type()
5788 verbose(env, "%s\n", reg_type_str(env, compatible->types[j])); in check_reg_type()
5802 verbose(env, "verifier internal error: missing arg compatible BTF ID\n"); in check_reg_type()
5813 verbose(env, "verifier internal error:"); in check_reg_type()
5814 verbose(env, "R%d has non-overwritten BPF_PTR_POISON type\n", in check_reg_type()
5822 verbose(env, "R%d is of type %s but %s is expected\n", in check_reg_type()
5844 verbose(env, "cannot pass in dynptr at an offset\n"); in check_func_arg_reg_off()
5873 verbose(env, "R%d must have zero offset when passed to release func\n", in check_func_arg_reg_off()
5917 verbose(env, "R%d leaks addr into helper function\n", in check_func_arg()
5926 verbose(env, "helper access to the packet is not allowed\n"); in check_func_arg()
5962 verbose(env, "arg %d is an unacquired reference\n", regno); in check_func_arg()
5966 verbose(env, "R%d must be referenced when passed to release function\n", in check_func_arg()
5971 verbose(env, "verifier internal error: more than one release argument\n"); in check_func_arg()
5979 verbose(env, "verifier internal error: more than one arg with ref_obj_id R%d %u %u\n", in check_func_arg()
6005 verbose(env, in check_func_arg()
6025 verbose(env, "invalid map_ptr to access map->key\n"); in check_func_arg()
6041 verbose(env, "invalid map_ptr to access map->value\n"); in check_func_arg()
6051 verbose(env, "Helper has invalid btf_id in R%d\n", regno); in check_func_arg()
6065 verbose(env, "verifier internal error\n"); in check_func_arg()
6103 verbose(env, "Dynptr has to be an uninitialized dynptr\n"); in check_func_arg()
6111 verbose(env, "verifier internal error: multiple uninitialized dynptr args\n"); in check_func_arg()
6117 verbose(env, in check_func_arg()
6135 verbose(env, in check_func_arg()
6143 verbose(env, "R%d is not a known constant'\n", in check_func_arg()
6171 verbose(env, "R%d does not point to a readonly map'\n", regno); in check_func_arg()
6176 verbose(env, "R%d is not a constant address'\n", regno); in check_func_arg()
6181 verbose(env, "no direct value access support for this map type\n"); in check_func_arg()
6194 verbose(env, "direct value access on string failed\n"); in check_func_arg()
6200 verbose(env, "string is not zero-terminated\n"); in check_func_arg()
6242 verbose(env, "cannot update sockmap in this context\n"); in may_update_sockmap()
6383 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in check_map_func_compatibility()
6486 verbose(env, "cannot pass map_type %d into func %s#%d\n", in check_map_func_compatibility()
6665 verbose(env, "the call stack of %d frames is too deep\n", in __check_func_call()
6672 verbose(env, "verifier bug. Frame %d already allocated\n", in __check_func_call()
6685 verbose(env, "Caller passes invalid args into func#%d\n", in __check_func_call()
6690 verbose(env, in __check_func_call()
6763 verbose(env, "caller:\n"); in __check_func_call()
6765 verbose(env, "callee:\n"); in __check_func_call()
6825 verbose(env, "verifier bug. No program starts at insn %d\n", in check_func_call()
6843 verbose(env, "tail_call abusing map_ptr\n"); in set_map_elem_callback_state()
6850 verbose(env, "callback function not allowed for map\n"); in set_map_elem_callback_state()
6983 verbose(env, "cannot return stack pointer to the caller\n"); in prepare_func_exit()
6993 verbose(env, "R0 not a scalar value\n"); in prepare_func_exit()
7019 verbose(env, "returning from callee:\n"); in prepare_func_exit()
7021 verbose(env, "to caller at %d:\n", *insn_idx); in prepare_func_exit()
7071 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_map()
7084 verbose(env, "write into map forbidden\n"); in record_func_map()
7110 verbose(env, "kernel subsystem misconfigured verifier\n"); in record_func_key()
7146 verbose(env, "Unreleased reference id=%d alloc_insn=%d\n", in check_reference_leak()
7175 verbose(env, "verifier bug\n"); in check_bpf_snprintf_call()
7185 verbose(env, "Invalid format string\n"); in check_bpf_snprintf_call()
7197 verbose(env, "func %s#%d supported only for fentry/fexit/fmod_ret programs\n", in check_get_func_ip()
7206 verbose(env, "func %s#%d not supported for program type %d\n", in check_get_func_ip()
7262 verbose(env, "invalid func %s#%d\n", func_id_name(func_id), in check_helper_call()
7270 verbose(env, "unknown func %s#%d\n", func_id_name(func_id), in check_helper_call()
7277 verbose(env, "cannot call GPL-restricted function from non-GPL compatible program\n"); in check_helper_call()
7282 verbose(env, "helper call is not allowed in probe\n"); in check_helper_call()
7289 verbose(env, "kernel subsystem misconfigured func %s#%d: r1 != ctx\n", in check_helper_call()
7299 verbose(env, "kernel subsystem misconfigured func %s#%d\n", in check_helper_call()
7360 verbose(env, "func %s#%d reference has not been acquired before\n", in check_helper_call()
7370 verbose(env, "tail_call would lead to reference leak\n"); in check_helper_call()
7379 verbose(env, "get_local_storage() doesn't support non-zero flags\n"); in check_helper_call()
7405 verbose(env, "Unsupported reg type %s for bpf_dynptr_from_mem data\n", in check_helper_call()
7417 verbose(env, "BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_helper_call()
7428 verbose(env, "verifier internal error: meta.ref_obj_id already set\n"); in check_helper_call()
7441 verbose(env, "verifier internal error: no dynptr in bpf_dynptr_data()\n"); in check_helper_call()
7483 verbose(env, in check_helper_call()
7527 verbose(env, "unable to resolve the size of type '%s': %ld\n", in check_helper_call()
7559 verbose(env, "verifier internal error:"); in check_helper_call()
7560 verbose(env, "func %s has non-overwritten BPF_PTR_POISON return type\n", in check_helper_call()
7568 verbose(env, "invalid return type %u of func %s#%d\n", in check_helper_call()
7578 verbose(env, "unknown return type %u of func %s#%d\n", in check_helper_call()
7587 verbose(env, "verifier internal error: func %s#%d sets ref_obj_id more than once\n", in check_helper_call()
7625 verbose(env, err_str, func_id_name(func_id), func_id); in check_helper_call()
7699 verbose(env, "calling kernel function %s is not allowed\n", in check_kfunc_call()
7704 verbose(env, "destructive kfunc calls require CAP_SYS_BOOT capabilities\n"); in check_kfunc_call()
7722 verbose(env, "kfunc %s#%d reference has not been acquired before\n", in check_kfunc_call()
7735 verbose(env, "acquire kernel function does not return PTR_TO_BTF_ID\n"); in check_kfunc_call()
7749 verbose(env, in check_kfunc_call()
7854 verbose(env, "math between %s pointer and %lld is not allowed\n", in check_reg_sane_offset()
7860 verbose(env, "%s pointer offset %d is not allowed\n", in check_reg_sane_offset()
7866 verbose(env, "math between %s pointer and register with unbounded min value is not allowed\n", in check_reg_sane_offset()
7872 verbose(env, "value %lld makes %s pointer be out of bounds\n", in check_reg_sane_offset()
8104 verbose(env, "R%d has unknown scalar with mixed signed bounds, %s\n", in sanitize_err()
8108 verbose(env, "R%d has pointer with unsupported alu operation, %s\n", in sanitize_err()
8112 verbose(env, "R%d tried to %s from different maps, paths or scalars, %s\n", in sanitize_err()
8116 verbose(env, "R%d tried to %s beyond pointer bounds, %s\n", in sanitize_err()
8120 verbose(env, "R%d could not be pushed for speculative verification, %s\n", in sanitize_err()
8124 verbose(env, "verifier internal error: unknown reason (%d)\n", in sanitize_err()
8152 verbose(env, "R%d variable stack access prohibited for !root, var_off=%s off=%d\n", in check_stack_access_for_ptr_arithmetic()
8158 verbose(env, "R%d stack pointer arithmetic goes out of range, " in check_stack_access_for_ptr_arithmetic()
8186 verbose(env, "R%d pointer arithmetic of map value goes out of range, " in sanitize_check_bounds()
8239 verbose(env, in adjust_ptr_min_max_vals()
8246 verbose(env, "R%d pointer arithmetic on %s prohibited, null-check it first\n", in adjust_ptr_min_max_vals()
8262 verbose(env, "R%d pointer arithmetic on %s prohibited\n", in adjust_ptr_min_max_vals()
8343 verbose(env, "R%d tried to subtract pointer from scalar\n", in adjust_ptr_min_max_vals()
8352 verbose(env, "R%d subtraction from stack pointer prohibited\n", in adjust_ptr_min_max_vals()
8404 verbose(env, "R%d bitwise operator %s on pointer prohibited\n", in adjust_ptr_min_max_vals()
8409 verbose(env, "R%d pointer arithmetic with %s operator prohibited\n", in adjust_ptr_min_max_vals()
9192 verbose(env, "R%d pointer %s pointer prohibited\n", in adjust_reg_min_max_vals()
9230 verbose(env, "verifier internal error: unexpected ptr_reg\n"); in adjust_reg_min_max_vals()
9235 verbose(env, "verifier internal error: no src_reg\n"); in adjust_reg_min_max_vals()
9253 verbose(env, "BPF_NEG uses reserved fields\n"); in check_alu_op()
9260 verbose(env, "BPF_END uses reserved fields\n"); in check_alu_op()
9271 verbose(env, "R%d pointer arithmetic prohibited\n", in check_alu_op()
9285 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
9295 verbose(env, "BPF_MOV uses reserved fields\n"); in check_alu_op()
9325 verbose(env, in check_alu_op()
9362 verbose(env, "invalid BPF_ALU opcode %x\n", opcode); in check_alu_op()
9369 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
9378 verbose(env, "BPF_ALU uses reserved fields\n"); in check_alu_op()
9390 verbose(env, "div by zero\n"); in check_alu_op()
9399 verbose(env, "invalid shift %d\n", insn->imm); in check_alu_op()
10144 verbose(env, "invalid BPF_JMP/JMP32 opcode %x\n", opcode); in check_cond_jmp_op()
10150 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
10160 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
10167 verbose(env, "BPF_JMP/JMP32 uses reserved fields\n"); in check_cond_jmp_op()
10313 verbose(env, "R%d pointer comparison prohibited\n", in check_cond_jmp_op()
10332 verbose(env, "invalid BPF_LD_IMM insn\n"); in check_ld_imm()
10336 verbose(env, "BPF_LD_IMM64 uses reserved fields\n"); in check_ld_imm()
10370 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
10382 verbose(env, "missing btf func_info\n"); in check_ld_imm()
10386 verbose(env, "callback function not static\n"); in check_ld_imm()
10408 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_imm()
10450 verbose(env, "BPF_LD_[ABS|IND] instructions not allowed for this program type\n"); in check_ld_abs()
10455 verbose(env, "bpf verifier is misconfigured\n"); in check_ld_abs()
10462 verbose(env, "BPF_LD_[ABS|IND] uses reserved fields\n"); in check_ld_abs()
10477 verbose(env, "BPF_LD_[ABS|IND] cannot be mixed with socket references\n"); in check_ld_abs()
10482 verbose(env, "BPF_LD_[ABS|IND] cannot be used inside bpf_spin_lock-ed region\n"); in check_ld_abs()
10487 verbose(env, in check_ld_abs()
10558 verbose(env, "R0 leaks addr as return value\n"); in check_return_code()
10567 verbose(env, "In async callback the register R0 is not a known value (%s)\n", in check_return_code()
10581 verbose(env, "At subprogram exit the register R0 is not a scalar value (%s)\n", in check_return_code()
10661 verbose(env, "At program exit the register R0 is not a known value (%s)\n", in check_return_code()
10671 verbose(env, "Note, BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_return_code()
10765 verbose(env, "jump out of range from insn %d to %d\n", t, w); in push_insn()
10786 verbose(env, "back-edge from insn %d to %d\n", t, w); in push_insn()
10792 verbose(env, "insn state internal bug\n"); in push_insn()
10927 verbose(env, "visit_insn internal bug\n"); in check_cfg()
10935 verbose(env, "pop stack internal bug\n"); in check_cfg()
10942 verbose(env, "unreachable insn %d\n", i); in check_cfg()
10962 verbose(env, "LD_ABS is not allowed in subprogs without BTF\n"); in check_abnormal_return()
10966 verbose(env, "tail_call is not allowed in subprogs without BTF\n"); in check_abnormal_return()
11001 verbose(env, "number of funcs in func_info doesn't match number of subprogs\n"); in check_btf_func()
11009 verbose(env, "invalid func info rec size %u\n", urec_size); in check_btf_func()
11030 verbose(env, "nonzero tailing record in func info"); in check_btf_func()
11051 verbose(env, in check_btf_func()
11057 verbose(env, in check_btf_func()
11064 verbose(env, "func_info BTF section doesn't match subprog layout in BPF program\n"); in check_btf_func()
11071 verbose(env, "invalid type id %d in func info", in check_btf_func()
11085 verbose(env, "LD_ABS is only allowed in functions that return 'int'.\n"); in check_btf_func()
11089 verbose(env, "tail_call is only allowed in functions that return 'int'.\n"); in check_btf_func()
11167 verbose(env, "nonzero tailing record in line_info"); in check_btf_line()
11194 verbose(env, "Invalid line_info[%u].insn_off:%u (prev_offset:%u prog->len:%u)\n", in check_btf_line()
11202 verbose(env, in check_btf_line()
11211 verbose(env, "Invalid line_info[%u].line_off or .file_name_off\n", i); in check_btf_line()
11221 verbose(env, "missing bpf_line_info for func#%u\n", s); in check_btf_line()
11232 verbose(env, "missing bpf_line_info for %u funcs starting from func#%u\n", in check_btf_line()
11290 verbose(env, "nonzero tailing record in core_relo"); in check_core_relo()
11305 verbose(env, "Invalid core_relo[%u].insn_off:%u prog->len:%u\n", in check_core_relo()
11859 verbose(env, "propagating r%d\n", i); in propagate_precision()
11873 verbose(env, "propagating fp%d\n", in propagate_precision()
11957 verbose(env, "infinite loop detected at insn %d\n", insn_idx); in is_state_visited()
12174 verbose(env, "invalid insn idx %d insn_cnt %d\n", in do_check()
12183 verbose(env, in do_check()
12196 verbose(env, "\nfrom %d to %d%s: safe\n", in do_check()
12201 verbose(env, "%d: safe\n", env->insn_idx); in do_check()
12213 verbose(env, "\nfrom %d to %d%s:", in do_check()
12224 .cb_print = verbose, in do_check()
12233 verbose(env, "%d: ", env->insn_idx); in do_check()
12297 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
12313 verbose(env, "BPF_STX uses reserved fields\n"); in do_check()
12340 verbose(env, "same insn cannot be used with different pointers\n"); in do_check()
12347 verbose(env, "BPF_ST uses reserved fields\n"); in do_check()
12356 verbose(env, "BPF_ST stores into R%d %s is not allowed\n", in do_check()
12382 verbose(env, "BPF_CALL uses reserved fields\n"); in do_check()
12389 verbose(env, "function calls are not allowed while holding a lock\n"); in do_check()
12406 verbose(env, "BPF_JA uses reserved fields\n"); in do_check()
12419 verbose(env, "BPF_EXIT uses reserved fields\n"); in do_check()
12424 verbose(env, "bpf_spin_unlock is missing\n"); in do_check()
12484 verbose(env, "invalid BPF_LD mode\n"); in do_check()
12488 verbose(env, "unknown insn class %d\n", class); in do_check()
12549 verbose(env, "invalid module BTF object FD specified.\n"); in check_pseudo_btf_id()
12554verbose(env, "kernel is missing BTF, make sure CONFIG_DEBUG_INFO_BTF=y is specified in Kconfig.\n"… in check_pseudo_btf_id()
12563 verbose(env, "ldimm64 insn specifies invalid btf_id %d.\n", id); in check_pseudo_btf_id()
12569 verbose(env, "pseudo btf_id %d in ldimm64 isn't KIND_VAR.\n", id); in check_pseudo_btf_id()
12577 verbose(env, "ldimm64 failed to find the address for kernel symbol '%s'.\n", in check_pseudo_btf_id()
12612 verbose(env, "ldimm64 unable to resolve the size of type '%s': %ld\n", in check_pseudo_btf_id()
12682 verbose(env, "socket filter progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12687 verbose(env, "tracing progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12692 verbose(env, "sleepable progs cannot use bpf_spin_lock yet\n"); in check_map_prog_compatibility()
12699 verbose(env, "tracing progs cannot use bpf_timer yet\n"); in check_map_prog_compatibility()
12706 verbose(env, "offload device mismatch between prog and map\n"); in check_map_prog_compatibility()
12711 verbose(env, "bpf_struct_ops map cannot be used in prog\n"); in check_map_prog_compatibility()
12732 verbose(env, in check_map_prog_compatibility()
12766 verbose(env, "BPF_LDX uses reserved fields\n"); in resolve_pseudo_ldimm64()
12780 verbose(env, "invalid bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
12815 verbose(env, "unrecognized bpf_ld_imm64 insn\n"); in resolve_pseudo_ldimm64()
12823 verbose(env, "fd_idx without fd_array is invalid\n"); in resolve_pseudo_ldimm64()
12839 verbose(env, "fd %d is not pointing to valid bpf_map\n", in resolve_pseudo_ldimm64()
12858 verbose(env, "direct value offset of %u is not allowed\n", off); in resolve_pseudo_ldimm64()
12864 verbose(env, "no direct value access support for this map type\n"); in resolve_pseudo_ldimm64()
12871 verbose(env, "invalid access to map value pointer, value_size=%u off=%u\n", in resolve_pseudo_ldimm64()
12910 verbose(env, "only one cgroup storage of each type is allowed\n"); in resolve_pseudo_ldimm64()
12924 verbose(env, "unknown opcode %02x\n", insn->code); in resolve_pseudo_ldimm64()
13046 verbose(env, in bpf_patch_insn_data()
13390 verbose(env, "verifier bug. zext_dst is set, but no reg is defined\n"); in opt_subreg_zext_lo32_rnd_hi32()
13430 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13436 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13541 verbose(env, "bpf verifier narrow ctx access misconfigured\n"); in convert_ctx_accesses()
13560 verbose(env, "bpf verifier is misconfigured\n"); in convert_ctx_accesses()
13568 verbose(env, "bpf verifier narrow ctx load misconfigured\n"); in convert_ctx_accesses()
13756 verbose(env, "JIT doesn't support bpf-to-bpf calls\n"); in jit_subprogs()
13850 verbose(env, "calling kernel functions are not allowed in non-JITed programs\n"); in fixup_call_args()
13857 verbose(env, "tail_calls are not allowed in non-JITed programs with bpf-to-bpf calls\n"); in fixup_call_args()
13865 verbose(env, "callbacks are not allowed in non-JITed programs\n"); in fixup_call_args()
13887 verbose(env, "invalid kernel function call not eliminated in verifier pass\n"); in fixup_kfunc_call()
13896 verbose(env, "verifier internal error: kernel function descriptor not found for func_id %u\n", in fixup_kfunc_call()
13972 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14090 verbose(env, "adding tail call poke descriptor failed\n"); in do_misc_fixups()
14108 verbose(env, "tail_call abusing map_ptr\n"); in do_misc_fixups()
14210 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14397 verbose(env, in do_misc_fixups()
14411 verbose(env, "bpf verifier is misconfigured\n"); in do_misc_fixups()
14417 verbose(env, "tracking tail call prog failed\n"); in do_misc_fixups()
14706 verbose(env, in do_check_subprogs()
14731 verbose(env, "verification time %lld usec\n", in print_verification_stats()
14733 verbose(env, "stack depth "); in print_verification_stats()
14737 verbose(env, "%d", depth); in print_verification_stats()
14739 verbose(env, "+"); in print_verification_stats()
14741 verbose(env, "\n"); in print_verification_stats()
14743 verbose(env, "processed %d insns (limit %d) max_states_per_insn %d " in print_verification_stats()
14760 verbose(env, "struct ops programs must have a GPL compatible license\n"); in check_struct_ops_btf_id()
14767 verbose(env, "attach_btf_id %u is not a supported struct\n", in check_struct_ops_btf_id()
14775 verbose(env, "attach to invalid member idx %u of struct %s\n", in check_struct_ops_btf_id()
14785 verbose(env, "attach to invalid member %s(@idx %u) of struct %s\n", in check_struct_ops_btf_id()
14794 verbose(env, "attach to unsupported member %s of struct %s\n", in check_struct_ops_btf_id()
15094 verbose(env, "Syscall programs can only be sleepable\n"); in BTF_SET_START()
15100 verbose(env, "Only fentry/fexit/fmod_ret, lsm, and kprobe/uprobe programs can be sleepable\n"); in BTF_SET_START()
15230 verbose(env, "in-kernel BTF is malformed\n"); in bpf_check()