Re: [PATCH v2 01/10] driver core: Disable driver overriding by default
From: Jason Gunthorpe
Date: Fri Nov 20 2026 - 13:59:23 EST
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?
Jason