]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Cover listener cloning with progs attached to sockmap
authorJakub Sitnicki <jakub@cloudflare.com>
Sat, 21 Jan 2023 12:41:46 +0000 (13:41 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Jan 2023 05:32:55 +0000 (21:32 -0800)
commitc88ea16a8f892bce3bfb3f6a0d91b2bb27df8f59
tree16556640aaa91c3da3674977e4519f224d758e4d
parentb4ea530d024ca6095fc80290075893a5b7136516
selftests/bpf: Cover listener cloning with progs attached to sockmap

Today we test if a child socket is cloned properly from a listening socket
inside a sockmap only when there are no BPF programs attached to the map.

A bug has been reported [1] for the case when sockmap has a verdict program
attached. So cover this case as well to prevent regressions.

[1]: https://lore.kernel.org/r/00000000000073b14905ef2e7401@google.com

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20230113-sockmap-fix-v2-4-1e0ee7ac2f90@cloudflare.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c