[lvc-project] [PATCH] thunderbolt: verify PCI resource type and size in nhi_probe()
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Fri Aug 7 16:11:32 MSK 2026
On Fri, Aug 07, 2026 at 02:47:54PM +0300, Dmitry Antipov wrote:
> On 8/7/26 2:31 PM, Mika Westerberg wrote:
>
> > I'm actually not sure how this was even triggered
>
> :-) just as documented in https://docs.kernel.org/driver-api/driver-model/binding.html:
>
> Userspace may override the standard matching by writing a driver name to a device’s
> driver_override sysfs attribute. When set, only a driver whose name matches the
> override will be considered during binding. This bypasses all bus-specific matching
> (OF, ACPI, ID tables, etc.).
Yes, and anyone who uses this, gets to keep the broken pieces of the
kernel if they attempt to bind a driver to a device that can't actually
support it.
This is a debugging-only feature, don't treat it as something for which
EVERY driver would have to somehow insulate themselves from. That's not
what this is for at all.
thanks,
greg k-h
More information about the lvc-project
mailing list