bpf: Fix comment error in fixup_kfunc_call function
authorYang Jihong <yangjihong1@huawei.com>
Thu, 8 Dec 2022 01:37:24 +0000 (09:37 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 8 Dec 2022 18:05:05 +0000 (10:05 -0800)
insn->imm for kfunc is the relative address of __bpf_call_base,
instead of __bpf_base_call, Fix the comment error.

Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Link: https://lore.kernel.org/r/20221208013724.257848-1-yangjihong1@huawei.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c

index 1085dd185c95a1c3c8d5d8770f77690820a94df1..3194e9d9e4e4acdd51dde84c4712ba33020d5ead 100644 (file)
@@ -15350,7 +15350,7 @@ static int fixup_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn,
        }
 
        /* insn->imm has the btf func_id. Replace it with
-        * an address (relative to __bpf_base_call).
+        * an address (relative to __bpf_call_base).
         */
        desc = find_kfunc_desc(env->prog, insn->imm, insn->off);
        if (!desc) {