diff options
| author | Emil Tsalapatis <emil@etsalapatis.com> | 2026-06-02 03:41:17 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-06-02 04:42:33 +0300 |
| commit | 3e924e9272c80939677aa6902aced311c85fe48c (patch) | |
| tree | 07acca4e2c827a181d46286257f5deb1a6759f3f /include/linux/debugobjects.h | |
| parent | 5ab4bc67d818ba27388d64cb9c52cb0c3bdac254 (diff) | |
| download | linux-3e924e9272c80939677aa6902aced311c85fe48c.tar.xz | |
bpf: Allow subprogs to return arena pointers
BPF subprogs currently only return void or scalar values. However,
it is also safe to return arena pointers between subprogs in the same
BPF program: Arena pointers are guaranteed to be safe for both programs
at any point. Expand the verifier to permit returning an arena pointer
to the caller.
The main subprog is still not allowed to return an arena pointer because
arena pointers are internal to the BPF program, and the return values
permitted for each main subprog depend on the program type anyway.
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260602004120.17087-4-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
