diff options
| author | Martin KaFai Lau <[email protected]> | 2020-09-25 00:04:21 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-09-25 20:58:02 +0000 |
| commit | 5d13746dd8359e1d0b354b557ebb36e8e1939a6c (patch) | |
| tree | 092b083e6dd22a5350f77436f3fd5809cf700ce6 /tools/testing/selftests/bpf/prog_tests/sock_fields.c | |
| parent | bpf: Change bpf_sk_assign to accept ARG_PTR_TO_BTF_ID_SOCK_COMMON (diff) | |
| download | kernel-5d13746dd8359e1d0b354b557ebb36e8e1939a6c.tar.gz kernel-5d13746dd8359e1d0b354b557ebb36e8e1939a6c.zip | |
bpf: selftest: Add ref_tracking verifier test for bpf_skc casting
The patch tests for:
1. bpf_sk_release() can be called on a tcp_sock btf_id ptr.
2. Ensure the tcp_sock btf_id pointer cannot be used
after bpf_sk_release().
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Lorenz Bauer <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sock_fields.c')
0 files changed, 0 insertions, 0 deletions
