diff options
author | Joanne Koong <joannelkoong@gmail.com> | 2022-08-22 11:10:23 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-24 19:30:09 -0700 |
commit | 1be9ac87a75a4fc0e2cc254e412d2d67a58a7191 (patch) | |
tree | 73ff51aa3bc284c611e346b14f4ebe8b90f251b8 /tools/testing/selftests/net/.gitignore | |
parent | selftests/net: Add test for timing a bind request to a port with a populated bhash entry (diff) | |
download | wireguard-linux-1be9ac87a75a4fc0e2cc254e412d2d67a58a7191.tar.xz wireguard-linux-1be9ac87a75a4fc0e2cc254e412d2d67a58a7191.zip |
selftests/net: Add sk_bind_sendto_listen and sk_connect_zero_addr
This patch adds 2 new tests: sk_bind_sendto_listen and
sk_connect_zero_addr.
The sk_bind_sendto_listen test exercises the path where a socket's
rcv saddr changes after it has been added to the binding tables,
and then a listen() on the socket is invoked. The listen() should
succeed.
The sk_bind_sendto_listen test is copied over from one of syzbot's
tests: https://syzkaller.appspot.com/x/repro.c?x=1673a38df00000
The sk_connect_zero_addr test exercises the path where the socket was
never previously added to the binding tables and it gets assigned a
saddr upon a connect() to address 0.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/.gitignore')
-rw-r--r-- | tools/testing/selftests/net/.gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore index 89e2d4aa812a..bec5cf96984c 100644 --- a/tools/testing/selftests/net/.gitignore +++ b/tools/testing/selftests/net/.gitignore @@ -41,3 +41,5 @@ cmsg_sender unix_connect tap bind_bhash +sk_bind_sendto_listen +sk_connect_zero_addr |