Re: [PATCH 1/4] PCI / ACPI: Identify external PCI devices
From: Mika Westerberg
Date: Thu Nov 15 2018 - 14:10:38 EST
On Thu, Nov 15, 2018 at 07:58:13PM +0200, Yehezkel Bernat wrote:
> From what I know, there are more devices that suffer from similar security
> issues like Thunderbolt, e.g. FireWire [1].
> My assumption is that the same protection may be applied to such devices too,
> even if currently it sounds like vendors care mostly about Thunderbolt (probably
> because it removes the need for user approval for device connection; it becames
> a simple plug-and-play experience).
FireWire is kind of different but there are connectors such as
ExpressCard and NVMe (over U.2 connector) which carry PCIe and are
relatively easy to access without need for a screwdriver. AFAIK some
eGPUs are also using some other proprietary (non-TBT) connector that
carries PCIe.
I was thinking we could cover all these with is_external filling them
based on the _DSD or some other means in the kernel.
We would then deal all such devices as "untrusted" by default.
> Thus, I don't think binding it with dev->is_thunderbolt is the correct
> thing to do.
One option that I suggested already is that we keep both and mark all
is_thunderbolt devices as is_external as well. But I guess this is up to
Bjorn and Rafael to decide :-)