Commit 77389a6d30a2 for kernel

commit 77389a6d30a262fa94d427c03a393c05c013665c
Author: Chuck Lever <cel@kernel.org>
Date:   Wed Nov 11 10:55:20 2026 -0800

    selftests: tls: Skip the zero_len tests when TLS is unavailable

    FIXTURE_SETUP(zero_len) returns early when ulp_sock_pair() reports
    that the TCP_ULP setsockopt failed, so on a kernel built without
    CONFIG_TLS the TLS_RX setsockopt never runs. TEST_F(zero_len, test)
    then sends its raw records over a plain TCP socket, which returns
    the ciphertext verbatim. All eight variants FAIL on a machine that
    lacks TLS, and those failures mask any real regression in the same
    run.

    Skip the test when the fixture recorded notls, as the other
    fixtures in this file do.

    Fixes: a61a3e961baf ("selftests: tls: add tests for zero-length records")
    Signed-off-by: Chuck Lever <cel@kernel.org>
    Link: https://patch.msgid.link/20261111185522.2859004-4-kuba@kernel.org
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>

diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c
index c4203401c4bf..ca47576220d3 100644
--- a/tools/testing/selftests/net/tls.c
+++ b/tools/testing/selftests/net/tls.c
@@ -2670,6 +2670,9 @@ TEST_F(zero_len, test)
 	int rec_off;
 	int i;

+	if (self->notls)
+		SKIP(return, "no TLS support");
+
 	for (i = 0; i < 4 && variant->recs[i]; i++)
 		EXPECT_EQ(send(self->fd, variant->recs[i]->cipher_data,
 			       variant->recs[i]->cipher_len, 0),