Re: [PATCH 0/4] selftests/bpf: A few edge case fixes

From: Ihor Solodrai

Date: Thu Jul 16 2026 - 17:09:03 EST


On 7/10/26 3:09 PM, Ricardo B. Marlière wrote:
> Hi,
>
> Please consider merging the following fixes, found by means of targeting
> BPF selftests through openQA [1].
>
> [1]: e.g. https://openqa.opensuse.org/tests/6087703
>
> 1/4 ("libbpf: Search /lib64 and /lib in resolve_full_path()")
> - Hit by testing an older SLES root filesystem.
>
> 2/4 ("selftests/bpf: Fix lsm_bdev dev_t encoding mismatch")
> - https://openqa.opensuse.org/tests/6087703/logfile?filename=test_progs.tap.txt#line-2706
>
> 3/4 ("selftests/bpf: Install resolve_btfids.test.o.BTF where the test expects it")
> - https://openqa.opensuse.org/tests/6087703/logfile?filename=test_progs.tap.txt#line-3332
>
> 4/4 ("selftests/bpf: Install bpftool where test_progs expects to find it")
> - https://openqa.opensuse.org/tests/6087703/logfile?filename=test_progs.tap.txt#line-806
> - https://openqa.opensuse.org/tests/6087703#step/test_bpftool_build_sh/1
> - https://openqa.opensuse.org/tests/6087703#step/test_doc_build_sh/1
>
> The build process is done at runtime with BPF_STRICT_BUILD=0:
> https://openqa.opensuse.org/tests/6087703/logfile?filename=serial_terminal.txt#line-1937
>
> Assisted-by: Claude Sonnet 5
> Signed-off-by: Ricardo B. Marlière <rbm@xxxxxxxx>
> ---
> Ricardo B. Marlière (4):
> selftests/bpf: Install bpftool where test_progs expects to find it
> selftests/bpf: Install resolve_btfids.test.o.BTF where the test expects it
> selftests/bpf: Fix lsm_bdev dev_t encoding mismatch
> libbpf: Search /lib64 and /lib in resolve_full_path()
>
> tools/lib/bpf/libbpf.c | 3 ++-
> tools/testing/selftests/bpf/Makefile | 5 ++++-
> tools/testing/selftests/bpf/prog_tests/lsm_bdev.c | 3 ++-
> 3 files changed, 8 insertions(+), 3 deletions(-)

Hi Ricardo,

Thank you for the patches, it's a good set of fixes. We don't use
make install on CI, so it's not tested regularly.

I have a couple of comments, sending in a bit.


> ---
> base-commit: a635d6748234582ea287c5ffeae28b9b23f91c7e
> change-id: 20260710-selftests-bpf_fixes-06e9a2eb3c67
>
> Best regards,
> --
> Ricardo B. Marlière <rbm@xxxxxxxx>
>