Skip to content

Commit 3fe2867

Browse files
borkmannAlexei Starovoitov
authored andcommitted
bpf: fixup error message from gpl helpers on license mismatch
Stating 'proprietary program' in the error is just silly since it can also be a different open source license than that which is just not compatible. Reference: https://twitter.com/majek04/status/998531268039102465 Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent be08815 commit 3fe2867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/verifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ static int check_helper_call(struct bpf_verifier_env *env, int func_id, int insn
24622462

24632463
/* eBPF programs must be GPL compatible to use GPL-ed functions */
24642464
if (!env->prog->gpl_compatible && fn->gpl_only) {
2465-
verbose(env, "cannot call GPL only function from proprietary program\n");
2465+
verbose(env, "cannot call GPL-restricted function from non-GPL compatible program\n");
24662466
return -EINVAL;
24672467
}
24682468

0 commit comments

Comments
 (0)