Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp896181pxf; Wed, 7 Apr 2021 14:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7VxsveUjz+7vI6SUFkp3rwqwUEafA9Ecy4iTylgtwMOg9hzavKCEPBUdtwDCO9HGcdIfl X-Received: by 2002:a05:6402:1606:: with SMTP id f6mr6853929edv.216.1617830771202; Wed, 07 Apr 2021 14:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617830771; cv=none; d=google.com; s=arc-20160816; b=u+BKP8E8IAH7xadKWBgGEsVSdgRXMaSieBcFzA4NSkQbDsCwlXmIUsUjNrbiucEZ3i LpiwSA+PZ91YKuByB9pQRmYUoIN38cOAdRvYCR3HM0T8x3rvoCJDvT1vTzbzyatlUePJ tm5GN9BAW2M0aI3bc5J2pEO9bxyAbqy10B7d4Thasbgz07ACqfj6NP1HIGgnoDmXLEyH psMuPk0tZzaS43MQUcHBdIRXZ5K5jE/8NBDYaQ2AaSoxPSciGyyzDV4L6jNksddG7D1x S8KhHJicqI1X4GfssXv3+/cZPWpQxqh/cXzuiuDgIaOgFD7uoUl0iUC7Pd/9RrB92XCT j1wQ== 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=/4ZYDYlL7BNiTS7MC2vIcrIyodeWMselU4FZMRYempY=; b=D5T804QEl2Z5d4RsldFuQXru9fWOH4VaOVNXs2jkvbQogDE+kAt0qVZObVpMvQXyRZ /MaIKCKjQgRRIciFCuARjKYz/gz6d966+WWwU4yKQTOWySVxYQ5uj7rChXuWJt+VO5Uf +IxVdGAXtmxvj4NaXf9M6PrrZy0kzUedPvA6EXHndtmVGDwFihJkAMm9WCXi0KC53Yis RbsbwgpmUJzfER7K+18+hsHcU5vYibSzaoTmkrVu5XcVQAcbBgM6KxtAndIU8RSJa/gv oHcsk0gTlV2rOAtog6t+HvhFBp1g/2h0c2vSW3QNBeoYqFcK2SChNONrBywXik2mRVhl 55aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n9qesmy5; 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 u18si19766006ejk.68.2021.04.07.14.25.48; Wed, 07 Apr 2021 14:26:11 -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=n9qesmy5; 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 S1347368AbhDGPxq (ORCPT + 99 others); Wed, 7 Apr 2021 11:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:45800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233084AbhDGPxo (ORCPT ); Wed, 7 Apr 2021 11:53:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1FD061262; Wed, 7 Apr 2021 15:53:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617810814; bh=EdpspZ5HaG18faTAbTZG7vqUf+d47qS65sjQijjX6xk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n9qesmy5j8XFZ/TlL4nF+gIrRMNHa+A5srLV6pcJKkwGVsqo7N8oiIvy6I+ObvY4U cMNZk+imCf4dW45gkvADfuv6UVOmy8pn1ULUri1PJ9yfBTrFSjwQTKdxQ9myjuzaJz 2ddIfIuIEeWZVPXiA6cp9u6aBIm5RJ8/QkW6Qm/vN9CYGUr5dmMfW6HPsEdIqfelLR 8EmZrUFjzeFL06TowSFx77EjW4CV9BhDQMO+hYjdEBC1at05jqiJ9nVHmzt98cVznw MslLFHatcJT2vOWG1MJWX113iUQLGotAMYr8WOKxETB5ft0WZj3/SMi9ZN5fUOY2Nu heoZ+PGnwCZkQ== Date: Wed, 7 Apr 2021 18:53:31 +0300 From: Jarkko Sakkinen To: Stefan Berger Cc: keyrings@vger.kernel.org, dhowells@redhat.com, zohar@linux.ibm.com, nayna@linux.ibm.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Add support for ECDSA-signed kernel modules Message-ID: References: <20210406185340.1079403-1-stefanb@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406185340.1079403-1-stefanb@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 02:53:38PM -0400, Stefan Berger wrote: > This series adds support for ECDSA-signed kernel modules. > > The first patch in this series attempts to address the issue where a > developer created an ECDSA key for signing modules and then falls back > to compiling an older version of the kernel that does not support > ECDSA keys. In this case this patch would delete that ECDSA key if it is > in certs/signing_key.pem and trigger the creation of an RSA key. However, > for this to work this patch would have to be applied to previous versions > of the kernel but would also only work for the developer if he/she used a > stable version of the kernel to which this patch was applied. So whether > this patch actually achieves the wanted effect is not always guaranteed. Just wondering why the key needs to be removed in the fallback. /Jarkko