From: Johan Hovold <johan@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Danilo Krummrich <dakr@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Bradley Morgan <bradley.morgan@linux.dev>,
Armin Wolf <W_Armin@gmx.de>,
Masami Hiramatsu <mhiramat@kernel.org>,
linux-doc@vger.kernel.org, driver-core@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v2 01/10] driver core: Disable driver overriding by default
Date: Fri, 4 Dec 2026 10:10:33 +0100 [thread overview]
Message-ID: <axKDieUR7UdhfNgo@hovoldconsulting.com> (raw)
In-Reply-To: <axKBltZ7bl4w_HID@hovoldconsulting.com>
[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]
On Fri, Dec 04, 2026 at 10:02:14AM +0100, Johan Hovold wrote:
> On Fri, Dec 04, 2026 at 09:44:29AM +0100, Uwe Kleine-König wrote:
> > On Fri, Nov 20, 2026 at 02:59:09PM -0400, Jason Gunthorpe wrote:
> > > On Fri, Nov 20, 2026 at 12:11:02PM +0100, Uwe Kleine-König wrote:
> > >
> > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> > > > index 8228c9acc530..ed505e362b1d 100644
> > > > --- a/Documentation/admin-guide/kernel-parameters.txt
> > > > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > > > @@ -424,6 +424,12 @@ Kernel parameters
> > > > do not want to use tracing_snapshot_alloc() as it needs
> > > > to be done where GFP_KERNEL allocations are allowed.
> > > >
> > > > + allow_driver_override
> > > > + Allow matching drivers without
> > > > + .support_driver_override = true to devices using
> > > > + driver_override. This is a dangerous operation in
> > > > + general allowing root to oops the kernel.
> > > > +
> > >
> > > I feel like this is more appropriate as a lockdown level than a kernel
> > > command line?
> >
> > Not sure what a lockdown level is, but I think a kernel parameter is
> > appropriate as a shortliving workaround for a driver that lacks the
> > required flag to be allowed to use driver_override without a taint. So
> > I'm keeping that mechanism.
>
> But it's just a taint. Dropping panic_on_taint seems like a better
> temporary workaround if ever needed.
I see now that you are disallowing driver override as well, I
misremembered and thought you were just suppressing the taint.
Johan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]
next prev parent reply other threads:[~2026-12-04 9:10 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 11:11 [PATCH v2 00/10] driver core: Disable driver overriding by default Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 01/10] " Uwe Kleine-König
2026-11-20 18:59 ` Jason Gunthorpe
2026-12-04 8:44 ` Uwe Kleine-König
2026-12-04 9:02 ` Johan Hovold
2026-12-04 9:10 ` Johan Hovold [this message]
2026-11-20 20:07 ` Michael Kelley
2026-12-04 8:42 ` Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 02/10] PCI: Allow untainted driver_override for PCI stub drivers Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 03/10] vfio: Allow untainted use of driver_override Uwe Kleine-König
2026-11-21 0:47 ` Yao Yuan
2026-11-21 12:47 ` Pranjal Shrivastava
2026-11-23 8:52 ` liulongfang
2026-11-23 10:06 ` Ioana Ciornei
2026-11-20 11:11 ` [PATCH v2 04/10] s390/vfio: " Uwe Kleine-König
2026-11-20 11:58 ` Harald Freudenberger
2026-11-20 14:05 ` Uwe Kleine-König
2026-11-23 16:31 ` Christian Borntraeger
2026-11-26 10:01 ` Uwe Kleine-König
2026-11-27 18:38 ` Peter Oberparleiter
2026-12-01 9:23 ` Christian Borntraeger
2026-11-23 13:55 ` Harald Freudenberger
2026-11-23 14:48 ` Alex Williamson
2026-11-30 8:13 ` Harald Freudenberger
2026-11-20 11:11 ` [PATCH v2 05/10] uio: " Uwe Kleine-König
2026-11-20 20:08 ` Michael Kelley
2026-11-20 11:11 ` [PATCH v2 06/10] spi: spidev: " Uwe Kleine-König
2026-11-20 11:35 ` Mark Brown
2026-11-20 11:11 ` [PATCH v2 07/10] clk: imx: scu: " Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 08/10] remoteproc: " Uwe Kleine-König
2026-11-20 15:13 ` Mathieu Poirier
2026-11-20 11:11 ` [PATCH v2 09/10] slimbus: qcom-ngd-ctrl: " Uwe Kleine-König
2026-11-20 11:11 ` [PATCH v2 10/10] ASoC: samsung: i2s: " Uwe Kleine-König
2026-11-21 1:16 ` [PATCH v2 00/10] driver core: Disable driver overriding by default Danilo Krummrich
2026-11-26 1:57 ` Gary Guo
2026-11-26 2:13 ` Gary Guo
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=axKDieUR7UdhfNgo@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=W_Armin@gmx.de \
--cc=bradley.morgan@linux.dev \
--cc=corbet@lwn.net \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=jgg@ziepe.ca \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=rafael@kernel.org \
--cc=rostedt@goodmis.org \
--cc=u.kleine-koenig@baylibre.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.