Commit c2cc0ce7 authored by Yang Jihong's avatar Yang Jihong Committed by Alexei Starovoitov
Browse files

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: default avatarYang Jihong <yangjihong1@huawei.com>
Link: https://lore.kernel.org/r/20221208013724.257848-1-yangjihong1@huawei.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent d35af0a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {