bpf: consider types listed in reg2btf_ids as trusted
authorAnton Protopopov <aspsk@isovalent.com>
Wed, 19 Jul 2023 09:29:49 +0000 (09:29 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Jul 2023 16:48:52 +0000 (09:48 -0700)
commit831deb2976de4458adae4daee56aa6f740ed4acc
treef89de69326bf7974e66fd4f2bf0fcbf162adc20a
parent8daf847714ec55fe590d1135e26c531658b2ac1c
bpf: consider types listed in reg2btf_ids as trusted

The reg2btf_ids array contains a list of types for which we can (and need)
to find a corresponding static BTF id. All the types in the list can be
considered as trusted for purposes of kfuncs.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Link: https://lore.kernel.org/r/20230719092952.41202-2-aspsk@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c