Martin KaFai Lau 1f443d0f2b 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>
2023-03-10 11:06:02 -08:00
..
2023-03-06 20:36:39 -08:00
2023-02-03 13:54:22 -03:00
2023-01-21 17:52:26 +00:00
2023-03-07 15:35:53 -08:00
2023-02-21 17:32:50 -08:00
2023-02-23 10:20:49 -08:00