diff options
| author | Martin KaFai Lau <[email protected]> | 2023-09-01 23:11:29 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-09-06 09:08:47 +0000 |
| commit | a96d1cfb2da040bdf692d22022371b249742abb2 (patch) | |
| tree | a310d28eccbff265cff894c14d51756474e04d25 /tools/testing/selftests/bpf/progs/bpf_tracing_net.h | |
| parent | bpf: bpf_sk_storage: Fix the missing uncharge in sk_omem_alloc (diff) | |
| download | kernel-a96d1cfb2da040bdf692d22022371b249742abb2.tar.gz kernel-a96d1cfb2da040bdf692d22022371b249742abb2.zip | |
selftests/bpf: Check bpf_sk_storage has uncharged sk_omem_alloc
This patch checks the sk_omem_alloc has been uncharged by bpf_sk_storage
during the __sk_destruct.
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tracing_net.h')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/bpf_tracing_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h index cfed4df490f3..0b793a102791 100644 --- a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h +++ b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h @@ -88,6 +88,7 @@ #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr #define sk_flags __sk_common.skc_flags #define sk_reuse __sk_common.skc_reuse +#define sk_cookie __sk_common.skc_cookie #define s6_addr32 in6_u.u6_addr32 |
