bpf: Fix a verifier message for alloc size helper arg
authorBrendan Jackman <jackmanb@google.com>
Tue, 12 Jan 2021 12:39:13 +0000 (12:39 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 12 Jan 2021 20:41:17 +0000 (21:41 +0100)
commit28a8add64181059034b7f281491132112cd95bb4
tree60a8e98dbe84aa1cf8df5dd9123bd725b605ad1f
parentc6458e72f6fd6ac7e390da0d9abe8446084886e5
bpf: Fix a verifier message for alloc size helper arg

The error message here is misleading, the argument will be rejected unless
it is a known constant.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210112123913.2016804-1-jackmanb@google.com
kernel/bpf/verifier.c