eBPF-based security platform
docs: record the remaining libbpf downstream adjustment
Mahe Tardy28f4ab95c435
diff --git a/Documentation/contribute/code/developer-guide.rst b/Documentation/contribute/code/developer-guide.rstindex 3e247112..7c5847e2 100644--- a/Documentation/contribute/code/developer-guide.rst+++ b/Documentation/contribute/code/developer-guide.rst@@ -286,6 +286,10 @@ a change needs a newer libbpf or UAPI:``<kernel-tree>`` is a kernel checkout. Without ``KERNEL_SRC``,:src:`tools/bpf-deps/bpf-deps.sh` makes a shallow clone of bpf-next.+The source revision is recorded in ``vendor/libbpf/COMMIT``. After+refreshing, reapply the sole local change: set ``MAX_USED_PROGS`` in+``vendor/libbpf/bpf/gen_loader.c`` to 64 for the kernel-obs package.+Other make targets------------------diff --git a/vendor/libbpf/README.md b/vendor/libbpf/README.mdindex c4aa0ab0..edf62902 100644--- a/vendor/libbpf/README.md+++ b/vendor/libbpf/README.md@@ -28,10 +28,9 @@ shirudo provides its own definitions of exactly that surface. When anupdate makes libbpf need a new helper, the `libbpf.a` rebuild at the endof `bpf-deps` fails on the missing symbol; extend the shim.-`bpf/gen_loader.c` and `bpf/libbpf.c` carry one local change on top of-the recorded commit, 5de632280142 ("libbpf: validate generated loader-program counts"). `bpf-deps` overwrites both files, so re-apply that-change after a refresh until it is upstream.+`bpf/gen_loader.c` carries one local change on top of the recorded+commit: `MAX_USED_PROGS` is 64 instead of 32, as required by the+kernel-obs package.`.github/scripts/check-spdx.sh` holds every vendored `.c` and `.h` tothe licences in this table, so a refresh that brings in a file under