Re: [PATCH v4 21/33] driver core: Introduce a generic device trust level

From: Leon Romanovsky

Date: Wed Nov 25 2026 - 03:06:36 EST


On Tue, Nov 24, 2026 at 04:13:16PM -0800, Randy Dunlap wrote:
> Hi Leon,
>
> On 11/24/26 1:43 AM, Leon Romanovsky wrote:
> > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> > index 0b3c140babd94..8a94482f0b19b 100644
> > --- a/Documentation/admin-guide/kernel-parameters.txt
> > +++ b/Documentation/admin-guide/kernel-parameters.txt
> > @@ -1259,6 +1259,20 @@ Kernel parameters
> > dell_smm_hwmon.fan_max=
> > [HW] Maximum configurable fan speed.
> >
> > + device_trust [KNL]
> > + Enable device trust with blocked as the implicit default.
> > +
> > + device_trust.default=
> > + [KNL] Set initial trust policy for all devices, including
> > + hotplugged devices.
> > + Format: { default | blocked | adversarial | unrestricted }
> > + No trust options selects legacy unrestricted mode, preserving
>
> By "No trust options," do you mean using
> "device_trust.default="
> or just
> "device_trust", which says above means "blocked"?
>
> If I want the status quo (before generic trust levels), do I need to do
> anything? If so, what?

I mean that if you do nothing and do not write to any device_trust*
knob, the system will continue to work exactly as it does now. That is
what "No trust options" means.

Thanks

>
> > + bus policy and existing authorization. Otherwise blocked is the> + implicit default. An explicit value wins regardless of option
> > + order. default preserves bus policy; other values replace it.
> > + unrestricted disables runtime policy changes.
> > + See Documentation/driver-api/driver-model/device-trust.rst.
>
> thanks.
> --
> ~Randy
>