>     libbpf: Search /lib64 and /lib in resolve_full_path()
>
>     attach_probe/uprobe-lib and uprobe_autoattach selftests fail with "failed
>     to resolve full path for libc.so.6" on older non-usrmerged distros, where
>     libc.so.6 lives under a top-level /lib64 or /lib rather than /usr/lib64 or
>     /usr/lib. Add /lib64:/lib to the search paths, alongside the existing
>     /usr/lib64:/usr/lib and Debian multiarch entries.
>
>     Signed-off-by: Ricardo B. Marlière <[email protected]>

This looks like a bug fix for the shared-library search path.  Should
this include a Fixes: tag?

resolve_full_path() was introduced with a search-path list of only
LD_LIBRARY_PATH and "/usr/lib64:/usr/lib", which omitted the top-level
/lib64 and /lib directories from the start.  The later addition of the
Debian multiarch /lib/<triple> paths did not add /lib64:/lib either, so
the omission has existed since the function was created:

  Fixes: 1ce3a60e3c28 ("libbpf: auto-resolve programs/libraries when necessary 
for uprobes")


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/29127668708

Reply via email to