diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2023-03-08 09:59:35 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-10 22:06:02 +0300 |
| commit | 1f443d0f2b5702bad5f03aab544858ddd33999b7 (patch) | |
| tree | 2df4ef0df9e8eda139040e756dba148d9cb2c652 /tools/perf/scripts/python/compaction-times.py | |
| parent | 57ef77152b58770cbd54d624babd8f5d90805ea7 (diff) | |
| download | linux-1f443d0f2b5702bad5f03aab544858ddd33999b7.tar.xz | |
selftests/bpf: Check freeing sk->sk_local_storage with sk_local_storage->smap is NULL
This patch tweats the socket_bind bpf prog to test the
local_storage->smap == NULL case in the bpf_local_storage_free()
code path. The idea is to create the local_storage with
the sk_storage_map's selem first. Then add the sk_storage_map2's selem
and then delete the earlier sk_storeage_map's selem.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20230308065936.1550103-17-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
