selftests/bpf: Tests for sockmap/sockhash holding listening sockets
Now that SOCKMAP and SOCKHASH map types can store listening sockets, user-space and BPF API is open to a new set of potential pitfalls. Exercise the map operations, with extra attention to code paths susceptible to races between map ops and socket cloning, and BPF helpers that work with SOCKMAP/SOCKHASH to gain confidence that all works as expected. Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20200218171023.844439-12-jakub@cloudflare.com
This commit is contained in:

committed by
Daniel Borkmann

parent
11318ba8ca
commit
44d28be2b8
1496
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
Normal file
1496
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user