diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-09-21 04:38:31 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-21 17:12:39 +0000 |
| commit | 89835699ef4e0240758429e0e85d3bbd4154065e (patch) | |
| tree | 5105b7a53c7f1e4e1e12aeedfc8d297855834430 /include/linux | |
| parent | bca730ba6df6d62fa7f94011fe089e666ccb65ad (diff) | |
| download | linux-next-89835699ef4e0240758429e0e85d3bbd4154065e.tar.gz linux-next-89835699ef4e0240758429e0e85d3bbd4154065e.zip | |
selftests/bpf: Cover __uninit kfunc output argument slots
Keep coverage for per-slot output tracking separate from the immediate
single-output regression tests. Check that both constant-size outputs are
initialized, and that a variable-size output does not disable initialization
of an independent constant-size output.
Also exercise an output following a by-value parameter that occupies two
argument slots, and an output pointer passed on the stack. Run each case
with normal capabilities and with CAP_BPF and CAP_NET_ADMIN only. Leave the
stack-passed output uninitialized so its reduced-capability case fails if
the verifier treats it as an ordinary input buffer.
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20260921023843.411943-8-memxor@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
