summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2025-04-24 18:45:42 -0700
committerAndrii Nakryiko <andrii@kernel.org>2025-04-25 09:21:23 -0700
commitf88886de0927a2adf4c1b4c5c1f1d31d2023ef74 (patch)
tree1f2b41b41d633f1d09d4c20b59505cf93e305b6a /Documentation
parent6ae003adc029c74e7f97cc65dc1e79109a1f2d67 (diff)
downloadlinux-f88886de0927a2adf4c1b4c5c1f1d31d2023ef74.tar.gz
linux-f88886de0927a2adf4c1b4c5c1f1d31d2023ef74.tar.bz2
linux-f88886de0927a2adf4c1b4c5c1f1d31d2023ef74.zip
bpf: Add namespace to BPF internal symbols
Add namespace to BPF internal symbols used by light skeleton to prevent abuse and document with the code their allowed usage. Fixes: b1d18a7574d0 ("bpf: Extend sys_bpf commands for bpf_syscall programs.") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/bpf/20250425014542.62385-1-alexei.starovoitov@gmail.com
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/bpf/bpf_devel_QA.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/bpf/bpf_devel_QA.rst b/Documentation/bpf/bpf_devel_QA.rst
index de27e1620821..0acb4c9b8d90 100644
--- a/Documentation/bpf/bpf_devel_QA.rst
+++ b/Documentation/bpf/bpf_devel_QA.rst
@@ -382,6 +382,14 @@ In case of new BPF instructions, once the changes have been accepted
into the Linux kernel, please implement support into LLVM's BPF back
end. See LLVM_ section below for further information.
+Q: What "BPF_INTERNAL" symbol namespace is for?
+-----------------------------------------------
+A: Symbols exported as BPF_INTERNAL can only be used by BPF infrastructure
+like preload kernel modules with light skeleton. Most symbols outside
+of BPF_INTERNAL are not expected to be used by code outside of BPF either.
+Symbols may lack the designation because they predate the namespaces,
+or due to an oversight.
+
Stable submission
=================