On 10/14/22 5:24 PM, Stanislav Fomichev wrote:
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c index eba603cec2c5..35c07afac924 100644 --- a/kernel/bpf/btf.c +++ b/kernel/bpf/btf.c @@ -4436,6 +4436,11 @@ static int btf_func_proto_check(struct btf_verifier_env *env, return -EINVAL; }+ if (btf_type_is_resolve_source_only(ret_type)) {+ btf_verifier_log_type(env, t, "Invalid return type"); + return -EINVAL; + }
Thanks for the fix. It is applied to the bpf tree.