Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707071pxb; Tue, 5 Apr 2022 19:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRINkcrvzKiPtUxXN4VSX3Yy2frIL9Rg06Sgdlk9FZWkt2m2VyIuEhd2mudyA1AHSvURJJ X-Received: by 2002:aa7:c789:0:b0:413:605d:8d17 with SMTP id n9-20020aa7c789000000b00413605d8d17mr6508202eds.100.1649212763454; Tue, 05 Apr 2022 19:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212763; cv=none; d=google.com; s=arc-20160816; b=Lwxtz9jlnVNqtIKryMBQTK4VE8ru2JVkwHCUnjApPBR8Nm6ZmjBhl/flHLofoxy1e6 DKd0FfioN8/uYZgl5tX1dzRBzOwkiL78miZVmChXkqlvQaiPgKyaotug42hGiVN7JUwj 2O4RZ+9N4VRJqlcUFpoRjI/PBAE+yQHoApG2+bKh8MzbAUTazH3NhxChSYGyw/tRHOyu lzaADkMbGbdkvt1fk9SeAqKm5CPJJDyKl7cZ8yTPIS9vE/hGJ+ikyc4LK7HDAD6HeOi9 k7miVc8y0h94opfdI1DjeGcyU4fWlt14UDm4CflLPIeH3End8VjyvxP/yr13ge2iYoif V2fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JBoZcKOee+Jpy4QPa50R1gDoCednPNj45lcmkQKJ1ok=; b=vd3Jq5Gxy2MWVbU5/aqGShcBajYvbPybNP/XG03WafrcsmJ5MZBRYgMWzLPfI9Hj0c 4RwbDPQz0Wnsd48k5Djd9++HBXCdF2vRaVUQ/osdHh01Qkf0pr0ycpFhFg/vgbPV4q2y eQsBMQHRsqN79YNtf2PmwU30Vlq5j0tMGTO3YfSD33mPUoC6ydd668XpupkhngHH16E0 HG+hfjAhG9Hb6KCuDnlDAbIMk5/u8Ff25plQ088w6r2/rhY22FzzgpU3S3/p21ooXevM uOiEILcHlqIeV1bq2v7UL+PhPsftJNB5+vawwpkscrHFnkix1UKHc6SOoKFGOSWsgy34 wsaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ncSbLvfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy15-20020a1709069f0f00b006e7efa5c4fbsi5406528ejc.173.2022.04.05.19.38.58; Tue, 05 Apr 2022 19:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ncSbLvfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359350AbiDENMK (ORCPT + 99 others); Tue, 5 Apr 2022 09:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344199AbiDEJSh (ORCPT ); Tue, 5 Apr 2022 05:18:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6B09BB96; Tue, 5 Apr 2022 02:05:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC81F61571; Tue, 5 Apr 2022 09:05:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECA80C385A1; Tue, 5 Apr 2022 09:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149519; bh=Me7CbwGB6LaBferc2IlQNNffvc01zJ+0rfh2uBnaN6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ncSbLvfm1uQiNlC94uvrNolVa35XD+VFXqR5EfvJYE6552R9s2AY1NB7XFh1yk0U9 PZr6qMJcZCAdbdQnsjZli30RgccP/ERIJzw5N9NewpiLz6fLWK7UlT+jmHT8GtnfCF dQFWAOjQK1DkbU0HWBUH4nHrYR7hSN9hdFMzkQC0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linux Kernel Functional Testing , Jakub Kicinski , Shuah Khan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.16 0743/1017] selftests: tls: skip cmsg_to_pipe tests with TLS=n Date: Tue, 5 Apr 2022 09:27:36 +0200 Message-Id: <20220405070416.317631773@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski [ Upstream commit 5c7e49be96ea24776a5b5a07c732c477294add00 ] These are negative tests, testing TLS code rejects certain operations. They won't pass without TLS enabled, pure TCP accepts those operations. Reported-by: Linux Kernel Functional Testing Fixes: d87d67fd61ef ("selftests: tls: test splicing cmsgs") Signed-off-by: Jakub Kicinski Reviewed-by: Shuah Khan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- tools/testing/selftests/net/tls.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/tls.c b/tools/testing/selftests/net/tls.c index 6e468e0f42f7..5d70b04c482c 100644 --- a/tools/testing/selftests/net/tls.c +++ b/tools/testing/selftests/net/tls.c @@ -683,6 +683,9 @@ TEST_F(tls, splice_cmsg_to_pipe) char buf[10]; int p[2]; + if (self->notls) + SKIP(return, "no TLS support"); + ASSERT_GE(pipe(p), 0); EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); EXPECT_EQ(splice(self->cfd, NULL, p[1], NULL, send_len, 0), -1); @@ -703,6 +706,9 @@ TEST_F(tls, splice_dec_cmsg_to_pipe) char buf[10]; int p[2]; + if (self->notls) + SKIP(return, "no TLS support"); + ASSERT_GE(pipe(p), 0); EXPECT_EQ(tls_send_cmsg(self->fd, 100, test_str, send_len, 0), 10); EXPECT_EQ(recv(self->cfd, buf, send_len, 0), -1); -- 2.34.1