]> git.baikalelectronics.ru Git - kernel.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>
Fri, 6 Oct 2023 12:56:36 +0000 (14:56 +0200)
commitbf560c8a83cacdab01056db47eba74d162d19e48
tree3eee420c6cc2896335efa5d84c4e24fa8b96d7a1
parentf5a75b3d31d3a99ec7b7f8809d177d6fd5a81352
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