s | | Important issue | **YES** -- build fix category (prevents compilation/linking) | | Small and contained | **YES** -- 2 lines changed, only reordering flags | | No new features | **YES** -- pure fix, no new behavior | | Applies cleanly | **YES** -- the affected lines are identical in 6.18.y and 6.19.y | ### 6. Risk Assessment **Risk: Near zero.** This change only affects static linking behavior. Dynamic linking is unaffected by library ordering because the dynamic linker resolves all symbols at runtime. The fix is trivially correct -- it's a well-known requirement that in static linking, if library A depends on library B, then `-lA` must precede `-lB`. ### 7. User Impact Users building bpftool statically (common in container/embedded environments where static binaries are preferred) are completely blocked from building on 6.18+ without this fix. The selftests/bpf build is also broken when `EXTRA_LDFLAGS=-static` is passed. ### 8. Dependency Check The fix is completely self-contained. It has no dependencies on any other commit and can be applied independently. It only requires that the `-lcrypto` dependency exists in the target tree (which it does in 6.18.y and 6.19.y). ### Summary This is a textbook stable backport candidate: a small, obvious, zero- risk build fix that prevents a complete static linking failure in bpftool on kernels 6.18+. Build fixes are explicitly listed as appropriate for stable trees in the stable kernel rules. The fix applies cleanly to the affected stable trees (6.18.y and 6.19.y) since the buggy lines are identical. **YES** tools/bpf/bpftool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile index 5442073a2e428..519ea5cb8ab1c 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -130,8 +130,8 @@ include $(FEATURES_DUMP) endif endif -LIBS = $(LIBBPF) -lelf -lz -lcrypto -LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lz -lcrypto +LIBS = $(LIBBPF) -lelf -lcrypto -lz +LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lcrypto -lz ifeq ($(feature-libelf-zstd),1) LIBS += -lzstd -- 2.51.0[PATCH AUTOSEL 6.19-6.18] bpftool: Fix dependencies for static buildSasha Levin undefinedpatches@lists.linux.dev, stable@vger.kernel.org undefined undefined undefined undefined undefined undefined¹H…ôU