Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4262995iog; Tue, 21 Jun 2022 15:56:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLRFutvUf4H2FjkkI0gdclAA8wxuyIx0Tkr4EcOkySlPInnDs1JC0JyAPQMV4+8joSMoIU X-Received: by 2002:a17:906:ce:b0:718:bff8:58c3 with SMTP id 14-20020a17090600ce00b00718bff858c3mr368307eji.512.1655852163315; Tue, 21 Jun 2022 15:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655852163; cv=none; d=google.com; s=arc-20160816; b=iKRPKlviV8Rd131/z/PJ/j64gPpMMF3R3ooe0YHgT2uAQlQ9c6xX53jB2/CqQUJSu1 PC95WHFcIUAutAfnL5WDW79Fu/dpBguWmFN9F/HrLzGv4TYzd/jjWHZZ7gedLbARYYtR keN4CvUkCq9wL6LCAN2Z11A+ZwM2pS8PfQLxq27SU4EKcX/+jReMLsPnTvg+9BlpqIAr 3l0gGUHjg/g7E+O1Ad8Wlji0QQMDoIqITx1SQmH/mzdo6nFicwOzKzJX6i9RZGTymkNE ivhPYuQ4caPbPExo7Jz8aGSgnNcG2M2JnzjwJXXbzsMODv4qujZGspyUsEFNTdmsgmE1 VYBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SZdE7QPkm1R89AKJqDyqxi4uethQzAG0zu7JrCCmLrs=; b=PvDajekUZP8+fPtKEG7LoZpmxA7MSU1RrVwFaZvB9oxMlr8PMkALsVQcqtAg2JMRBN Ys2yw0HilD8QqQVLE8MFrKLvZP4Xo6xJhor4ZnRVcTZmlGM9Nqg+PwqvLGNFGnlgJhNQ h6Wl1kUiQAoqWaMi3se5Yil/NK+e6oYhN+EEh5As7wxZ9rIuhSdaade486cfuogzmGTA 1yrz248CDaeC30kTKFUbtcEu05QvB8+4jN9QcgBTJG5FeofgRjwCCQlPYRe7blLVvZS3 qMkN64K8CIxexFNgg37xk1dUZuHt0IAhnW0FHzXlUtMmWJ9uq7sPEbtTqRUZI3FCiXb4 wn3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o8ldGyui; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a05640205c900b0042dce8438adsi19414656edx.487.2022.06.21.15.55.37; Tue, 21 Jun 2022 15:56:03 -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=@gmail.com header.s=20210112 header.b=o8ldGyui; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354146AbiFUWbm (ORCPT + 99 others); Tue, 21 Jun 2022 18:31:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbiFUWbk (ORCPT ); Tue, 21 Jun 2022 18:31:40 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29B92B481; Tue, 21 Jun 2022 15:31:40 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id k127so9162524pfd.10; Tue, 21 Jun 2022 15:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SZdE7QPkm1R89AKJqDyqxi4uethQzAG0zu7JrCCmLrs=; b=o8ldGyuiz/On72dreNwnBsp7iSyBGM/I7ed6LpTCpfJ1o9ZoG2W5U0roLtkPoyeIjY z7SkF0OCpEUo+YkmM+vxnvsD4byoiu/MYUK171zCvr3x5M8mLxT+HePei6Wm0fayyH/k bk0/vARyaJzMnCqYSMBjKwYnrYL9iHxeCN5ULvZJgbf5vDpLIL7hfAGjegKs7CM/jdAL /vaPsd1gxk6DniB26exqYZYjWvmUMhX9CHrx6jGSErF9tfrcOHxRdv8HBb8tG6h5ICjI zP+nrYCRNPpPqJuE48lxwMxrUlEMBHk8KTg8iNkpQE/pv1TDixl3N9lzj8T8pAC5Mkh9 w0wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SZdE7QPkm1R89AKJqDyqxi4uethQzAG0zu7JrCCmLrs=; b=O5zmTDHUJherhqiaGCmnP9UE4muiCGBM6qHo78VcNbDCfPzW/q74ZTsrha1zRGc/AY yTtnhsXLu0OiznAZ8bcJvCtjoeKuuvVXd0pbIYPRKxBtKiq5u0ukRMQh+cL/MreMnqUV F8i8+iEn8UfeyVJosrVm/uZ7dhzk8evvT3DspMiRPiPiIdrJN/iPajZeOkpuiJKf8vQs CdbKXeKFkfMxwqHjoDg2CkIBErD/z8mP5G7fxmkY+zswUNHkzBb3lLts/yoo58NO1U9Q zyboAAAPE98dLvh699jcY5XgZCn7pbTdqGWAjXH/KgKZmZMI4IoxaCRWaJ/MQXQdBZFA dB8Q== X-Gm-Message-State: AJIora8B0Ctu2/+dA7AFvwjcfcAvnjpyll1JsmBADNlgpbocmpRLpTCz kwtCWIWOdHi/CLZIp2+rz0g= X-Received: by 2002:a63:cd51:0:b0:408:415a:3a18 with SMTP id a17-20020a63cd51000000b00408415a3a18mr192295pgj.524.1655850699528; Tue, 21 Jun 2022 15:31:39 -0700 (PDT) Received: from macbook-pro-3.dhcp.thefacebook.com ([2620:10d:c090:400::5:29cb]) by smtp.gmail.com with ESMTPSA id k16-20020aa78210000000b0051bb79437f7sm11797719pfi.37.2022.06.21.15.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 15:31:38 -0700 (PDT) Date: Tue, 21 Jun 2022 15:31:35 -0700 From: Alexei Starovoitov To: Roberto Sassu Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kpsingh@kernel.org, john.fastabend@gmail.com, songliubraving@fb.com, kafai@fb.com, yhs@fb.com, dhowells@redhat.com, keyrings@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 5/5] selftests/bpf: Add test for bpf_verify_pkcs7_signature() helper Message-ID: <20220621223135.puwe3m55yznaevm5@macbook-pro-3.dhcp.thefacebook.com> References: <20220621163757.760304-1-roberto.sassu@huawei.com> <20220621163757.760304-6-roberto.sassu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621163757.760304-6-roberto.sassu@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Tue, Jun 21, 2022 at 06:37:57PM +0200, Roberto Sassu wrote: > + if (child_pid == 0) { > + snprintf(path, sizeof(path), "%s/signing_key.pem", tmp_dir); > + > + return execlp("./sign-file", "./sign-file", "-d", "sha256", > + path, path, data_template, NULL); Did you miss my earlier reply requesting not to do this module_signature append and use signature directly?