]> xenbits.xensource.com Git - people/aperard/linux.git/commit
selftests: tls: swap the TX and RX sockets in some tests
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 12 Sep 2023 14:16:25 +0000 (16:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:46:37 +0000 (21:46 +0200)
commitca1d4e3c4dba556ca3e51a1531545fc16aaa5779
tree0cbad47179502bd4428561f581d8fca6aabaf1f3
parentb9eb384fd4fd50b00ed73f9f537c953e9d90739f
selftests: tls: swap the TX and RX sockets in some tests

[ Upstream commit c326ca98446e0ae4fee43a40acf79412b74cfedb ]

tls.sendmsg_large and tls.sendmsg_multiple are trying to send through
the self->cfd socket (only configured with TLS_RX) and to receive through
the self->fd socket (only configured with TLS_TX), so they're not using
kTLS at all. Swap the sockets.

Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/tls.c