Re: [PATCH v2 bpf-next 03/12] bpf: process in-kernel BTF

2019-10-11 Thread Andrii Nakryiko
On Wed, Oct 9, 2019 at 9:15 PM Alexei Starovoitov wrote: > > If in-kernel BTF exists parse it and prepare 'struct btf *btf_vmlinux' > for further use by the verifier. > In-kernel BTF is trusted just like kallsyms and other build artifacts > embedded into vmlinux. > Yet run this BTF image through B

[PATCH v2 bpf-next 03/12] bpf: process in-kernel BTF

2019-10-09 Thread Alexei Starovoitov
If in-kernel BTF exists parse it and prepare 'struct btf *btf_vmlinux' for further use by the verifier. In-kernel BTF is trusted just like kallsyms and other build artifacts embedded into vmlinux. Yet run this BTF image through BTF verifier to make sure that it is valid and it wasn't mangled during