Linux Modules
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Alessandro Carminati <alessandro.carminati@gmail.com>
Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org,
	Jonathan Corbet <corbet@lwn.net>,
	linux-doc@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] Modules: Introduce boot-time module signature flexibility
Date: Fri, 17 Nov 2023 10:33:48 -0800	[thread overview]
Message-ID: <ZVeyDDLe9B+Aij2O@bombadil.infradead.org> (raw)
In-Reply-To: <CAPp5cGTcRGp3z=xbA1svxLYz1LC74_AQrTPSXNmACPRYrpporg@mail.gmail.com>

On Fri, Nov 17, 2023 at 02:56:53PM +0100, Alessandro Carminati wrote:
> Il giorno gio 16 nov 2023 alle ore 18:35 Luis Chamberlain
> <mcgrof@kernel.org> ha scritto:
> >
> > I see the code which skips module signature verification and the knobs
> > but I don't see the code which complete the promise to do the actual
> > signature verification post initrd / initramfs state. What gives?
> 
> My initial intention wasn't centered around providing an automated solution.

It is not even an automated solution, it's *any* solution. So to be
clear your patch simply disables module verification, it has no
solution.

> Instead, I envisioned a design where users could manually restore module
> verification during a specific point in their init scripts.
> 
> It might be plausible to restore module verification when the rootfs is
> remounted. However, this seems limiting rather than advantageous.

The patch as-is describes a lofty world and does nothing other than
disables module verification. If a patch disables module verification
it should just do that and describe that. Nothing else. The subject
of the patch tends to suggest some flexibility it provided but does
nothing of being flexible, it outright disables module signature
verification. The commit log and the patch subject description are
describing something completely different than what the code actually
does, and it gives me to the concern, to the point that if you didn't
have a few commit logs in the kernel I would have thought your intent
was test kernel developers with some AI type of code that does something
stupid and very carefully crafted commit log.

Nacked-by: Luis Chamberlain <mcgrof@kernel.org>

  Luis

  reply	other threads:[~2023-11-17 18:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14 11:27 [RFC PATCH 0/2] Enhancing Boot Speed and Security with Delayed Module Signature Verification Alessandro Carminati (Red Hat)
2023-09-14 11:27 ` [RFC PATCH 1/2] Modules: Introduce boot-time module signature flexibility Alessandro Carminati (Red Hat)
2023-11-16 17:35   ` Luis Chamberlain
2023-11-17 13:56     ` Alessandro Carminati
2023-11-17 18:33       ` Luis Chamberlain [this message]
2023-11-20 19:43         ` Luca Boccassi
2023-09-14 11:27 ` [RFC PATCH 2/2] docs: Update kernel-parameters.txt for signature verification enhancement Alessandro Carminati (Red Hat)
2023-09-15 15:59   ` Randy Dunlap
2023-11-08 15:33   ` Prarit Bhargava
2023-11-09 10:40     ` Alessandro Carminati
2023-11-08 15:32 ` [RFC PATCH 0/2] Enhancing Boot Speed and Security with Delayed Module Signature Verification Prarit Bhargava
2023-11-09 10:51 ` Alessandro Carminati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZVeyDDLe9B+Aij2O@bombadil.infradead.org \
    --to=mcgrof@kernel.org \
    --cc=alessandro.carminati@gmail.com \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox