]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Move BTF checking logic into check_btf.c
authorAlexei Starovoitov <ast@kernel.org>
Sun, 12 Apr 2026 15:29:35 +0000 (08:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 12 Apr 2026 19:37:04 +0000 (12:37 -0700)
commit99a832a2b5b8a8ecc1a2bdd64017892caf4aa096
treeb93a7003f5e4da0ff2e225e300816ae697a7cc70
parented0b9710bd2efbe663d89728cd9c680c31c6a4e3
bpf: Move BTF checking logic into check_btf.c

BTF validation logic is independent from the main verifier.
Move it into check_btf.c

Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20260412152936.54262-7-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_verifier.h
kernel/bpf/Makefile
kernel/bpf/check_btf.c [new file with mode: 0644]
kernel/bpf/verifier.c