Skip to content

Commit

Permalink
selftests/bpf: Tests for sockmap/sockhash holding listening sockets
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jakub Sitnicki authored and Daniel Borkmann committed Feb 21, 2020
1 parent 11318ba commit 44d28be
Show file tree
Hide file tree
Showing 2 changed files with 1,594 additions and 0 deletions.
Loading

0 comments on commit 44d28be

Please sign in to comment.