selftests: tls: check that disconnect does nothing
authorJakub Kicinski <kuba@kernel.org>
Fri, 4 Apr 2025 18:03:34 +0000 (11:03 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Apr 2025 09:38:49 +0000 (11:38 +0200)
commita1328a671e1c93a3513c286a05ff0abe6698d891
treecfbda2e0aa0173ef7b04eb4e395367f632a74bec
parent5071a1e606b30c0c11278d3c6620cd6a24724cf6
selftests: tls: check that disconnect does nothing

"Inspired" by syzbot test, pre-queue some data, disconnect()
and try to receive(). This used to trigger a warning in TLS's strp.
Now we expect the disconnect() to have almost no effect.

Link: https://lore.kernel.org/67e6be74.050a0220.2f068f.007e.GAE@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/20250404180334.3224206-2-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/tls.c