diff options
| author | Amery Hung <ameryhung@gmail.com> | 2026-09-28 11:53:29 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-29 10:35:12 +0000 |
| commit | 03f312c2cbd5ec0acb14f02701181af1ad0b8a08 (patch) | |
| tree | 223db30784fb026491cc1501fc41213149ca82ab /tools/testing/selftests/bpf/progs | |
| parent | 3886a9fc38de0c4e03525be03570ea1473176479 (diff) | |
| download | linux-next-03f312c2cbd5ec0acb14f02701181af1ad0b8a08.tar.gz linux-next-03f312c2cbd5ec0acb14f02701181af1ad0b8a08.zip | |
bpf: Check subprog context arguments in the common path
Subprog and helper/kfunc context arguments require PTR_TO_CTX with an
acceptable offset. Route subprog context arguments through
check_func_arg() and update the verifier-log expectation.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20260928185334.1004200-7-ameryhung@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/test_global_func5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_global_func5.c b/tools/testing/selftests/bpf/progs/test_global_func5.c index 257c0569ff98..4573ecd96aa0 100644 --- a/tools/testing/selftests/bpf/progs/test_global_func5.c +++ b/tools/testing/selftests/bpf/progs/test_global_func5.c @@ -26,7 +26,7 @@ int f3(int val, struct __sk_buff *skb) } SEC("tc") -__failure __msg("expects pointer to ctx") +__failure __msg("R2 type=fp expected=ctx") int global_func5(struct __sk_buff *skb) { return f1(skb) + f2(2, skb) + f3(3, skb); |
