linux/tools/lib/bpf
Daniel Müller 06cd4e9d5d bpf: Correctly propagate errors up from bpf_core_composites_match
This change addresses a comment made earlier [0] about a missing return
of an error when __bpf_core_types_match is invoked from
bpf_core_composites_match, which could have let to us erroneously
ignoring errors.

Regarding the typedef name check pointed out in the same context, it is
not actually an issue, because callers of the function perform a name
check for the root type anyway. To make that more obvious, let's add
comments to the function (similar to what we have for
bpf_core_types_are_compat, which is called in pretty much the same
context).

[0]: https://lore.kernel.org/bpf/165708121449.4919.13204634393477172905.git-patchwork-notify@kernel.org/T/#m55141e8f8cfd2e8d97e65328fa04852870d01af6

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220707211931.3415440-1-deso@posteo.net
2022-07-08 15:31:43 -07:00
..
.gitignore
Build libbpf: move xsk.{c,h} into selftests/bpf 2022-06-28 13:13:32 -07:00
Makefile libbpf: move xsk.{c,h} into selftests/bpf 2022-06-28 13:13:32 -07:00
bpf.c libbpf: implement bpf_prog_query_opts 2022-06-29 13:21:52 -07:00
bpf.h libbpf: implement bpf_prog_query_opts 2022-06-29 13:21:52 -07:00
bpf_core_read.h libbpf: add bpf_core_type_matches() helper macro 2022-07-05 21:15:19 -07:00
bpf_endian.h
bpf_gen_internal.h
bpf_helpers.h libbpf: Disable SEC pragma macro on GCC 2022-07-08 15:11:34 -07:00
bpf_prog_linfo.c
bpf_tracing.h libbpf, riscv: Use a0 for RC register 2022-07-07 16:30:04 +02:00
btf.c libbpf: remove deprecated BTF APIs 2022-06-28 13:13:32 -07:00
btf.h libbpf: remove deprecated BTF APIs 2022-06-28 13:13:32 -07:00
btf_dump.c libbpf: remove deprecated BTF APIs 2022-06-28 13:13:32 -07:00
gen_loader.c
hashmap.c
hashmap.h
libbpf.c libbpf: Cleanup the legacy uprobe_event on failed add/attach_event() 2022-07-05 21:23:03 -07:00
libbpf.h libbpf: enforce strict libbpf 1.0 behaviors 2022-06-28 13:13:33 -07:00
libbpf.map libbpf: implement bpf_prog_query_opts 2022-06-29 13:21:52 -07:00
libbpf.pc.template
libbpf_common.h libbpf: cleanup LIBBPF_DEPRECATED_SINCE supporting macros for v0.x 2022-06-28 13:13:33 -07:00
libbpf_errno.c
libbpf_internal.h libbpf: enforce strict libbpf 1.0 behaviors 2022-06-28 13:13:33 -07:00
libbpf_legacy.h libbpf: fix up few libbpf.map problems 2022-06-28 13:13:33 -07:00
libbpf_probes.c libbpf: remove deprecated probing APIs 2022-06-28 13:13:32 -07:00
libbpf_version.h
linker.c libbpf: Add enum64 support for bpf linking 2022-06-07 10:20:43 -07:00
netlink.c libbpf: remove deprecated XDP APIs 2022-06-28 13:13:32 -07:00
nlattr.c
nlattr.h
relo_core.c bpf: Correctly propagate errors up from bpf_core_composites_match 2022-07-08 15:31:43 -07:00
relo_core.h bpf, libbpf: Add type match support 2022-07-05 21:14:25 -07:00
ringbuf.c
skel_internal.h
str_error.c
str_error.h
strset.c
strset.h
usdt.bpf.h
usdt.c libbpf: Remove unnecessary usdt_rel_ip assignments 2022-07-06 16:46:19 +02:00