Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bpf: Drop imprecise log message

Now it is possible for global function to have a pointer argument that
points to something different than struct. Drop the irrelevant log
message and keep the logic same.

Fixes: e5069b9c23b3 ("bpf: Support pointers in global func args")
Signed-off-by: Dmitrii Banshchikov <me@ubique.spb.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210223090416.333943-1-me@ubique.spb.ru

authored by

Dmitrii Banshchikov and committed by
Daniel Borkmann
f4eda8b6 53f523f3

-2
-2
kernel/bpf/btf.c
··· 4321 4321 * is not supported yet. 4322 4322 * BPF_PROG_TYPE_RAW_TRACEPOINT is fine. 4323 4323 */ 4324 - if (log->level & BPF_LOG_LEVEL) 4325 - bpf_log(log, "arg#%d type is not a struct\n", arg); 4326 4324 return NULL; 4327 4325 } 4328 4326 tname = btf_name_by_offset(btf, t->name_off);