Re: [PATCH] thunderbolt: verify PCI resource type and size in nhi_probe()

Mika Westerberg <[email protected]> Fri, 7 Aug 2026 13:31:13 +0200
Newsgroups org.kernel.vger.linux-usb
Message-ID <[email protected]>
On Fri, Aug 07, 2026 at 02:13:06PM +0300, Dmitry Antipov wrote:
> On 8/7/26 12:58 PM, Mika Westerberg wrote:
> 
> > Yeah, I'm not entirely sure we want to start "fixing" issues like these
> > where it's clearly not a USB4/TB NHI. IMHO If user forces the driver
> > somehow to bind to this unrelated device then she/he got what asked for.
> 
> I agree but isn't there a scenario to trigger such a weird probe just by mistake?

Okay but how it is "mistake"? ;-) I'm actually not sure how this was even
triggered. Something like you as root echo random PCI device name to "bind"
files of a driver?