summaryrefslogtreecommitdiffstats
path: root/kernel/bpf
diff options
context:
space:
mode:
authorYang Jihong <yangjihong1@huawei.com>2022-12-08 09:37:24 +0800
committerAlexei Starovoitov <ast@kernel.org>2022-12-08 10:05:05 -0800
commitc2cc0ce72a5ed3e01705e14221d97e96ed7a37b8 (patch)
treefea6550b0ed90cf468afc233e696a5e94ed7057c /kernel/bpf
parentd35af0a7feb077c43ff0233bba5a8c6e75b73e35 (diff)
downloadlinux-c2cc0ce72a5ed3e01705e14221d97e96ed7a37b8.tar.bz2
bpf: Fix comment error in fixup_kfunc_call function
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>
Diffstat (limited to 'kernel/bpf')
-rw-r--r--kernel/bpf/verifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 1085dd185c95..3194e9d9e4e4 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -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) {