]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
libbpf: Prevent loading vmlinux BTF twice
authorAndrii Nakryiko <andriin@fb.com>
Wed, 24 Jun 2020 04:38:05 +0000 (21:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 24 Jun 2020 14:08:17 +0000 (16:08 +0200)
commit192b6638eea5d40c99964291671fc0371b858f6e
treeaed8438045c9eff287d4c183bd90f0ab59a76af2
parent135c783f4794fbdeace4a969dea6eabd27f8a501
libbpf: Prevent loading vmlinux BTF twice

Prevent loading/parsing vmlinux BTF twice in some cases: for CO-RE relocations
and for BTF-aware hooks (tp_btf, fentry/fexit, etc).

Fixes: a6ed02cac690 ("libbpf: Load btf_vmlinux only once per object.")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200624043805.1794620-1-andriin@fb.com
tools/lib/bpf/libbpf.c