bpf: Add namespace to BPF internal symbols
authorAlexei Starovoitov <ast@kernel.org>
Fri, 25 Apr 2025 01:45:42 +0000 (18:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:59:04 +0000 (07:59 +0200)
commit955f9ede52b8617e454fcfd4528f90bd23a30753
tree236190ef6925eb94dd15943f457825f698e8a413
parent3decda1a3c19b416cf792e4c68e6669a1285d0be
bpf: Add namespace to BPF internal symbols

[ Upstream commit f88886de0927a2adf4c1b4c5c1f1d31d2023ef74 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/bpf/bpf_devel_QA.rst
kernel/bpf/preload/bpf_preload_kern.c
kernel/bpf/syscall.c