From: Daniel Borkmann Date: Sat, 2 Jun 2018 21:06:33 +0000 (+0200) Subject: bpf: fixup error message from gpl helpers on license mismatch X-Git-Tag: v5.15~8692^2~9^2~9^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fe2867cdf088ffb2dc5aed6cdcf757b4c62476c;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Alexei Starovoitov Acked-by: Jesper Dangaard Brouer Acked-by: Song Liu Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 1fd9667b..4f4786e 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -2462,7 +2462,7 @@ static int check_helper_call(struct bpf_verifier_env *env, int func_id, int insn /* eBPF programs must be GPL compatible to use GPL-ed functions */ if (!env->prog->gpl_compatible && fn->gpl_only) { - verbose(env, "cannot call GPL only function from proprietary program\n"); + verbose(env, "cannot call GPL-restricted function from non-GPL compatible program\n"); return -EINVAL; }