diff options
| author | Slava Imameev <slava.imameev@crowdstrike.com> | 2026-03-14 19:21:27 +1100 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-03-24 13:36:32 -0700 |
| commit | e8571de53445614997a0352ffb0ac17fd0b3f31c (patch) | |
| tree | 6dd2a291bbb00d0fa7ce73b88a10fb872207a3e6 /net/bpf | |
| parent | 4145203841ba982c031f5717bbd1579d7655941d (diff) | |
selftests/bpf: Add trampolines single and multi-level pointer params test coverage
Add single and multi-level pointer parameters and return value test
coverage for BPF trampolines. Includes verifier tests for single and
multi-level pointers. The tests check verifier logs for pointers
inferred as scalar() type.
Signed-off-by: Slava Imameev <slava.imameev@crowdstrike.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260314082127.7939-3-slava.imameev@crowdstrike.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/bpf')
| -rw-r--r-- | net/bpf/test_run.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c index fb25184ed03b..4cd6b3ea1815 100644 --- a/net/bpf/test_run.c +++ b/net/bpf/test_run.c @@ -567,6 +567,23 @@ noinline void bpf_fentry_test_sinfo(struct skb_shared_info *sinfo) { } +noinline void bpf_fentry_test_ppvoid(void **pp) +{ +} + +noinline void bpf_fentry_test_pppvoid(void ***ppp) +{ +} + +noinline void bpf_fentry_test_ppfile(struct file **ppf) +{ +} + +noinline struct file **bpf_fexit_test_ret_ppfile(void) +{ + return (struct file **)NULL; +} + __bpf_kfunc int bpf_modify_return_test(int a, int *b) { *b += 1; |
