lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230614134747.329194-1-kuba.pawlak@canonical.com>
Date:   Wed, 14 Jun 2023 15:47:47 +0200
From:   Kuba Pawlak <kuba.pawlak@...onical.com>
To:     linux-kselftest@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] selftest: net: tls: fix no_pad

tls:no_pad exits the test when tls is not available. It should skip the
test like all others do

Signed-off-by: Kuba Pawlak <kuba.pawlak@...onical.com>
---
 tools/testing/selftests/net/tls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c
index e699548d4247dd57555a72ec1627566962128f73..ea3ec8463df993d80f0b70c4632b2a1e3c57b424 100644
--- a/tools/testing/selftests/net/tls.c
+++ b/tools/testing/selftests/net/tls.c
@@ -1727,7 +1727,7 @@ TEST(no_pad) {
 	ulp_sock_pair(_metadata, &fd, &cfd, &notls);
 
 	if (notls)
-		exit(KSFT_SKIP);
+		SKIP(return, "no TLS support");
 
 	ret = setsockopt(fd, SOL_TLS, TLS_TX, &tls12, sizeof(tls12));
 	EXPECT_EQ(ret, 0);
-- 
2.37.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ