From: Andrii Nakryiko <andriin@xxxxxx> This patch set fixes bug in btf_dedup_is_equiv() check mishandling equivalence comparison between VOID kind in candidate type graph versus anonymous non-VOID kind in canonical type graph. Patch #1 fixes bug, by comparing candidate and canonical kinds for equality, before proceeding to kind-specific checks. Patch #2 adds a test case testing this specific scenario. Andrii Nakryiko (2): libbpf: fix btf_dedup equivalence check handling of different kinds selftests/bpf: add btf_dedup test for VOID equivalence check tools/lib/bpf/btf.c | 3 ++ tools/testing/selftests/bpf/test_btf.c | 47 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) -- 2.17.1