Message ID | 88e3ab23029d726a2703adcf6af8356f7a2d3483.1684316821.git.legion@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1008030vqo; Wed, 17 May 2023 02:59:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ASPxPOqJXeqk50qwteTJpc1iJujeEn25xLJWPl8lcP7J21QVBZx6sH5SWDqP5mgX5VDWF X-Received: by 2002:a05:6a20:8f10:b0:101:1e75:78e with SMTP id b16-20020a056a208f1000b001011e75078emr2101701pzk.14.1684317540614; Wed, 17 May 2023 02:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684317540; cv=none; d=google.com; s=arc-20160816; b=QbJiZ3j1Q4dre1s82NkZU7zQFM+B7gh/guqHcxjMJ/CbsVlC8T5Ul3j8R2uUD9N5PC dLSCdsXMHD9E1yLWhfW5JwCWQ/5yJTUE2aR/V6qv82jcr/+Zav9eh1w4vm08jUXB6X1P VvW5JqSQ9+fzV8Q3CzxrfiJ7445livNfRo0rtg9bnq9VSlHDXhZPWZCbkbnEivSnOcJm OPRNVB8qxLDuqlCpGXvqCDz7W0zbEVZ2m69bRf1iofbG38PWwML/iUVxXvFHJkQSw/8T FVffHBSPQjbyATHkEziJ04QADtTZITqISv/hNiPsuIVHZmlfRWab2KfJHhbQ8pkRLez+ Rl3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+TrGGYpc8gX1RgupSmsZZjkoApgX5J0kXOmmT/eo4WU=; b=OXm0ekWJLmR16/QePyw2Na3owbSUQ0+G5JZtOeBpTusyasBu9MKMHActFaNa6qzxRb Uz4Gdx+trkRZFxiku9iTUT0uuc7ou7yohWIcMtmWOqmIOWANkcbYWadtihPT58IxwpWB ZYgnXjRCn44wopHcm2dSxSxtMcm8zUaRsAfL3YieiKOFCrKcMB/ckrVMMK7/r2me3Dmi aYt9kXntPFCvaJJhFCojkTE5TWAVaLM8AbLsp1U/M55g6lFBa8LAx/qZdPA94EcthOhn oqP31qAhZh3nw36kpTOeT5gnJIOeOVCmYXnoQKMsR9Vgqho0oNVJeQevGem8MQcqmWfS r93g== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp18-20020a17090b4a9200b0025348666bfcsi642015pjb.93.2023.05.17.02.58.45; Wed, 17 May 2023 02:59:00 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229623AbjEQJwU (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Wed, 17 May 2023 05:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjEQJwT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 May 2023 05:52:19 -0400 X-Greylist: delayed 87 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 17 May 2023 02:52:17 PDT Received: from us-smtp-delivery-44.mimecast.com (unknown [207.211.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2D9420B for <linux-kernel@vger.kernel.org>; Wed, 17 May 2023 02:52:17 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-75-yiFmWgEMNPO1yR4btlEE4A-1; Wed, 17 May 2023 05:50:31 -0400 X-MC-Unique: yiFmWgEMNPO1yR4btlEE4A-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DE5983C0F66B; Wed, 17 May 2023 09:50:30 +0000 (UTC) Received: from comp-core-i7-2640m-0182e6.redhat.com (unknown [10.45.224.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 808B7492B01; Wed, 17 May 2023 09:50:29 +0000 (UTC) From: Alexey Gladkov <legion@kernel.org> To: LKML <linux-kernel@vger.kernel.org>, Alexei Starovoitov <ast@kernel.org>, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Andrii Nakryiko <andrii@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Roberto Sassu <roberto.sassu@huawei.com>, Stanislav Fomichev <sdf@google.com> Subject: [RESEND PATCH v1] selftests/bpf: Do not use sign-file as testcase Date: Wed, 17 May 2023 11:49:46 +0200 Message-Id: <88e3ab23029d726a2703adcf6af8356f7a2d3483.1684316821.git.legion@kernel.org> In-Reply-To: <88e3ab23029d726a2703adcf6af8356f7a2d3483.1682607419.git.legion@kernel.org> References: <88e3ab23029d726a2703adcf6af8356f7a2d3483.1682607419.git.legion@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RDNS_NONE,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764343516634317297?= X-GMAIL-MSGID: =?utf-8?q?1766134949300604681?= |
Series |
[RESEND,v1] selftests/bpf: Do not use sign-file as testcase
|
|
Commit Message
Alexey Gladkov
May 17, 2023, 9:49 a.m. UTC
The sign-file utility (from scripts/) is used in prog_tests/verify_pkcs7_sig.c, but the utility should not be called as a test. Executing this utility produces the following error: selftests: /linux/tools/testing/selftests/bpf: urandom_read ok 16 selftests: /linux/tools/testing/selftests/bpf: urandom_read selftests: /linux/tools/testing/selftests/bpf: sign-file not ok 17 selftests: /linux/tools/testing/selftests/bpf: sign-file # exit=2 Fixes: fc97590668ae ("selftests/bpf: Add test for bpf_verify_pkcs7_signature() kfunc") Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com> Acked-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexey Gladkov <legion@kernel.org> --- tools/testing/selftests/bpf/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
Hello: This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <daniel@iogearbox.net>: On Wed, 17 May 2023 11:49:46 +0200 you wrote: > The sign-file utility (from scripts/) is used in prog_tests/verify_pkcs7_sig.c, > but the utility should not be called as a test. Executing this utility > produces the following error: > > selftests: /linux/tools/testing/selftests/bpf: urandom_read > ok 16 selftests: /linux/tools/testing/selftests/bpf: urandom_read > > [...] Here is the summary with links: - [RESEND,v1] selftests/bpf: Do not use sign-file as testcase https://git.kernel.org/bpf/bpf-next/c/f04a32b2c5b5 You are awesome, thank you!
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index b677dcd0b77a..fd214d1526d4 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -88,8 +88,7 @@ TEST_GEN_PROGS_EXTENDED = test_sock_addr test_skb_cgroup_id_user \ xskxceiver xdp_redirect_multi xdp_synproxy veristat xdp_hw_metadata \ xdp_features -TEST_CUSTOM_PROGS = $(OUTPUT)/urandom_read $(OUTPUT)/sign-file -TEST_GEN_FILES += liburandom_read.so +TEST_GEN_FILES += liburandom_read.so urandom_read sign-file # Emit succinct information message describing current building step # $1 - generic step name (e.g., CC, LINK, etc);