From: Alexei Starovoitov Date: Tue, 27 Apr 2021 01:37:14 +0000 (-0700) Subject: Merge branch 'CO-RE relocation selftests fixes' X-Git-Tag: v5.13-rc1~94^2~7^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=927315041828fcbead6d2ace38c6dee5af95e40f;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'CO-RE relocation selftests fixes' Andrii Nakryiko says: ==================== Lorenz Bauer noticed that core_reloc selftest has two inverted CHECK() conditions, allowing failing tests to pass unnoticed. Fixing that opened up few long-standing (field existence and direct memory bitfields) and one recent failures (BTF_KIND_FLOAT relos). This patch set fixes core_reloc selftest to capture such failures reliably in the future. It also fixes all the newly failing tests. See individual patches for details. This patch set also completes a set of ASSERT_xxx() macros, so now there should be a very little reason to use verbose and error-prone generic CHECK() macro. v1->v2: - updated bpf_core_fields_are_compat() comment to mention FLOAT (Lorenz). Cc: Lorenz Bauer ==================== Signed-off-by: Alexei Starovoitov --- 927315041828fcbead6d2ace38c6dee5af95e40f