Re: [PATCH v2 01/10] driver core: Disable driver overriding by default

From: Uwe Kleine-König

Date: Fri Dec 04 2026 - 03:44:37 EST


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.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature