Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4695108pxv; Tue, 29 Jun 2021 13:18:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypluuywtJTdhyEAZnm+ViI+sXxkXUB7pDZaB73lsEVz1Z8ykQ8vNvv306iWiuAd86HGn5I X-Received: by 2002:a05:6402:b81:: with SMTP id cf1mr43567784edb.102.1624997885678; Tue, 29 Jun 2021 13:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624997885; cv=none; d=google.com; s=arc-20160816; b=arq8MFBzzZf/qnIk55bCAqiku8xLp2fcRAY4467QrP7TZ6XIKmTFYT/jBlSwFd9OYv HL2/guTGOhve9y869yUjb6b7Nvli2snZaXhdH2/ZTwzSVXCSIp3IqLlWKorSWg3+oXes 7GGO8KnpP8ez5tnyjsNf+SEetG98yDFUbk0VNwUg6MUBCVcAw7iybcERj9U5S+GP0t2O FPnkCHhq1MaIAPAjyWwdaBr56Mk6ABdX/70YG76BHrjQhdTPA7M2O8hegVj8bi0TMQKk B/BO4FUG3zdSllemVIM4mzXw/29LrxtkbG9+sXzrKBwo8f73ewWOBJwJ7Z7jFEB3JEpG JNfg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7gA0DHfmQ7Okfnyzxx2o0YpcBX+usl8P6g723TRxPkA=; b=z5u/GIPJzrl2tp162XZQBIQD3VRKb8OoLRoBcMc2QeSoBLeWWtdxhfDcsTncEY7x/J k2bBAR1pkaOf9tg61iD3AbMa/vtB9DjwJX1cjODDoEDNyibJGg3zkIlpikDJ3t7ZaLBX H1b6Em1Ldso3F7ZM6aI7RuLL1faGNZ23DAljC684wTaG/0oLUzNVxVsPsdyVzi4wn0Zd w/rl0tAqvTPWnKxplfwfuyEwNzf6n7oHKAWqVtMsiEOynpbSRR9ZYQs+WbeWg3sRds01 fXgzhWtdySpHlt+45+pujYSxc7DEexPTXq0w3qUcYTIoBdhlBdRk9n2WP/gBdsJB8p5b 1+cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sEDXmQxz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si22894663ejj.16.2021.06.29.13.17.18; Tue, 29 Jun 2021 13:18:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sEDXmQxz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235156AbhF2UP2 (ORCPT + 99 others); Tue, 29 Jun 2021 16:15:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:42730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232689AbhF2UP1 (ORCPT ); Tue, 29 Jun 2021 16:15:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 97ACF61DB4; Tue, 29 Jun 2021 20:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624997580; bh=Ih+AwCZioicKTFRZiHaD6RYCFwrh1gGizZc0D4mvJi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sEDXmQxzUVJwd3LNJfvn4q+jAeRTQAEJAdjIf41rSzZ8ecxQ1CoYENLhkDUHSBko5 NJNlLlT2Gm89DF3mNEZPwkgRLMRhfUASdLxebbCiR5XTwYB/zfFxcVFrYUUKN2uPxt MW4e/0SEF5IVu8Kt99tCYE0stE9MYddIk2luX8ZCE+tDcuUQys3dRj0Zx4uGHqslUh 7RAKPgdchf3UyExfTWjEdz6x2241NeXV0/XDa9C8RH2GiIh2Ru2FlJVuI9Ih7br3/P zugOS100YkXIEtVccx9RsEA+cP8DnOfA/5suqZTtA8ZqHWDgaTqcS3yOqNFmqEtXu/ am6agRm1LWWEQ== Date: Tue, 29 Jun 2021 23:12:57 +0300 From: Jarkko Sakkinen To: Stefan Berger Cc: Stefan Berger , keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, nayna@linux.ibm.com, jeyu@kernel.org, dhowells@redhat.com, dwmw2@infradead.org, kernel test robot Subject: Re: [PATCH] certs: Redirect openssl error message to null device Message-ID: <20210629201257.dr77kemy66mxpox5@kernel.org> References: <20210625122902.4058783-1-stefanb@linux.vnet.ibm.com> <9e925935-529e-49c9-e499-3eac43bddb66@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9e925935-529e-49c9-e499-3eac43bddb66@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 25, 2021 at 08:32:37AM -0400, Stefan Berger wrote: > On 6/25/21 8:29 AM, Stefan Berger wrote: > > > From: Stefan Berger > > > > Address the following issue detected by the kernel test robot when > > there's no certificate file at the time when checking for the type > > of key in the cert: > > > > Can't open certs/signing_key.pem for reading, No such file or directory > > > > The simplest solution is to redirect openssl's stderr output to /dev/null. > > > > Fixes: 28d62d945ded ("certs: Trigger creation of RSA module signing key if it's not an RSA key") > > Signed-off-by: Stefan Berger > > Reported-by: kernel test robot > > > Jarkko, > > can you please squash this patch into the one it fixes. Unfortunately when > rebasing you will have to fix the subsequent patch from this merge error > > ifeq ($(openssl_available),yes) > <<<<<<< HEAD > X509TEXT=$(shell openssl x509 -in $(CONFIG_MODULE_SIG_KEY) -text > 2>/dev/null) > ======= > X509TEXT=$(shell openssl x509 -in $(CONFIG_MODULE_SIG_KEY) -text) > endif > >>>>>>> 87e968848116 (certs: Add support for using elliptic curve keys for > signing modules) > > to this: > > > ifeq ($(openssl_available),yes) > X509TEXT=$(shell openssl x509 -in $(CONFIG_MODULE_SIG_KEY) -text > 2>/dev/null) > endif > > Thanks. > > ?? Stefan The problem is that I have already a pending pull request, and merge window is soon closing. I think it's a better idea that I just drop these patches and send a new pull request, and you should construct a new version of the series. This cannot be a blocker for the rest of the patches (or even potential blocker). We can consider the current patches not ready for mainline. /Jarkko