Re: [PATCH v5 00/33] driver core: Authorize device trust before driver binding

From: Leon Romanovsky

Date: Sat Dec 05 2026 - 01:54:38 EST


On Sat, Dec 05, 2026 at 05:34:13AM +0900, Greg Kroah-Hartman wrote:
> On Thu, Dec 03, 2026 at 02:03:22PM +0200, Leon Romanovsky wrote:
> > Device trust policies need to precede driver setup, including manual
> > attachment, so userspace can authorize devices before they operate.
> >
> > This series introduces device trust policy, authorization, and lifetime
> > commitment. Authorization does not reconfigure ATS capabilities or replace
> > IOMMU domains selected during discovery and further ATS and IOMMU integration
> > will follow in a separate series.
> >
> > The table below tries to summarize the possible kernel command line
> > options and system behavior after that:
>
> <snip>
>
> As many/most of these patches (or at least the start of the series),
> deal with USB locking issues, let me go take those patches now, through
> the USB tree, so that you can build on top of them for later releases.
> That way we can get this work into 7.5-rc1 and then we can go and argue
> policy and naming and the like for the rest of the series, and you
> aren't having to juggle USB stuff around.
>
> Sound good? I can make you a named/tagged branch for this as well
> (which I probably should anyway...)

Sounds good. I'll need a named branch so I can rebase the series and resend it
before then. We are still at v7.4-rc5, with approximately four weeks until
v7.5-rc1. I'm sure we'll receive comments by then.

It would be great if you could take patches 1 through 20, excluding patch 19:
wifi: mac80211_hwsim: lock device for manual driver binding
Bluetooth: btusb: Fix MediaTek ISO claim locking
USB: Lock interfaces during manual driver binding
USB: serial: Register USB drivers with their owning module
USB: Reject claims of DT-disabled interfaces
USB: Reject usbfs connect requests for unregistered interfaces
USB: Release interface claims according to binding state
USB: Reject claims after interface registration failure
ALSA: usb-audio: Release interface claims when probe fails
USB: Pin modules for unregistered interface claims
USB: Add helpers to release unpublished interface claims
USB: Unwind interface claims after registration or binding failure
PNP: Attach card devices through the driver core
cdx: Propagate DMA configuration errors
driver core: Report deferred probes through sysfs drivers_probe
driver core: Add a compatibility API for manual driver attachment
Input: gameport - use the compatibility driver attachment API
Input: serio - use the compatibility driver attachment API
USB: Drain usbfs when a device is unregistered

Note that patch 19 is excluded from this list. I’ll need to send it separately
to trigger netdev CI, as PHY has many corner cases:
net: phy: Use the compatibility driver attachment API

If it helps, I can prepare a proper PR for you.

Thanks a lot.

>
> thanks,
>
> greg k-h